Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Second text layer Y position to move when first layer’s characters run into two lines

  • Second text layer Y position to move when first layer’s characters run into two lines

    Posted by Henriette Tronson on October 22, 2018 at 1:16 pm

    Hi there, I would appreciate if anyone can help me.
    I’m setting up a template – where if the title layer’s text characters are more than can fit into one line (let’s say 10 characters), then other text layers’ Y positions need to move down, so that I keep the same gap between the text layers in Y space, regardless whether the title text layer is one or two lines.

    Thanks!

    Henriette Tronson replied 7 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    October 23, 2018 at 8:43 am

    This scenario has been covered many a time in this forum. The keyword is sourceRectAtTime(), which returns the dimensions of the text box that you can then use to offset the second text layer.

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Henriette Tronson

    October 24, 2018 at 11:04 am

    Thank you so much Kalleheikki. I searched for the keyword. I’m completely new to expressions though, so probably due to my inexperience I’m not finding what I’m looking for. I would really appreciate it if you could point me to a specific thread for this? Apologies for the spoon feeding request!

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