Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Vertical Justification in After Effects

  • Vertical Justification in After Effects

    Posted by Christian Kiedrowski on October 14, 2021 at 8:03 pm

    There is a tool in InDesign called Vertical Justification in the “Text Options” (<b style=”font-family: inherit; font-size: inherit;”>⌘+B) where you can align your text within a bounding box to the Top, Center, or Bottom.

    I’m wondering if there is a way or expression that I could use to go about automating this same feature in After Effects? Calling on all the great expressioners out there to see if it’s possible!

    Thanks!

    Kevin Camp replied 4 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    October 14, 2021 at 8:17 pm

    Using sourceRectAtTime() makes this pretty simple.

    Vertically center:

    rect = sourceRectAtTime() ;
    y = rect.top + rect.height / 2 ;
    [ value[0], y ]

    Align bottom:

    rect = sourceRectAtTime() ;
    y = rect.top + rect.height ;
    [ value[0], y ]

    Apply either of those to the anchor point property of the text layer.

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