Add (Selection)
Description
Adds a single object to the selection.
Scripting Syntax
Selection.Add( Object, SelectionMode )
C# Syntax
Selection.Add( Object in_pObj, siSelectMode in_selType );Parameters
|
Parameter |
Type |
Description |
|
Object |
Object to add to selection |
|
|
SelectionMode |
Specifies how the object selected in hierarchy. Default Value: siSelectDefault |
Examples
VBScript Example
set sel = Application.Selection set c = ActiveSceneRoot.AddGeometry( "Cone", "NurbsSurface" ) set g = ActiveSceneRoot.AddGeometry( "Grid", "NurbsSurface" ) sel.Add c, siSelectDefault sel.Add g, siSelectDefault for each i in sel LogMessage i.Name next 'Output of above script: 'INFO : "cone" 'INFO : "grid"
See Also
Autodesk Softimage v7.5