| Re: what is the trick to get around the fact that expressions don't have memory? by Dan Ebberts on Aug 13, 2006 at 11:37:57 pm |
Depends on what you're doing. A lot of times you can convert the expression to a equation based on time. Sometimes you have to have your expression "recreate" the past by walking through the comp frame by frame. The are other, more obscure techniques that can be helpful in rare situations.
If all you want to do is increment a value on each frame you could do it like this:
myVar = 10; //starting value
f = Math.round(time/thisComp.frameDuration); //frame number
myVar += f;
Dan
Respond to this post • Return to posts index | |