ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

My text box is not getting along with my expression.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Josh Zimmerman
My text box is not getting along with my expression.
on Aug 1, 2017 at 4:09:00 pm

I have it all set up but what can I do to offset the letter ascenders making the red box jump?

Any thoughts?





AE file here: 11560_wsf2017lowerthirds1.aep.zip

x=20
y=thisComp.layer("TEXT 2").sourceRectAtTime().height+20;

[x,y]


Return to posts index

Andrei Popa
Re: My text box is not getting along with my expression.
on Aug 2, 2017 at 3:08:07 pm

Try adding this code to the anchor of the "Rectangle Path 1" anchor;y=(66.5 - content("Rectangle 1").content("Rectangle Path 1").size[1])/2;
[value[0],y]

66.5 in this expression is the size the rectangle has when your text does not contain Y character.

Andrei


Return to posts index

Josh Zimmerman
Re: My text box is not getting along with my expression.
on Aug 8, 2017 at 5:59:23 pm

This works! Thanks you for the help and a such a creative way around the problem.


Return to posts index

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