UNPKG

dazscript-framework

Version:

The **DazScript Framework** is a TypeScript-based framework for writing Daz Studio scripts. It provides all the advantages of a typed language such as autocompletion, error checking, and method parameter documentation and hinting. The framework also inclu

9 lines (8 loc) 410 B
import { mainWindow } from '@dsf/core/global' export const selectUniversalRotateTool = (coordinateSpace?: number): DzUniversalRotateTool => { const viewportMgr = mainWindow.getViewportMgr() const tool = viewportMgr.findTool('DzUniversalRotateTool') as DzUniversalRotateTool viewportMgr.setActiveTool(tool) if (coordinateSpace) tool.setCoordinateSpace(coordinateSpace) return tool }