ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

animate many layers into their final position

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lori Newman
animate many layers into their final position
on Aug 4, 2009 at 9:53:01 pm

HI,

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?

thanks


Return to posts index

Filip Vandueren
Re: animate many layers into their final position
on Aug 4, 2009 at 11:01:41 pm

Something like this:

seedRandom(index,true);
startPos=random([-200,-200],[200,200]);

animStart=2;
animEnd=4;

ease(time,animStart,animEnd,startPos,[0,0])+value;

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)



Return to posts index

Lori Newman
Re: animate many layers into their final position
on Aug 5, 2009 at 12:00:26 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?

thanks!!!!!


Return to posts index


Filip Vandueren
Re: animate many layers into their final position
on Aug 5, 2009 at 8:42:56 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.



Return to posts index

Emil Woodruffe
Re: animate many layers into their final position
on Aug 5, 2009 at 8:57:40 am

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


Return to posts index

Emil Woodruffe
Re: animate many layers into their final position
on Aug 5, 2009 at 8:59:44 am

seedRandom(index,true);
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");

[x,y,z]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]