-
Skipping marker to adjust opacity
Hi All – I have a working expression for going to the next marker to either fade in/out – but I’d like to skip a marker and go a few key frames….I can’t wrap my head around where I would add that in!
Here is the original code:
action = comp("General Settings").layer("Coordinates");
mf = comp("General Settings").layer("General Settings").effect("Markes Fade Out Time")("ADBE Slider Control-0001");
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{
try{
t = action.marker.key(n).time;
tNext = action.marker.key(n+1).time;
if (action.marker.key(n).comment == "s1") ease(time,tNext,tNext,0,100) else 0;
if (action.marker.key(n).comment == "e1") ease(time,tNext-mf,tNext,100,0)}catch (err){
0;
}
}
I thought it would have been in the tNext = action.marker.key(n+1).time; – but that doesn’t seem to do what I’m looking for! Any help would be greatly appreciated!
