View Full Version : offesting translateY from another animated element

06 June 2012, 07: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?


06 June 2012, 09: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.

06 June 2012, 11:48 PM
Thank you!

06 June 2012, 12: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 -


CGTalk Moderation
06 June 2012, 12: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.