FORUMS: list search recent posts

Pickwhip one layer's Y position to another's Y position, each layer with its own respective range

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tommy Dimmel
Pickwhip one layer's Y position to another's Y position, each layer with its own respective range
on Jan 21, 2015 at 1:05:14 pm

I am wanting to pickwhip the y axis of 'Layer A' with the y axis 'Layer B'. I want the 'Layer A''s Y-Axis, when adjusted between 0-100, to adjust 'Layer B''s Y-Axis to a range of 25-75 at the same time. Can someone please help?

Thank you!


Return to posts index

Dan Ebberts
Re: Pickwhip one layer's Y position to another's Y position, each layer with its own respective range
on Jan 21, 2015 at 3:02:27 pm

The expression to do that would look like this:

yA = thisComp.layer("Layer A").position[1];
yB = linear(yA,0,100,25,75);
[value[0],yB]



or, like this if you have dimensions separated:

y = thisComp.layer("Layer A").transform.yPosition;
linear(y,0,100,25,75)


Dan



Return to posts index

Tommy Dimmel
Re: Pickwhip one layer's Y position to another's Y position, each layer with its own respective range
on Jan 22, 2015 at 8:23:18 am

Dan,

Thank you so much for this! Worked perfectly and you expanded my knowledge of expressions! Really appreciate it!


Return to posts index

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