Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Adding random Opacity to hundreds of layers

  • Adding random Opacity to hundreds of layers

    Posted by Ben Hawkins on December 7, 2011 at 5:08 am

    Im looking to add random opacity to about 300 layers and with out having to go to each layer and type in a expression. Plus, every layer has to be independent, meaning each layer has to have its own opacity shift and at its own time.

    How would I do something like this?

    Thanks!

    Ben Hawkins replied 14 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 7, 2011 at 2:14 pm

    You weren’t very specific about what the expression should do, but here’s a generic example:


    maxDelay = 5;
    seedRandom(index,true);
    delay = random(maxDelay);
    if (time >= delay)
    random(100)
    else
    value

    Once you apply the expression to one layer, select the Opacity property and Edit > Copy Expression Only, select all the other layers, Edit > Paste.

    Dan

  • Ben Hawkins

    December 7, 2011 at 6:47 pm

    Awesome Dan, Thanks!

    I just want the opacity to randomly change to look like the layers are flickering. So have the opacity change 30-60% randomly but constantly.

    I got the hottest beats and the softest fur.

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