RE: scripting: getting the whole property list of an object

Date : Sun, 1 Apr 2007 15:22:13 -0400
To : <XSI(at)Softimage.COM>
From : "Stephen Blair" <Stephen_Blair(at)Softimage.COM>
Subject : RE: scripting: getting the whole property list of an object
 
 
// select an object
 
var o = Selection(0);
 
oEnum = new Enumerator( o.Properties ) ;
for (;!oEnum.atEnd();oEnum.moveNext() )
{
    var oSelItem = oEnum.item() ;
    LogMessage( oSelItem.fullname );
}
 
 
oEnum = new Enumerator( o.NestedObjects ) ;
for (;!oEnum.atEnd();oEnum.moveNext() )
{
    var oSelItem = oEnum.item() ;
    LogMessage( oSelItem.fullname );
}
 
 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Frank Lenhard
Sent: Sun 01 April 2007 3:09 PM
To: xsi
Subject: scripting: getting the whole property list of an object

i am sorry if this is totally obvious and beginners stuff (that what i am anyhow to scripting) but:

how can logmessage all properties that exist on a object, so i can change them later using the object model?
i need the syntax to access stuff like visibility, position, null shapes etc.
i find some stuff for dedicated objects like nulls and others, but in general i would like to select a object and get a list with all available properties.


thanks a lot
ciao
franky


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.