Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Pickwhip one layer’s Y position to another’s Y position, each layer with its own respective range

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

    Posted by Tommy Dimmel on January 21, 2015 at 1:05 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!

    Tommy Dimmel replied 11 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 21, 2015 at 3:02 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

  • Tommy Dimmel

    January 22, 2015 at 8:23 am

    Dan,

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy