[Sripting] The best way to figure out the bounds of an object's animation...

Date : Tue, 8 Apr 2008 15:18:32 +0100
To : xsi(at)Softimage.COM
From : "Dan Yargici" <danyargici(at)gmail.com>
Subject : [Sripting] The best way to figure out the bounds of an object's animation...
I need to emulate the way XSI knows the total duration of an object's animation when creating an action.  I need the startframe and duration of the object's animation, and I have no idea what may or may not be animated.

Anyone know of any shortcuts?  I couldn't see anything in the SDK, do I need to make a temporary clip and take the info I need from that?

That is also trickier than you'd think given the criteria I listed above (i.e. not knowing what to mark - there could potentially be any kind of constraint or property on the object...)

....and the fact that without giving the StoreAction Command an in or out value, you get no clip anyway!  So essentially, you need the value you're looking for in order to find it!...

SIStoreAction( null, null, 2, "temp_clip", false);

I'm using Jscript.

Thanks,

DAN

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.