Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animate object in Z space w/Random velocity

  • Animate object in Z space w/Random velocity

    Posted by Bryan on January 6, 2007 at 11:38 pm

    I need an expression that will animate the position of layers (in this case the z position), but one that has some kind of a random aspect to the velocity. Basically i have a ton of layers that all need to fly back in z space at different speeds. When I say a lot of layers, I mean like hundreds. They’ve all been laid out very specifically in illustrator; the starting registration of each layer is very important. Basically I’m simulating a plane breaking apart and falling away. If I link each layer’s position to a null or a slider, each layer then assumes the position of said null or the value of said slider–messing up the layout/registration. Basically, I want each layer to start at their set position in space and animate back in z, all with random velocity. So a given layer’s starting postion + movement back in z with a random seed/aspect to the velocity. Any ideas.

    thanks.

    -b

    Dan Ebberts replied 19 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    January 6, 2007 at 11:46 pm

    Something like this maybe?

    minV = 100; // min velocity (pixels per second)
    maxV = 500;
    seedRandom(index,true);
    V = random(minV,maxV)
    value + [0,0,time*V]

    Dan

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