Maya attributes map more or less to parameters in XSI. Here's a small python script that recursively gathered all parameters for the selected object. This the generic way of navigating parameters, you can also use ProjectItem.Parameters to get at the Parameter objects.
Hope that helps.
-mab
def Traverse( in_target, level ):
indent = level * '.'
nesteds = in_target.NestedObjects;
for i in range(nesteds.Count):
obj = nesteds[i];
Application.LogMessage(indent + obj.FullName);
Traverse( obj, level+1 );
return True
Traverse( Application.Selection(0), 0 )
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Raffaele Scaduto-Medola
Sent: March 2, 2007 12:13 PM
To: XSI(at)Softimage.COM
Subject: RE: Getting access to properties...
Well, not quite. I have been using the SDK explorer for about 2 years, but I still have some problems with its setup.
I do like the fact I can see just about all the information about an object in it, but I would really like if someone at Soft develloped another tab (with Mel TDs in mind) that would expose the parameter information in a easy to copy/paste form that I could look hack together my scripts. The closest analogy to this is in Maya, I would list attributes, and then I could look for the one that interested me and copy and paste it together with my string in a script. It was intuitive to work with.
The other reason, is as nice as it is for Soft to provide an extensive SDK explorer, that doesn't show me as well how to access the information as well as having a script (preferably JScript, but I hope one day to switch to python/ if brad has more evolve TD seminars %-) ).
Having a script that I can edit, modify helps to hack solutions more intuitively.
Now all of this wouldn't bother so much if it was only me scripting away, but I have to manage TDs (with a Maya/Mel background or even less). So having more intuitive tools/scripts to help lower the learning curve would help. Because this has been a recurring theme I have noticed, and having a good scripting environment is key to using XSI in larger character productions.
THX
RSM
_____________________________________________________
Raffaele Scaduto-Mendola - www.turbolinea.com
raffaele(at)turbolinea.com
On Thu, 1 Mar 2007, Stephen Blair wrote:
> You mean like the SDK explorer does?
>
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
> Behalf Of Raffaele Scaduto-Medola
> Sent: Thu 01 March 2007 7:49 PM
> To: XSI(at)Softimage.COM
> Subject: Getting access to properties...
>
> Hello, kudos for Soft for the XSI 6.0 presentation in NYC Tuesday.
>
> As the question of training came up again, the biggest problem for
> myself and our fledging crew remains learning to get information
> access to XSI objects (through JScript).
>
> Does anyone have any scripts (or parts of a scripts) that lets me list
> all of of an object (or scelection) properties. I am hoping to write a
> small debugger tool in XSI/JScript that would let me display all
> accessible parameters/properties ( in the script console , ie
> copy/pastes ) attached to an object, so that our fledging coders can
> quickly find a way to call/access/modify object elements.
> I am trying to replicate the process similar to the list connection in
> Maya in the hopes of helping to streamline our process for
> learning/hacking to handle scripting object in XSI more efficiently.
>
> But then again, If anyone has a good method/book to help lower the
> learning curve I would appreciate any suggestions.
>
> ... since I am still want to streamling TD/Script work in XSI.
>
>
> THX
> RSM
>
> _____________________________________________________
> Raffaele Scaduto-Mendola - www.turbolinea.com
> raffaele(at)turbolinea.com
>
> ---
> 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