Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Automatically adapt text position based on another text

  • Automatically adapt text position based on another text

  • Alberto Rossi

    October 20, 2021 at 3:46 pm

    Hi there, hope someone can help me find the way!

    Basically I setup a couple of dynamic text layers in multiple composition where the source text refer to a main master comp. The problem is quite simple, when the first text is very long and is cropped in 2 line I can’t find a way to automatically adjust the position of the second one. I attach an image for better understanding.

    Thanks in advance

  • Chris Voelz

    October 20, 2021 at 7:55 pm

    Pin the anchor point of the second text layer to the top using sourceRectAtTime. Then using sourceRectAtTime in the position parameter you can calculate the height of the first text layer and in essence pin the second text layer to the bottom edge of the first one. There are many examples in this forum just search for sourceRectAtTime. Evan Abrams and Jake in Motion have videos on this topic as well.

Viewing 1 - 2 of 2 posts

Log in to reply.

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