ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Position Move on layer's inPoint from multiple variable specified Coordinates randomly per layer?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gerald Mark Soto
Position Move on layer's inPoint from multiple variable specified Coordinates randomly per layer?
on Mar 23, 2018 at 3:29:09 pm

Okay so what i want to do is have have a grid of 20 boxes (100x100 pixels). And I want the boxes to slide into a grid formation from their inpoints. I would arrange them into a perfect grid but then i would like the inpoint to animate them into that perfect grid. Meaning i would like each layer to random choose to come from the top, bottom, left or right axis then settle into place. And I would like for the move to be specific to a range of movement, lets say 100 pixels in any direction. is that possible? I know about making expression for inpoints. But how do you make multiple variable for inpoint expressions.


Return to posts index

Dan Ebberts
Re: Position Move on layer's inPoint from multiple variable specified Coordinates randomly per layer?
on Mar 23, 2018 at 4:09:43 pm

Something like this maybe:


easeTime = .5; // ease into postion over .5 second
easeAmt = 100;
seedRandom(index,true);
offset = random() < .5 ? [easeAmt,0] : [0,easeAmt];
offset *= random() < .5 ? 1 : -1;
t = time - inPoint;
value + easeOut(t,0,easeTime,offset,[0,0]);



Dan



Return to posts index

Gerald Mark Soto
Re: Position Move on layer's inPoint from multiple variable specified Coordinates randomly per layer?
on Mar 23, 2018 at 6:02:36 pm

PERFECT !!!! Thanks again.


Return to posts index


Gerald Mark Soto
Re: Position Move on layer's inPoint from multiple variable specified Coordinates randomly per layer?
on Apr 9, 2018 at 9:56:18 pm

Is it possible to add the same in point animation to the out point. So it randomly comes in and it randomly comes out.
Thanks Again sir.


Return to posts index

Dan Ebberts
Re: Position Move on layer's inPoint from multiple variable specified Coordinates randomly per layer?
on Apr 9, 2018 at 10:19:14 pm

Something like this maybe:


easeTime = .5; // ease into postion over .5 second
easeAmt = 100;
if (time < (inPoint+outPoint)/2){
seedRandom(index,true);
t = time - inPoint;
}else{
seedRandom(index*1001,true);
t = outPoint - time;
}
offset = random() < .5 ? [easeAmt,0] : [0,easeAmt];
offset *= random() < .5 ? 1 : -1;
value + easeOut(t,0,easeTime,offset,[0,0]);



Dan



Return to posts index

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