v1.0
CollectionItem は、シーン内のオブジェクト、またはオブジェクト上のSubComponentの選択を表します。オブジェクトモデルで特定のオブジェクトが作成されていない場合、これはデフォルトオブジェクトとして機能します(例については、XSICollection.Itemを参照)。多くの Softimage コマンドは、CollectionItem オブジェクトを戻します。このオブジェクトは、X3DObjectのSubComponentが選択されている場合はSelection.Itemからも戻されます。
| Capabilities | Families | IsA | Name |
| Obj | PathItems | Selected | Singleton |
| SubComponent | SubElements | SubElements2 | Type |
| Value | |||
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)" |