Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects expression of animating colors

  • expression of animating colors

    Posted by Cognito on March 9, 2006 at 9:20 pm

    I have 9 circles, each containg more than 2 rings of colors.
    I would like to let the colors change randomly but don’t bother to do it manually.
    Is there any way to animate them by using some expressions?
    many thanks!

    Rachy_baby replied 20 years, 2 months ago 4 Members · 8 Replies
  • 8 Replies
  • Dan Ebberts

    March 9, 2006 at 9:35 pm

    If you’re using the Fill effect, this should give you a random color:

    seedRandom(index,true);
    random([0,0,0,1],[1,1,1,1])

    Dan

  • Cognito

    March 9, 2006 at 10:03 pm

    thanks for the reply Dan.
    I don’t know which effect to apply here. but i tried to pull the fill effect onto one of the rings, and click on the color property under fill to add expression to it.
    but the color does not change. then i tried to set keyframes with different colors on the timeline. but still nothing happens.
    do you have any clue about that?

  • Dan Ebberts

    March 9, 2006 at 10:35 pm

    Did you successfully add the expression to the fill color (the expression is there and enabled)? When you apply the fill it defaults to red. Are you saying that it stays red when you apply the expression?

    Dan

  • Julian Sixx

    March 10, 2006 at 7:35 am

    Hi
    I tried the expression as well and it only works when I change the word true to false.
    Color changes now every frame.I’d like to change color every second for example,what’d be the code?
    Thx

  • Cognito

    March 10, 2006 at 7:44 am

    Hey Dan
    Yes it stayed red. But when I changed true to false it does work. It would be nice if it can change slower, like twice a second. Do you know how that can be done?

    Thanks

  • Dan Ebberts

    March 10, 2006 at 3:13 pm

    Try this:

    posterizeTime(2);
    random([0,0,0,1],[1,1,1,1])

    Dan

  • Dan Ebberts

    March 10, 2006 at 3:14 pm

    Like this:

    posterizeTime(1);
    random([0,0,0,1],[1,1,1,1])

    Change the posterizeTime value for a different rate.

    Dan

  • Rachy_baby

    March 11, 2006 at 9:46 pm

    Hi there

    Is there any way of applying this to the scale property? So that you have, say, a few different blocks which expand and contract randomly at a moderately slow (ambient) pace?

    Many thanks!

    rach

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