Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random seed on multiple layers

  • Random seed on multiple layers

    Posted by Jakob Wagner on April 12, 2015 at 9:42 am

    Hi,

    I want the same random seed on two different layers, is that not possible?

    To explain, I have two layers with a expression on their position channel.

    Layer 1:

    seedRandom(6, true);
    [random()*1000,200];

    Layer 2:

    seedRandom(6, true);
    [random()*1000,400];

    Both layer now have a random x value. But I would like them to have the SAME random value. Since the seed is the same I assumed this would work, but it don’t.

    Any help?

    – I could of course parent one layer to the other, but this is just a simplified setup to figure out how to do this.

    Thanks,
    Wagner

    Jakob Wagner replied 11 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 12, 2015 at 4:22 pm

    That works with wiggle(), but not random(). What I generally do is move the random call to a neutral location, like a slider or point control on a null, which I then use to publish the random value to all other layers that need it.

    Dan

  • Jakob Wagner

    April 12, 2015 at 4:38 pm

    Had the feeling, that would be the only way to do it. I was hoping for a more clean way to do it though.

    But thanks, again. You seem to be the one who answers all my questions no matter which forum. 🙂 I appreciate it.

    – Wagner

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