Trigger Keyframes

// motioncaddy.com

L= thisLayer;

n = 0;

if (L.marker.numKeys > 0){

n = L.marker.nearestKey(time).index;

if (L.marker.key(n).time > time){

n--;

}

}if (n == 0){

valueAtTime(0);

}else{

t = time - L.marker.key(n).time;

valueAtTime(t)

}

 

Copy and paste the above expression into the property of your keyframed layer.

Don’t forget to right-click and add a marker for this to work!

Enjoy!

Next
Next

Stop loopOut