Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression On Position Layer

  • Expression On Position Layer

    Posted by Jeff Horowitz on October 30, 2014 at 4:09 pm

    I cant find an expression for this anywhere, so I’m looking for help. I think its an easy solution, but I cant find an answer anywhere, so please help.

    I NEED AN EXPRESSION, ON A POSITION LAYER, THAT TELLS THE LAYER TO ALIGN TO THE CENTER OF THE COMP…thats it.

    JAH

    Jeff Horowitz replied 11 years, 9 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    October 30, 2014 at 8:01 pm

    If the layer is not a child layer, then this should work:

    [thisComp.width,thisComp.height]/2

    Dan

  • Jeff Horowitz

    October 30, 2014 at 8:26 pm

    I realized that my anchor point on the image layer was not centered, so even though the expression works, the layer is still not centered. I can fix this manually myself but is there another expression I can use so that the anchor and the position are both centered in the comp??

    JAH

  • Dan Ebberts

    October 30, 2014 at 9:27 pm

    Try this:

    [thisComp.width,thisComp.height]/2 + anchorPoint – [width,height]/2

    Dan

  • Jeff Horowitz

    October 30, 2014 at 10:14 pm

    No it didnt work, but thats okay…not an issue for me anymore. Thanks anyway

    JAH

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