Auto Resize Shape in After Effects tutorial by Andy Ford

Auto Resize Shape Layer in After Effects

Add a shape layer background that resizes automatically when you change the text!

First, we start with a text layer. In this example, we’ll simulate a lower third, so we can apply Lock Anchor Point and set it to middle left.

Next, we’ll create a new shape layer. We’ll make a rectangle and fill it with a color of our choosing. Then, we’ll bring it down by our text layer and apply Lock Anchor Point in similar fashion as before.

In order to get this shape layer to size properly if we change the text of our lower third, we need an expression. We’ll create three variables. The first one I’ll call size, and this is set to the text layer. We can use the pickwhip.

Then, we create a variable for width. We’ll call our variable size and then add dot sourceRectAtTime().width. This will return the width of the text layer. Likewise, we’ll create a variable for height to read the height.

Finally, we’ll return the width and height in an array. This will allow the shape layer to adjust to the text layer.

size=thisComp.layer(“Text”);
width=size.sourceRectAtTime().width;
height=size.sourceRectAtTime().height;
[width,height];

Some contents or functionalities here are not available due to your cookie preferences!

This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.


Throw Expression in Adobe After Effects
The “Throw” expression is a time-saver in After Effects. It allows you …
After Effects Tutorial – Text Blur Reveal
Here’s a way to do a quick blur reveal for your text …

Enjoying this tutorial? Sign up for the Creative COW Newsletter!

Sign up for the Creative COW newsletter and get weekly updates on industry news, forum highlights, jobs, inspirational tutorials, tips, burning questions, and more! Receive bulletins from the largest, longest-running community dedicated to supporting professionals working in film, video, and audio.

Enter your email address, and your first and last name below!

Sign up:

* indicates required

Responses

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy