Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions

  • Expressions

  • Eric Sampson

    April 6, 2005 at 6:27 am

    I want the opacity of my layer to randomly change. I wrote: random(70,95)

    But now I would like the flickering to occur not so fast. I want it a little slower. Can someone help me out with what I need to enter to slow down the speed of the flickering? Thanks!

  • John Dickinson

    April 6, 2005 at 6:38 am

    Try this:

    n=5; //change every 5 frames
    seed=Math.floor(time/(this_comp.frame_duration*n))+1;seed_random(seed,true);
    random(70,95)

  • Mike Clasby

    April 6, 2005 at 7:14 am

    Or you could do something like this:

    Since you want to vary the opacity from 70 to 95, set a keyframe for opacity at 82.5 (splits the difference), then add a wiggle expression:

    wiggle(5, 12.5)

    then adjust the frequency (5) to suit your needs.

    It’s a bit different, but eminently tweakable.

Viewing 1 - 3 of 3 posts

Log in to reply.

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