Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Slow down the Random ?

  • Slow down the Random ?

    Posted by Bartosz Pelc on January 7, 2016 at 8:31 pm

    Hi boys and girls, quick and simple (not for me) quest.
    It’s my expression:

    y=random(50,940);
    x=random(50,940);
    [x,y]

    It’s works perfectly 🙂 but every frame, i need to slow it down any ideas?

    Thank’s in advance.

    Bartosz Pelc replied 10 years, 8 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    January 7, 2016 at 10:57 pm

    How slow do you want it? This should slow the change to once per second:

    seedRandom(Math.floor(time),true);
    y=random(50,940);
    x=random(50,940);
    [x,y]

    or, you could do it this way (5 changes per second in this example):

    posterizeTime(5);
    y=random(50,940);
    x=random(50,940);
    [x,y]

    Dan

  • Kalleheikki Kannisto

    January 8, 2016 at 9:33 am

    Hmm. Most interesting: per-property posterized time!

  • Bartosz Pelc

    January 8, 2016 at 11:33 am

    posterizeTime(5);

    WORKS GREAT for me thanks a lot guys!

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