XSIApplication.FindObjects2


Back

Introduced

v9.5 (2011)

Description

Returns a collection of all SIObject (http://softimage.wiki.softimage.com/sdkdocs/SIObject.htm) objects found in the application 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
  • siImageClipID
  • siLayerID
  • siLightID
  • siMaterialID
  • siModelID
  • siNullID
  • siNurbsSurfaceMeshID
  • siNurbsCurveListID
  • siOperatorID
  • siPassID
  • siPolygonMeshID
  • siPropertyID
  • siShaderID
  • siShapeKeyID
  • siX3DObjectID

Scripting Syntax

oReturn = XSIApplication.FindObjects2( 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 properties in the application.
from win32com.client import constants as c
props = Application.FindObjects2( c.siPropertyID )
for p in props:
	LogMessage( p.FullName )
# INFO : Views.ViewA.SpotCamera.visibility
# INFO : light.visibility
# INFO : Views.ViewD.SpotCamera.visibility
# INFO : Views.ViewC.SpotCamera.visibility
# INFO : Camera.visibility
# INFO : Views.ViewB.SpotCamera.visibility
# INFO : Camera_Root.visibility
# INFO : Camera_Interest.visibility
# INFO : Passes.mentalray
# INFO : Views.ViewD.RenderRegion.mentalray
# INFO : Views.ViewB.RenderRegion.mentalray
# INFO : Views.ViewA.RenderRegion.mentalray
# INFO : Views.ViewC.RenderRegion.mentalray
# INFO : ReadAnimation
etc...

See Also

Model.FindObjects Model.FindObjectsFromCLSID FindObjects (http://softimage.wiki.softimage.com/sdkdocs/FindObjects.htm)

This page was last modified 21:32, 10 Dec 2010.
This page has been accessed 1890 times.

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