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

6 lines (5 loc) 305 B
import { getSurfacesPane } from './pane-helper' export const getSelectedSurfacePropertiesOfType = <TProperty extends DzProperty>(className: string): TProperty[] => { return getSurfacesPane().getNodeEditor().getPropertySelections(true) .filter(p => p.inherits(className)) as TProperty[] }