Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random Scale Expression

  • Lord Scales

    May 20, 2007 at 5:52 pm

    Try this Dan Ebberts tutorial: Random Pan and Scale:

    https://www.motionscript.com/mastering-expressions/random-3.html

    Lord Scales

  • Dan Ebberts

    May 20, 2007 at 9:59 pm

    Something like this maybe:

    frame = Math.round(time/thisComp.frameDuration);
    seed = Math.floor(frame/3);
    seedRandom(seed,true);
    s = random(50,150);
    [s,s]

    Dan

  • Dáila Assis

    June 22, 2010 at 8:04 pm

    How can I random only Y scale?

    tnx

  • Dan Ebberts

    June 22, 2010 at 9:26 pm

    Like the expression earlier in this thread except random scale y only? Like this:

    frame = Math.round(time/thisComp.frameDuration);
    seed = Math.floor(frame/3);
    seedRandom(seed,true);
    s = random(50,150);
    [value[0],s]

    Dan

  • Dáila Assis

    June 22, 2010 at 9:50 pm

    It works!!! Thank U Dan!

  • Chris Cameron

    August 19, 2015 at 12:08 pm

    Sorry… reviving this old thread again.

    This expression worked perfectly for me, except I’m wondering whether there’s a way to randomize the frame hold number?

    So instead of the 3 in seed = Math.floor(frame/3); there would be a range from 3 – 10, or something like that.

    Thanks!

    frame = Math.round(time/thisComp.frameDuration);
    seed = Math.floor(frame/3);
    seedRandom(seed,true);
    s = random(50,150);
    [s,s]

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