Ukramedia

Login

How to Get Correct Text Layer Size in After Effects

Code

CODE FOR WIDTH:
targetLayer = thisComp.layer("Layer Name");

w = targetLayer.sourceRectAtTime().width;
s = targetLayer.transform.scale[0];
p = (s - 100)* .01;
finalSize = w + p * w;

finalSize

CODE FOR HEIGHT:
targetLayer = thisComp.layer("Layer Name");

h = targetLayer.sourceRectAtTime().height;
s = targetLayer.transform.scale[1];
p = (s - 100)* .01;
finalSize = w + p * h;

finalSize

Project File Download Form


Recommended Resourses:

July 16, 2019

We're trusted by these great organizations.

FEATURED IN & ON:

Kingsport Times News

Join us and 20,000+ Artists

Subscribe to gain access to exclusive freebies

No spam, promise!
top
© 2019 Ukramedia, LLC
X