-
Adding Time offset to Marker expression
Hello guys,
I have below expression on time-remap property which triggers animation on the markers set on Action layer.
Is it possible to add certain frames of pre-roll to this expression so if the maker is set at 1 sec the transition start at 0.5 sec.
I have added n=1 so that it skips first marker as it does not require transition.
Thank you!
m = thisComp.layer("Action").marker;
n = 1;
if (m.numKeys > 1){
n = m.nearestKey(time).index;
if (m.key(n).time > time) n--;
}
if (n > 1){
t = m.key(n).time;
time - t ;
}else
0