marker duration
Hey,
I've been playing around with importing .srt files into After Effects usinf Digital Anarchy's free script found here...
https://digitalanarchy.com/demos/SRT-importer.html
I'm trying to add an expression to an opacity animator on the text layer that types on the words/characters over the duration of the marker from 0% to 100%....
m = thisLayer.marker.nearestKey(time);
s = timeToCurrentFormat(m.time)/25;
dur = m.duration;
linear(time, s, s + dur, 0, 100);
It starts off okay, but as soon as it detects the next marker it resets to 0.
Is there anyway to keep it going until the end of the marker duration and then reset to 0 at the start of the next marker?
