How To Use Layer Markers To Trigger Animations in After Effects
In this tutorial, learn how to quickly and easily animate objects along a path in after effects.
L = thisLayer;
KF1 = key(2).time - key(1).time;
KF2 = key(4).time - key(3).time;
M1 = L.marker.key(1).time;
M2 = L.marker.key(2).time;
if (time < L.marker.key(2).time)
linear(time,M1,M1+KF1,key(1).value,key(2).value)
else if (time > L.marker.key(1).time)
linear(time,M2,M2+KF2,key(3).value,key(4).value)
else
value;