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

21 lines (16 loc) 671 B
import { mainWindow } from '@dsf/core/global' const findPane = <T extends DzPane>(className: string): T => { return mainWindow.getPaneMgr().findPane(className) as T } export const getSmartContentPane = (): DzSmartContentPane => { return <DzSmartContentPane>findPane("DzSmartContentPane") } export const getSurfacesPane = (): DzSurfacesPane => { return findPane<DzSurfacesPane>("DzSurfacesPane") } export const getAuxViewPort = (): DzAuxViewportPane => { return findPane<DzAuxViewportPane>("DzAuxViewportPane") } export const getParametersPane = (): DzParametersPane => { return findPane<DzParametersPane>("DzParametersPane") }