-
Expession Question
I have the follow expression below applied to my camera’s position to give it a little bounce on each keyframe. However, I was wondering if there was a way to trigger the bounce to occur on every other keyframe, so that I can get the bounce to trigger on each ‘settling’ keyframe rather than the starting keyframe of the camera’s position? Thanks.
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n–;
}
}
if (n == 0){
value
}else{
t = time – key(n).time;
veloc = 18;
amplitude = 60;
decay = 3;
y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
value+[0,0,y];
}