Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Adjust lower third box with text width using expressions

  • Adjust lower third box with text width using expressions

    Posted by Sean Platt on March 14, 2019 at 4:24 pm

    Hi there, I am trying to get a lower third shape layer box to adjust with the text width. But the expression I am using doesn’t seem to work correctly (see screenshots). I have tried different positions of the anchor point on the text layer and shape layer. Any suggestions? Hoping to use this in the essential graphics panel in Premiere. Thanks for your help!

    x = thisComp.layer("John Mitchell").sourceRectAtTime().width + 300;
    y = 115;
    [x, y]

    Scott Mcgee replied 7 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Scott Mcgee

    March 14, 2019 at 4:33 pm

    Have you fixed your anchor point to the left hand side.

    It looks like that might be your issue.

    I normally fix my anchor point using this

    r = sourceRectAtTime();
    [r.left,r.top + r.height/2]

  • Sean Platt

    March 14, 2019 at 5:11 pm

    That seemed to work, Scott! I don’t completely understand since my anchor points on the shape layer were center left to begin with but plugging your expression worked. Thanks so much!

  • Scott Mcgee

    March 15, 2019 at 9:54 am

    It is bizarre why you have to do it that way, it used to annoy me. But I noticed the anchor point never moved. So I did that and it fixed it. Glad it worked, hopefully they’ll fix that minor issue in an upgrade. Or we are both doing something wrong hahaha

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