Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Offsetting parented layers X and Y values calculation

  • Offsetting parented layers X and Y values calculation

    Posted by Katya Austin on September 17, 2013 at 10:48 pm

    Hello,

    When parenting multiple layers to a null, for example, and then offsetting their positions from the parent null, i use this expression:

    X = thisComp.layer("Parent Null").transform.position[0];
    Y = thisComp.layer("Parent Null").transform.position[1];
    [X -/+ 0, Y -/+ 0]

    and then spend bunch of time playing ‘guess the right X and Y values’ game, until parented layers are where i want them to be.

    My question is, is there a more efficient way of calculating offset values for X and Y, other than guessing how many pixels the layer is off?
    I know i could just adjust the anchor point values, but sometimes i need it to be in some specific place to be able to attach effects to it.

    thank you,
    -Katya

    Katya Austin replied 12 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    September 18, 2013 at 12:37 am

    When you parent a layer to a null, its position becomes the offset from the null. Maybe you just need to tie the x and y position values to slider controls.

    Dan

  • Katya Austin

    September 20, 2013 at 12:11 am

    I was thinking about sliders as well, but creating separate X and Y controller adds the same amount of time as guessing offset values. I was hoping for a ruler plugin (or script), like measure tool in illustrator and photoshop that would calculate X and Y offsets from original placing.

    thanks for your reply!

    -k

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