Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Auto Align a layer to end of text layer

  • Auto Align a layer to end of text layer

    Posted by Jason Richards on July 22, 2008 at 9:34 pm

    Is there a way to have a layer(shape) auto align itself to a text layer? Basically for our daily news premix we change the text daily obviously but we have to realign a small triangle shape to the edge of the text. I wish no matter what we typed the small triangle would auto align the end of the text….can this be done and does this make sense ?

    thanks for any help

    JR

    Jason Richards replied 17 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Lloyd Alvarez

    July 23, 2008 at 3:40 pm

    Unfortunately you can’t get the correct width of a text layer using expressions, but you do have a few options.. The best and easiest in my opinion is to incorporate that triangle into your font and let say you assign that triangle to the ^ key then you could write this expression in the sourcetext property of the text layer:

    value + “^”

    Alternatively you could have the text justify right (but not sure that is a option for you) and have the triangle be a simple offset for the text layers’ anchor point.

    Lastly you can get the correct width of a text layer through scripting, let me know if you need any guidance in that dept..

    -Lloyd

    https://aescripts.com

  • Jason Richards

    July 23, 2008 at 3:57 pm

    Thanks… I’ll look into your 2 options

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