I have been trying to do camera after motion.
I have this expression:
Code: Select all
t = time- key(2).time;
if (t < 0) {
value;
}
else
{
veloc =28;
amplitude = 60;
decay =2.05;
x = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
y = amplitude*Math.sin(veloc*t)/Math.exp(decay*t);
value + [x,y];
}
However, it only works for two keyframes.
In my comp I have a camera which starts off far away, then moves into view and stops. This takes up two keyframes. After the second keyframe the expression code kicks in and does a slight wobble on the camera.
What I would like to do, is to allow multiple camera moves and stops with the wobble only kicking in between the stops.
I'm wondering how I could modify the expression to achieve this functionality?
Thanks