Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random Position Scale from a single layer

  • Random Position Scale from a single layer

    Posted by Juan Obregon on December 22, 2005 at 10:25 pm

    I need to ramdomly display or animate from a single object multiple copies of itself in different positions and scale. It would be like flashing the same object at different scales and position.

    Thanks

    Colin Braley replied 20 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Colin Braley

    December 23, 2005 at 5:22 am

    I’m not sure if I totally understand what you are asking for. If you want to take a layer, duplicate it and have it in random positions for the whole time you could add these two expressions before duplicating it:

    //Expression for position

    seedRandom(index, true);
    x = random(0, thisComp.width);
    y = random(0, thisComp.height);
    [x, y]
    //End position expression

    Then try this for scale:

    seedRandom(index, true);
    scaleMin = 30;
    scaleMax = 200;
    s = random(scaleMin, scaleMax);
    [s, s]
    //End scale expression

    Thats about it.

    ~Colin Braley

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