Model.FindObjects

Introduced

v9.5 (2011)

Description

Returns a collection of all SIObject objects found in this model that match a siClassID identifier as listed below. These identifiers can also be discovered by inspecting Softimage objects with the SDK Explorer.

siAnnotationID

siCameraID

siClusterID

siClusterPropertyID

siConstraintID

siCustomOperatorID

siCustomPropertyID

siEnvelopeID

siEnvelopeWeightID

siExpressionID

siGeometryID

siGroupID

siICETreeID

siLightID

siMaterialID

siModelID

siNullID

siNurbsSurfaceMeshID

siNurbsCurveListID

siOperatorID

siPolygonMeshID

siPropertyID

siShaderID

siShapeKeyID

siX3DObjectID

Scripting Syntax

oReturn = Model.FindObjects( Identifier );

Return Value

SIObjectCollection

Parameters

Parameter Type Description
Identifier siClassID An object class identifier as defined in siClassID.

Examples

1. Python Example

# Enumerate all shaders under the scene root.
from win32com.client import constants as c
shaders = Application.ActiveSceneRoot.FindObjects( c.siShaderID )
for s in shaders:
        LogMessage( s.ProgID )
# INFO : Softimage.soft_light.1.0

2. Python Example

# Enumerate all visibility properties under the scene root.
from win32com.client import constants as c
props = Application.ActiveSceneRoot.FindObjects( c.siPropertyID ).Filter( 'visibility' )
for p in props:
        LogMessage( p.Fullname )
# INFO : Camera_Interest.visibility
# INFO : light.visibility
# INFO : Camera_Root.visibility
# INFO : Camera.visibility

See Also

Model.FindObjectsFromCLSID XSIApplication.FindObjects2 FindObjects