Scripting: How to query available Objects?

Date : Wed, 02 Jan 2008 14:31:05 -0500
To : XSI(at)Softimage.COM
From : "Ponthieux, Joey" <j.ponthieux(at)nasa.gov>
Subject : Scripting: How to query available Objects?
Hello,
I am wondering if it is possible to query the available Objects relative to another object? I'm looking for something similar to classname() but what I want is something that will return all available Methods or Properties available to the current Object. Say for example I have an XSICollection oColl1, it possesses a reference to a CollectionItem which in turn possesses a SubComponent, etc, etc. I am looking for a command which will list available Objects(Method,Properties etc) to the current object, so in this case I want to know what is available to oColl1, or at least oColl1(0). Assuming of course that this is say a collection of points, it would possess other Objects such as SubComponent, SubElements, etc. I want to list these available objects directly from the script editor rather than having to look them up in the manual. In other words I want to list everything that will plug into


oColl(0).?

Since this is a CollectionItem which would ultimately posses a PointCollection then SubComponent and SubElements, among others are available to it, once I know that SubComponent is available I want to list everything under

oColl(0).SubComponent.?

and so on. I've tried NestedObjects that does not seem to do what I want. PropertyCollection only seems to refer to properties available to the X3DObject and the like. Stuff like parameters etc such as kine.local.posx etc and not the Object Model properties or Methods. Or maybe I don't quite understand how to use Property or PropertyCollection here. Anyway, if anyone has some insight to this it would be appreciated.




-- Joey Ponthieux NCI Information Systems Inc. NASA Langley Research Center ____________________________________________________________ Opinions stated here-in are strictly those of the author and do not represent the opinions of NASA or any other party.

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.