Animating

Sep 9

Useful expressions:

clock ticking
wholeSecond = Math.floor(time);
rotateDuration = 0.2;
anglePerSecond = 6; // 360 / 60
startAngle = wholeSecond * anglePerSecond;

ease(time, wholeSecond, wholeSecond + rotateDuration, startAngle, startAngle + anglePerSecond)

make a layer follow the rotation of another layer
thisComp.layer("layer name goes here").rotation
thisComp.layer("layer name").rotation*2 <- double speed