ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Trouble with text margins and shape lining up. Using the sourceRectAtTime()

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Josh Zimmerman
Trouble with text margins and shape lining up. Using the sourceRectAtTime()
on Jul 31, 2017 at 5:52:18 pm
Last Edited By Josh Zimmerman on Jul 31, 2017 at 8:35:00 pm

I am making a lower third template and can't get this expression to work right.

I have the shape layer I want to size(red square) to the text layer. The problem is when you add ascender letters(i.e. "y"). The shape layer sizes from the center and the text box just adjusts down. This makes an offset to where the red box's position is and it doesn't line up correctly.

I have adjusted the anchor point and still changes nothing...

Any thoughts?

AE file HERE: 11551_wsf2017lowerthirds1.aep.zip

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

[x,y]


Return to posts index

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