bsb312
10-05-2007, 01:39 PM
I was wondering if anyone knows how to create an expression, with maya, that will solve secondary action in real time without scrubbing the time line? I have gotten it to work with time frames but I was lookin to get this done without having to play it back. Any suggestions
would really help me. Im stumped!
This is the expression I came up with that utilizes time:
float $current;
float $delay;
float $last;
$current = `getAttr -time (frame+1) ball.tx`;
$delay = `getAttr -time (frame - 10) ball.tx`;
$last = ((($current - $delay)*frame/60)+ball.translateX);
locator1.translateX = $last;
would really help me. Im stumped!
This is the expression I came up with that utilizes time:
float $current;
float $delay;
float $last;
$current = `getAttr -time (frame+1) ball.tx`;
$delay = `getAttr -time (frame - 10) ball.tx`;
$last = ((($current - $delay)*frame/60)+ball.translateX);
locator1.translateX = $last;
