SIGetPreset

Introduced

1.0

Description

Pops up a browser for selecting a preset from the factory location. Returns the selected preset object.

Scripting Syntax

SIGetPreset( [Path], [Family] )

Parameters

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

Return Value

Returns the preset object selected by the user. Empty if Cancel was pressed.

Examples

VBScript Example

'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

See Also

AddProp

XSIApplication.InstallationPath



Autodesk Softimage v7.5