Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to randomize a size of an object

  • Expression to randomize a size of an object

    Posted by Alessio Rattazzi on August 15, 2023 at 9:01 am

    I would like the size of my object to change randomly (maintaining the height-width proportion), ideally being able to manage how many changes occur per second and the minimum and maximum size the object can have.

    The closest expression to what I want to achieve that I found is wiggle, but it does not allow me to control all the values as I would like (e.g. the scale is not maintained).

    Thank you very much in advance for your help and time

    Best Alessio

    Brie Clayton replied 1 year, 7 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    August 15, 2023 at 4:33 pm

    Maybe a wiggle expression like this:

    min = 20;
    max = 80;
    freq = 2;
    center = (min + max)/2;
    amp = (max - min)/2;
    w = wiggle(freq,amp) - value;
    [center,center] + [w[0],w[0]]
  • Alessio Rattazzi

    August 16, 2023 at 2:53 pm

    Thanks a lot Dan! It works perfectly!

    Best Alessio

  • Brie Clayton

    August 17, 2023 at 2:03 pm

    Thank you for the solve, Dan!

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