-
Triggering animation with layer marks
Hi, I´m using this expression to trigger the last keyframe of three simple keyframes. How to modify the expression to trigger the entire animation using two layer marks?. I mean, the first mark will trigger the keyframe 1 and the second mark will control when the animation finishes. Thank you!
L = thisComp.layer("Control");
if ((L.marker.numKeys > 0) && (numKeys > 2) && (time > key(2).time)){
t2 = key(2).time;
t3 = key(3).time;
tm = L.marker.key(1).time;
t = linear(time,t2,tm,t2,t3);
valueAtTime(t);
}else
value