Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions animate many layers into their final position

  • animate many layers into their final position

  • Lori Newman

    August 4, 2009 at 9:53 pm


    I have 500 layers, all that will end at different positions forming an object. Their first keyframes can be random, don’t need to move very far but each object needs to land in it’s final position. Is there an expression I can tie all of these layers to that will randomize all of their first positions but allow their final keyframes to be specific?


  • Filip Vandueren

    August 4, 2009 at 11:01 pm

    Something like this:




    this will animate the layer from a random position +-200 pixels away to the endvalue. Animation takes place between 2 and 4 seconds.
    Apply this to position ( or anchorpoint)

  • Lori Newman

    August 5, 2009 at 12:00 am

    That’s great!! Is there a way to animate them all through one layer,
    or do I have to apply this expression to each layer?


  • Filip Vandueren

    August 5, 2009 at 8:42 am

    You need to apply it to every layer indeed. Since you want all layers to act differently, it wouldn’t make sense to parent them to say a null, and randomize that.
    Expressions only affect the value of the parameter they’re applied to.

  • Emil Woodruffe

    August 5, 2009 at 8:57 am

    Dan answered this this one a while back.
    Control everything from sliders.

  • Emil Woodruffe

    August 5, 2009 at 8:59 am

    pos = random([-800,-500,-500],[800,500,500]);

    x = pos[0]*thisComp.layer(“slider”).effect(“x depth”)(“Slider”);
    y = pos[1]*thisComp.layer(“slider”).effect(“y depth”)(“Slider”);
    z = pos[2]*thisComp.layer(“slider”).effect(“z depth”)(“Slider”);


Viewing 1 - 6 of 6 posts

Log in to reply.

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