Using Expressions to stop and start movement of solid layers
i have 2 solid layers ( red square , blue square). position of red square [129,239] , blue square right of red square position [301, 240]. blue square move right 2 seconds, 1 second after start timeline. when blue square stops moving trigger red square move right 2 seconds. perform using expressions code without creating keyframes on timeline , i'm having trouble. please help!
thanks
you didn't how far want solids move in 2 seconds example assumes 100 pixels right.
red position:
dist = 100;
startpos = [129,239];
linear(time,3,5,startpos,startpos+[dist,0])
blue postion:
dist = 100;
startpos = [301,240];
linear(time,1,3,startpos,startpos+[dist,0])
dan
More discussions in After Effects Expressions
adobe
Comments
Post a Comment