-
Trigger Animation through layer Marker
Hi Dan,
I was using one of your expression to trigger the keyframes of text layer animation, can we use the Marker name to trigger the Animation so that, i can insert a new marker for animation “Out” so that the animation doesn’t Override.
preroll = 1;
L= thisComp.layer("Controller");
n = 0;
t0 = time + preroll;
if (L.marker.numKeys > 0){
n = L.marker.nearestKey(t0).index;
if (L.marker.key(n).time > t0) n--;
}
if (n < 1){
t = 0;
}else{
t = t0 - L.marker.key(n).time;
}
valueAtTime(t)