Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to choose in a list of random angles

  • Expression to choose in a list of random angles

    Posted by Sebastien Bruzzo on August 14, 2011 at 11:38 am

    Hello there,

    First please excuse me for my english 🙂

    I want to try something like this :

    1) put a Linear wipe effect on a solid layer and randomly select the wipe angle parameter in a list of 4 possible angles (90, -90, 0, 180)

    2) suppose that the layer duration is 5 seconds, and i have 100 or 200 similar solids in my comp, i want the Linear wipe effect to start 3 frames before the out point of every layers.

    Thank you very much for helping me ! 🙂

    Sebastien Bruzzo replied 15 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 14, 2011 at 3:19 pm

    This should work for the angle:

    seedRandom(index,true);
    90*Math.floor(random(-1,3))

    Try this for wipe completion:

    f = 3;
    linear(time,outPoint-f*thisComp.frameDuration,outPoint,0,100)

    Dan

  • Sebastien Bruzzo

    August 14, 2011 at 5:51 pm

    Dan, thank you very much for your quick reply ! This is exactly the result i expected.

    <3

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