// 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