Model.FindObjectsFomCLSID


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 Softimage object CLSID. Object CLSID are not documented but can be discovered with XSIUtils.DataRepository (http://softimage.wiki.softimage.com/sdkdocs/XSIUtils_DataRepository.htm) or by inspecting Softimage objects with the SDK Explorer.

Scripting Syntax

oReturn = Model.FindObjectsFomCLSID( CLDID );


Return Value

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

Parameters

Parameter Type Description
CLDID String (http://softimage.wiki.softimage.com/sdkdocs/String.htm) The string representation of an object CLSID.


Examples


Python Example

# Enumerate all visibility properties under the scene root.
props = Application.ActiveSceneRoot.FindObjectsFromCLSID( "{11EBE301-A20C-11D0-8478-00A024C7919C}" )
for vis in props:
	LogMessage( vis.FullName )
# INFO : Camera_Root.visibility
# INFO : Views.ViewC.SpotCamera.visibility
# INFO : Camera.visibility
# INFO : Views.ViewB.SpotCamera.visibility
# INFO : Camera_Interest.visibility
# INFO : Views.ViewD.SpotCamera.visibility
# INFO : Views.ViewA.SpotCamera.visibility
# INFO : light.visibility


See Also

Model.FindObjects 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 2283 times.

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