Script: SRT Animation Offseter

Date : Tue, 27 Dec 2005 16:52:25 +0200
To : <XSI(at)Softimage.COM>
From : "Oz Adi" <oz(at)broadcast.co.il>
Subject : Script: SRT Animation Offseter
Hi,

Just finished writing a little scirpt.
In 3DSMAX, if you have an object with animation, and you move/rotate/scale it
without hitting the "animate" key, the program offsets the SRT animation  curves of the object to the new location.

This is very handy sometimes... (you cannot  put a null above an animated
object, on it's pivot, and move/rotate/scale it from there)

This is my first script ever, currently I am using every free hour to study Jscript in XSI
from Helge's Scripting DVD (www.3dtutorial.com thanks Helge!)

I wrote this script as a practice of what I've learned so far (not much ;)
I am sure it could have been written a lot cleaner, shorter and smarter.. but hey... :)

I tested it in various conditions, and it seems to work ...
please let me know otherwise!

To use the script:

1) Select one object with S and/or R and/or T animation curves
2) go to a any frame on the timeline.
3) without saving a key' rotate,scale and/or translate the object to the desired offset
4) run the script, and check on/off which channels you wish to offset, click OK, and gaze in wonder

** The script will offset the entire FCurve, next version might do it for a range of frames.

As far as I know, you can only do it on a clip in the mixer (offset map)
and I missed it for normal keys...

download from here : http://www.ozadi.com/scripts/animation-offseter.zip
 
cheers,
 
Oz Adi
 
 



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.