-
Fade Out at Marker End
Hello… I want to add an expression to another expression to add a slight fade (like 5 or 6 frames) out to a text layer. I don’t want it to disappear abruptly.
Here’s the expression;
m = thisLayer.marker;
n = 0;
val = “”;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (m.key(n).time > time) n–;
}
if (n > 0){
t = time – m.key(n).time;
if (t < m.key(n).duration){
val = m.key(n).comment;
}
}
val
Thanks.