Model.FindObjects


Back

Introduced

v9.5 (2011)

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

Scripting Syntax


oReturn = Model.FindObjects( Identifier );


Return Value

SIObjectCollection (http://softimage.wiki.softimage.com/sdkdocs/SIObjectCollection.htm)

Parameters

Parameter Type Description
Identifier siClassID (http://softimage.wiki.softimage.com/sdkdocs/siClassID.htm) An object class identifier as defined in siClassID.


Examples

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

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 2181 times.

© Copyright 2009 Autodesk Inc. All Rights Reserved. Privacy Policy | Legal Notices and Trademarks | Report Piracy