ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Link Scale to Position Expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jayson Cabugnason
Link Scale to Position Expression
on Nov 24, 2017 at 10:51:30 am

Hi Guys,

I'm fairly new to expressions and would like to ask how to tackle an animation where there are a couple of objects lined up in X-axis. And as each object pass tru the center, they will increase in size and goes back to original size after passing the center.

I was trying the if/else expression.

Thank you in advance.


Return to posts index

Dan Ebberts
Re: Link Scale to Position Expression
on Nov 24, 2017 at 4:36:15 pm

Something like this maybe:

minVal = [100,100];
maxVal = [150,150];
scaleDist = 100;
centerX = thisComp.width/2;
d = Math.abs(position[0] - centerX);
ease(d,0,scaleDist,maxVal,minVal)



Dan



Return to posts index

Jayson Cabugnason
Re: Link Scale to Position Expression
on Nov 26, 2017 at 4:39:34 pm

Thanks Dad you are heaven sent..

I also bumped in to some old post with your solution..

Thanks for saving us always.. cheers!


Return to posts index

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