-
MultipleTime Remap using multiple markers
I have two time remamps setup on a pre-comp. One is doing a fadein, other is doing a fade out. This i want to control using 2 markers on another layer. The first marker should trigger the time remap of the fadein and the second marker should trigger the fadeout timeremap as in the pic below.
I have the following script from dan’s website but this seems to just trigger the first TimeRemap it doesn’t consider the 2nd marker and trigger the 2nd timeremap.
How to achieve this ?
action = comp(“Comp 1”).layer(“Marker”);
n = 0;
if (action.marker.numKeys > 0){
n = action.marker.nearestKey(time).index;
if (action.marker.key(n).time > time){
n–;
}
}
if (n == 0){
0
}else{
m = action.marker.key(n);
myComment = m.comment;
t = time – m.time;
}
try{
actMarker = action.marker.key(myComment);
if (action.marker.numKeys > actMarker.index){
tMax = action.marker.key(actMarker.index + 1).time – actMarker.time;
}else{
tMax = action.outPoint – actMarker.time;
}
t = Math.min(t, tMax);
actMarker.time + t;
}catch (err){
0
}
Sorry, there were no replies found.