Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Doubt about an expression

  • Doubt about an expression

    Posted by Xdominguez Pukkas on December 13, 2012 at 2:03 pm

    So I posted this on the wrong forum:

    I know it is simple but I am clueless when it comes to expressions:

    I have a text I want to randomly change the color (using the tint effect) every two seconds for an undetermined amount of time. I have been copying keyframes, but it is no longer feasible.

    What code should I use?

    Thank you all!

    Xdominguez Pukkas replied 13 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 13, 2012 at 6:40 pm

    Try this on “Map White To”:

    period = 2;
    seedRandom(Math.floor(time/period),true);
    random([0,0,0,1],[1,1,1,1])

    That will give you randoms colors from the entire spectrum every two seconds.

    Dan

  • Xdominguez Pukkas

    December 17, 2012 at 12:31 pm

    This works!

    I’d like the colors to change gradually, as if dissolving, instead of changing abruptly. What expression should I use?

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