-
Triggering time remap with marker
Hi, this expressions is almost perfect for me..
i just want to make animation run at marker “START” then reverse from 2sec-0sec at marker “OUT”
So for example…
frame 0 at “START” marker – animation starts and time remap is run at 0:00 to 2:00.
frame 120 / 2 sec before “OUT” marker – animation reverse and time remap is run at 2:00 to 0:00fadeFrames = 60;
n = 0;
if (thisComp.marker.numKeys > 0){
n = thisComp.marker.nearestKey(time).index;
if (thisComp.marker.key(n).time <= time){
n++;
if (n > thisComp.marker.numKeys) n = null;
}
}
if (n > 1){
if (thisComp.marker.key(n).comment == "OUT")
linear (time,thisComp.marker.key(n).time - framesToTime(fadeFrames),thisComp.marker.key(n).time,2,0)
else
0;
}else{
if (n == null) 0 else 2
}
Sorry, there were no replies found.
