Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Randomize Position Offset

  • Randomize Position Offset

  • Christian Simpson

    January 25, 2023 at 12:09 am

    Hey All,
    I am trying to randomly offset the position of a layer based on it’s current value without separating it’s X and Y dimensions. Anyone know if this is possible?
    I would also like to freeze the random value returned in place. This is what I have so far on the position property and it seems completely wrong. Thanks for any help.

    seedRandom(index, true)
    a = random[value+50,value-50];
    b = random[value+50,value-50];
  • Dan Ebberts

    January 25, 2023 at 12:13 am

    Maybe like this:

    seedRandom(index, true);
    offset = random([-50,-50],[50,50]);
    value + offset
  • Christian Simpson

    January 25, 2023 at 12:16 am

    Worked immediately. I’m not really sure what we’re going to do when you’re no longer around Dan. The world owes you.

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