Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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

  • jesse richards

    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

  • 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!

Viewing 1 - 3 of 3 posts

Log in to reply.

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