Model.FindObjects
[edit]
Introduced
v9.5 (2011)
[edit]
Description
Returns a collection of all SIObject (http://softimage.wiki.softimage.com/sdkdocs/SIObject.htm) objects found in this model that match a siClassID (http://softimage.wiki.softimage.com/sdkdocs/siClassID.htm) identifier as listed below. These identifiers can also be discovered by inspecting Softimage objects with the SDK Explorer.
- siCameraID
- siClusterID
- siClusterPropertyID
- siConstraintID
- siCustomOperatorID
- siCustomPropertyID
- siEnvelopeID
- siEnvelopeWeightID
- siExpressionID
- siGeometryID
- siGroupID
- siICETreeID
- siLightID
- siMaterialID
- siModelID
- siNullID
- siNurbsSurfaceMeshID
- siNurbsCurveListID
- siOperatorID
- siPolygonMeshID
- siPropertyID
- siShaderID
- siShapeKeyID
- siX3DObjectID
[edit]
Scripting Syntax
oReturn = Model.FindObjects( Identifier ); |
[edit]
Return Value
SIObjectCollection (http://softimage.wiki.softimage.com/sdkdocs/SIObjectCollection.htm)
[edit]
Parameters
| Parameter | Type | Description |
| Identifier | siClassID (http://softimage.wiki.softimage.com/sdkdocs/siClassID.htm) | An object class identifier as defined in siClassID. |
[edit]
Examples
[edit]
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
[edit]
See Also
Model.FindObjectsFomCLSID XSIApplication.FindObjects2 FindObjects (http://softimage.wiki.softimage.com/sdkdocs/FindObjects.htm)
This page was last modified 21:29, 10 Dec 2010.
This page has been accessed 627 times.

