ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Adjust lower third box with text width using expressions

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sean Platt
Adjust lower third box with text width using expressions
on Mar 14, 2019 at 4:24:01 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]


Return to posts index

Scott McGee
Re: Adjust lower third box with text width using expressions
on Mar 14, 2019 at 4:33:25 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]


Return to posts index

Sean Platt
Re: Adjust lower third box with text width using expressions
on Mar 14, 2019 at 5:11:40 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!


Return to posts index


Scott McGee
Re: Adjust lower third box with text width using expressions
on Mar 15, 2019 at 9:54:21 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]