Hi dan.. The script you’re giving is working fine.. but what if I have more than two keyframes? meaning I want the first 2 keyframes play as usual, but only the third and fourth keyframes will be triggered by that marker.
I did this :
L = thisComp.layer(“Layer With Marker”);
if ((L.marker.numKeys > 0) && (numKeys > 0)){
t1 = key(3).time;
t = Math.max(time – L.marker.key(1).time,0);
valueAtTime(t1 + t);
}else
value
Key 1 and 2 does not play at all.
Thanks!