Hi Joey
Just so you know, this is what you would get from that Python code for
your oColl(0).
# INFO : ['AddRef',
# 'BranchFlag',
# 'Capabilities',
# 'Families',
# 'FindAttrib',
# 'GetIDsOfNames',
# 'GetTypeInfo',
# 'GetTypeInfoCount',
# 'Invoke',
# 'IsA',
# 'Name',
# 'Obj',
# 'PathItems',
# 'QueryInterface',
# 'Release',
# 'Selected',
# 'Singleton',
# 'SubComponent',
# 'SubElements',
# 'SubElements2',
# 'Type',
# 'Value']
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Stephen Blair
Sent: Wed 02 January 2008 3:27 PM
To: XSI(at)Softimage.COM
Subject: RE: Scripting: How to query available Objects?
Hi Joey
Yes, that (introspection) is a Python-specific feature.
As far as I know there is no way to do what you want in JScript.
With C# or C++ you can get completion lists in Visual Studio.
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Ponthieux, Joey
Sent: Wed 02 January 2008 3:18 PM
To: XSI(at)Softimage.COM
Subject: Re: Scripting: How to query available Objects?
Stephen,
Is that specific to only Python? I don't have Python installed at
the moment and I don't know the language yet. Is there any reason why it
could not be written in JScript or does Python expose stuff not
available to the other languages? I assume you're gonna tell me it's
time to learn Python? :)
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.
Stephen Blair wrote:
http://softimage.wiki.avid.com/index.php/Python_%28XSISDK%29#Python_In
tr
ospection
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
Behalf Of Ponthieux, Joey
Sent: Wed 02 January 2008 2:31 PM
To: XSI(at)Softimage.COM
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
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi