Re: [ scripting ] Filter "NodeAnimatedParameters" to be only translate

Date : Mon, 15 Oct 2007 13:25:43 -0700
To : <xsi(at)Softimage.COM>
From : Matt Lind <speye_21(at)hotmail.com>
Subject : Re: [ scripting ] Filter "NodeAnimatedParameters" to be only translate
If you already know the parameters and are receiving feedback from the user as to which they want to manipulate, then it should be very simple - set up some events for each type of animated parameter, then only pull the affected parameters from the object so they can be offset.  These could be implemented as events in your script's PPGLayout.  For example, if the user clicks the "translation" checkbox (or button) in the PPG, then the translation_OnClicked() event gets called.  Inside the event, your code seeks and pulls the Fcurves for the translation parameters of the affected object(s) and modifies them as needed.  Since you know where each of the parameters are located on the object, just get a reference to them and test if they are animated rather than pulling all animated parameters from the object and trying to weed through the stack looking for the ones your interested in.

Matt

------------------------------
Matt Lind
Animator / Technical Director
SOFTIMAGE certified instructor:
   SOFTIMAGE|3D
   SOFTIMAGE|XSI
Matt.Lind(at)Mantom(dot)net






Date : Mon, 15 Oct 2007 21:49:40 +0200
To : XSI(at)Softimage.COM

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.