Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to keep layer centred even if comp size changes

  • Expression to keep layer centred even if comp size changes

    Posted by Jesse Richards on April 2, 2020 at 5:47 pm

    Hi all.

    I’m looking for an expression that can be applied to the position of a layer that keeps it centred to the composition even if the comp size and ratio change.

    I’m guessing its somehow dividing the comp height and width by 2 but not sure how you do that in an expression.

    Thanks in advance

    Jesse

    Jesse Richards replied 6 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 2, 2020 at 6:03 pm

    Try this:

    [thisComp.width,thisComp.height]/2

    Dan

  • Jesse Richards

    April 2, 2020 at 6:06 pm

    Works perfectly. Thanks so much!

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