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;
It depends on which version of AE you’re running. You can’t access the comment in the newer versions but you used to be able to with marker.value. Hopefully this very useful feature will be restored in a future version.
It depends on which version of AE you’re running. You can’t access the comment in the newer versions but you used to be able to with marker.value. Hopefully this very useful feature will be restored in a future version.
max_dev=20; // max deviation in pixels
spd=35; //speed of oscillation
decay=10; //how fast it slows down
t = time – in_point;
s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
value + [s,s]
max_dev=20; // max deviation in pixels
spd=35; //speed of oscillation
decay=10; //how fast it slows down
t = time – in_point;
s = max_dev*Math.sin(spd*(t))/Math.exp(decay*t);
value + [s,s]