CollectionItem
 
 
 

CollectionItem

Object Hierarchy

Introduced

v1.0

Description

The CollectionItem represents a object in the scene, or a SubComponent selection on such an object. This serves as a default object when no specific object has been created in the Object Model, for example see XSICollection.Item. Many Softimage commands return the CollectionItem object. This object is also returned by Selection.Item if SubComponents of a X3DObject have been selected.

Methods

FindAttrib      
       

Properties

Capabilities Families IsA Name
Obj PathItems Selected Singleton
SubComponent SubElements SubElements2 Type
Value      
       

Examples

VBScript Example

Set oGuineaPig = CreatePrim( "Cylinder", "MeshSurface" )
printInfo oGuineaPig
ApplyOp "Twist", oGuineaPig
Set oCollItem1 = CreateObject("XSI.CollectionItem")
oCollItem1.Value = "cylinder"
printInfo oCollItem1
Set oCollItem2 = CreateObject("XSI.CollectionItem")
oCollItem2.Value = "light"
printInfo oCollItem2
Set oCollItem3 = CreateObject("XSI.CollectionItem")
oCollItem3.Value = "camera"
printInfo oCollItem3
'==================================================
function printInfo( in_object )
        LogMessage in_object.Name & " (" _
                        & in_object.Type & " " _
                        & TypeName(in_object) & ")"
end function
'==================================================
' OUTPUT:
'INFO : "cylinder (polymsh X3DObject)"
'INFO : "cylinder (polymsh CollectionItem)"
'INFO : "light (light CollectionItem)"
'INFO : "Camera (camera CollectionItem)"

See Also

XSICollection siBranchFlag