Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Using Markers to loop Fade in/out

  • Using Markers to loop Fade in/out

    Posted by Mark Warner on October 2, 2018 at 11:21 am

    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 ????

    Mark Warner replied 7 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 2, 2018 at 1:22 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

  • Mark Warner

    October 2, 2018 at 2:33 pm

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

    Massive thanks

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy