v1.0
file property preset
Pops up a browser for selecting a preset from the factory location. Returns the selected preset object.
oReturn = SIGetPreset( [Path], [Family] ); |
Returns the preset object selected by the user. Empty if Cancel was pressed.
Parameter | Type | Description |
---|---|---|
Path | String | Specifies a subdirectory in the DSPresets folder to browse.
Default Value: Root DSPresets folder |
Family | String | Specify a Preset family name. Only presets for objects in that
family will be visible in the browser
Default Value: Presets of all families will appear in the browser |
'Open the browser in the {installationpath}\DSPresets\Shaders\Material directory dim p set p = SIGetPreset( "Shaders\Material", "Material Shaders" ) if TypeName( p ) = "Nothing" then msgbox "Canceled" else msgbox "Select preset = " & p end if |