ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Using Markers to loop Fade in/out

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mark Warner
Using Markers to loop Fade in/out
on Oct 2, 2018 at 11:21:20 am
Last Edited By Mark Warner on Oct 2, 2018 at 1:07:37 pm

Really need some help, please! I have to add a ton of subtitles to some footage. I found a great script that separates out the carridge returns of text so it'll show one sentence at a time whenever I add a marker.

I really want to add a text animator to this script to work off the same makers, ideally with a fade in and a fade out.

The problem I having is that I need the fade in to start right at the beginning of the marker and the fade out before the end of the next marker. So I need one marker to control the fade out AND the fade in of the next sentence.

Can't find any examples like this, can anyone help!!?

Thanks 😃



Return to posts index

Dan Ebberts
Re: Using Markers to loop Fade in/out
on Oct 2, 2018 at 1:22:46 pm

Try this:


if (marker.numKeys > 0){
fadeDur = .1;
n = marker.nearestKey(time).index;
t = marker.key(n).time;
if (time < t){
ease(time,t-fadeDur,t,value,0);
}else{
ease(time,t,t+fadeDur,0,value);
}
}else
value



Dan



Return to posts index

Mark Warner
Re: Using Markers to loop Fade in/out
on Oct 2, 2018 at 2:33:43 pm

Thanks so much Dan, you've made that look stupidly easy (and has saved me hours :D).

Massive thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]