Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Buzz Word fade in/out

  • Buzz Word fade in/out

    Posted by Nino Vrana on June 2, 2009 at 9:30 am

    Hi,

    Can anybody help me modifying this “Buzz Word” expression?

    buzz_words = “One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten”;
    split_buzz_words_array = buzz_words.split(‘|’);
    buzz_frame_rate = effect(“Buzz Frame Rate”)(1);
    buzz_frame = Math.floor(time * buzz_frame_rate);
    buzz_index = buzz_frame % split_buzz_words_array.length;
    split_buzz_words_array[buzz_index];

    Rather than jumping from one word to the next, I would like to be able to fade one word out and fade the next word in. Any help appreciated.

    Many thanks,
    Nino

    Nino Vrana replied 17 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 2, 2009 at 1:38 pm

    I’d use something like this for the Source Text:

    buzzWords = “One|Two|Three|Four|Five|Six|Seven|Eight|Nine|Ten”;
    dur = 1;
    splitBuzzWords = buzzWords.split(‘|’);
    period = Math.floor(time/dur);
    splitBuzzWords[Math.min(buzzWords.length-1,period)]

    And this for the Opacity:

    dur = 1;
    fadeTime = .1;
    phase = time%dur;
    phase < fadeTime ? linear(phase,0,fadeTime,0,100) : linear(phase,dur-fadeTime,dur,100,0) You just need to make sure the duration (dur) is the same in both expressions. Dan

  • Nino Vrana

    June 2, 2009 at 2:23 pm

    Many thanks Dan!

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