Activity › Forums › Adobe After Effects Expressions › how to pick scale and position
-
how to pick scale and position
Posted by Dmitry Yurin on December 17, 2015 at 12:18 pmhi.
the scale of the numbers should increase when I move the up position of arrow, and vice versa
how i can do this?
https://i.imgur.com/uGtRnKc.pngDmitry Yurin replied 10 years, 5 months ago 2 Members · 4 Replies -
4 Replies
-
Miguel De mendoza
December 17, 2015 at 1:16 pmTry this:
max = thisComp.height;
magnitude = 0.1;
masterPos = transform.position[1]; //Or the position you want to follow
posY = (masterPos - max)* magnitude ;[posY, posY]
-
Dmitry Yurin
December 17, 2015 at 1:35 pmdoes not work (
i need expresson for the scale of layer “Number”
something like this:if position of the “arrow” > ( 500, 500 )
scale of the layer “Number” = 100
else
scale of the layer “Number” = 50https://i.imgur.com/uGtRnKc.png
-
Miguel De mendoza
December 17, 2015 at 2:00 pmWrite this on the number scale then:
arrowPos = thisComp.layer("arrow").transform.position[1];
if (arrowPos > 500) {
[100, 100];
} else {
[50, 50];
} -
Dmitry Yurin
December 17, 2015 at 2:09 pmYes, but how i can get smooth animation. Now this is step animation
Reply to this Discussion! Login or Sign Up