-
Trigger animation in with marker comment & out with empty marker comment
Hey everyone!
I’m not super use to expression but I’m trying to create a subtitle expression with custom animation in and out. The problem that I have is the following:
I want to use an empty marker comment to define the animation out of the subtitle but I can’t get it to work.
Here’s my file if you want to have a look at it. I’m trying to get the opacity to fadeOut when there’s an empty marker, if you can help me with that, I will figure out the rest.
Thanks if you can help!
m = thisComp.layer("subtitles").marker;
n = 0;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (m.key(n).time > time) n--;
}
if (n > 0){
t = m.key(n).time;
ease (time,t,t+0.2,0,100);
}else
0;