Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Random Color with Parameters

  • Random Color with Parameters

    Posted by Nick Adcock on October 25, 2010 at 8:01 pm

    Perhaps someone…cough…Dan Ebberts….has posted or has already created an expression for this. I have 8 colors I would like to cycle through randomly for say 5 frames at a time and hold on that color not blend between them. I’ve seen quite a few random color posts but none with these parameters.

    Thank you Thank you

    Nick Adcock replied 15 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kevin Camp

    October 25, 2010 at 10:05 pm

    you could add the fill effect to the layer, add 8 keyframes to the color property, setting a unique color for each keyframe.

    then use an expression like this for the color property:

    posterizeTime(6); // value is in fps
    r = Math.ceil(random(0,numKeys));
    valueAtTime(key(r).time)

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

  • Nick Adcock

    October 26, 2010 at 7:54 pm

    Kevin,

    Thanks very much. That worked well.

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