Selection.Remove
 
 
 

Selection.Remove

Description

Removes a single object from the selection.

C# Syntax

Selection.Remove( Object in_pObj, siSelectMode in_selType );

Scripting Syntax

Selection.Remove( Object, SelectionMode );

Parameters

Parameter Type Description
Object Object (ie., X3DObject, Camera, Light, etc.) Object to remove from selection
SelectionMode siSelectMode Specifies how the object is selected in hierarchy.

Default Value: siSelectDefault

Examples

VBScript Example

CreatePrim "Arc", "NurbsCurve"
CreatePrim "Cube", "NurbsSurface"
set cyl = CreatePrim( "Cylinder", "NurbsSurface" )
AddToSelection "arc,cube,cylinder", , True
set sel = Application.Selection
sel.Remove cyl, siSelectDefault
for each i in sel
logmessage i.name
next
'Output of above script:
'INFO : "arc"
'INFO : "cube"

See Also

Selection.Clear