How To Create An Autoscale Text Box In After Effects



Check out our best After Effects downloads: https://motionarray.com/browse?sort_by=kick-ass&categories=after-effects-templates,after-effects-presets&page=1
And check out our full article on this effect: /https://motionarray.com/learn/after-effects/autoscale-text-after-effects/

In this tutorial we explore how to create an auto-scaling text box effect in After Effects. This effect will essentially create a text box that moves and changes size and shape to fit the contents of the text within. It’s an impressive looking effect that surprisingly doesn’t take that much hard work to achieve. The few pieces of hard work we’ve actually done for you, providing information for scripts and even the project files below. We hope you like this tutorial and find it helpful for you future projects!

Download the project file here and work alongside Owen!
http://bit.ly/2LVnw1e

You can find the code that we’ve used in the video to be able to copy and paste here:

Section 1
w=s.sourceRectAtTime().width;
h=s.sourceRectAtTime().height;

[w,h]

So your full expression should look like this:

s=thisComp.layer(“My Text Layer”);
w=s.sourceRectAtTime().width;
h=s.sourceRectAtTime().height;

[w,h]

Section 2

s=thisComp.layer(“My Text Layer”);
w=s.sourceRectAtTime().width/2;
h=s.sourceRectAtTime().height/2;
l=s.sourceRectAtTime().left;
t=s.sourceRectAtTime().top;

[w+l,h+t]

To be able to read these pieces of code in context you can visit our original post of this video on our website:
https://motionarray.com/tutorials/after-effects-tutorials/how-to/how-to-create-an-autoscale-text-box-in-after-effects

You can also check us out at: https://motionarray.com/

Facebook: https://www.facebook.com/motionarray/
Twitter: https://twitter.com/MotionArray
Instagram: https://www.instagram.com/motionarray/

Here on YouTube, check out the following:
After Effects Tutorials:
https://www.youtube.com/playlist?list=PLuz8v_brMXJayZXnzHZp20iYOHIVXG5uI

Premiere Pro Tutorials:
https://www.youtube.com/playlist?list=PLuz8v_brMXJaOnZmyppjsx5RfSkVbbfT7

Filmmaking Tutorials:
https://www.youtube.com/playlist?list=PLuz8v_brMXJYd38UDIHApKNzEXoexnrx0

Check out our After Effects Complete Basics Course:
https://www.youtube.com/playlist?list=PLuz8v_brMXJYOqE_1m3nEKD9JAhNglHKF

As well as our Premiere Pro Basics Course:
https://www.youtube.com/playlist?list=PLuz8v_brMXJbIAa0YtBIU75tQB8-zm3s4

Duration: 00:04:20

source