Thursday, February 4, 2010

Spidy Walk


To create this animation, here shown in playblast, I hand animated just one leg. It turns out to be relatively easy to copy animation from one attribute to another with a time offset. If you want to copy the X translation of leg 1 to the X translation of leg 2 but with a 12 frame offset, the expression looks like this:


LegTwo.translateX = `getAttr -t (frame - 12) LegOne.translateX`;


The -t flag tells the getAttr (= get Attirbute) command to query the value at a specific frame. "frame" is the current frame.

No comments: