Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random Z position for a hundred layers?

  • Random Z position for a hundred layers?

    Posted by Espen Jakobsen on October 9, 2008 at 9:23 am

    I’m working on this logo “expotion”:

    https://espenja.com/feedback/logo_kuttet.mov

    In order to do this I cut the logo file up in Illustrator (and sequenced it to 130 layers) and then in AE I actually moved each layer individually by keyframes. Now I need to redo some of the animation, and I’d wish I could somehow by expressions give them all random z-positions within a certain range over a certain time. I’ve linked their Z-positions to a null object with a slider, but all I get from that is all the layers get the same increase in Z-position at the same time.
    Seems like a stretch, but any help here?

    Espen Jakobsen replied 17 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 9, 2008 at 7:32 pm

    Something like this maybe:

    moveTime = 4;
    maxZ = 500;
    minZ = 100;

    seedRandom(index,true);
    z = ease(time,inPoint,inPoint+moveTime,random(minZ,maxZ),0);
    value + [0,0,z]

    Dan

  • Espen Jakobsen

    October 14, 2008 at 5:47 pm

    Thanks again Dan!

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