PDA

View Full Version : offesting translateY from another animated element


rochre26
06-11-2012, 08:55 PM
object "A" moves 1 unit in Y for 6 frames.

3 frames into "A"'s animation object "B" needs to begin moving 1 unit in Y for 6 frames. and then object "C" bgins its animation 3 frames after "B" starts its animation. etc.

I've key framed "A" for 6 frames. I then added an expression to "B" (b.translateY = a.TranslateY;)

The questions is what's the syntax to make "B" follow "A"s translate 3 frames later?

Thanks.

Nyro
06-11-2012, 10:27 PM
Funny coincidence, I just finished replying to a post from someone who was doing something similar to what I was about to suggest:

Use an expression for Object B's translateY attribute that looks like this:

ObjectB.translateY = `getAttr -t (frame - 3) ObjectA.translateY`;


Add the same expression to ObjectC, except in the 'getAttr' command, you replace ObjectA with ObjectB.

rochre26
06-12-2012, 12:48 AM
Thank you!

Horganovski
06-12-2012, 01:10 AM
I wrote a little MEL tool a while back that allows you to stagger the animation on the selected objects, you might find that handy too for this kind of thing - http://www.graphite9.com/MayaDownloads.html

Cheers,
Brian

CGTalk Moderation
06-12-2012, 01:10 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.