How do you right-align a text with a background in Adobe After Effects so that the background grows to the left when you add more text?
That’s what I will show you in this tutorial.
First, we have a composition with two layers. A text layer at the top (with right aligned text) and a shape layer underneath.
Now open the Shape Layer, go to Contents, Rectangle 1 and open Rectangle Path.
Here, you want to add 2 expressions.
Hold down “option” or “alt” while clicking the stopwatch next to "Size".
Copy and paste the "Size-expression" from the video description below into this text field.
(Replace the text that is already in there.)
EXPRESSION 1️⃣:
s =thisComp.layer("Example123"); x = s.sourceRectAtTime(time-s.inPoint,true).width; y = s.sourceRectAtTime(time-s.inPoint,true).height; [x,y]
Make sure to change the example text to the EXACT name of your text layer.
(Notice that this is case sensitive, so use uppercase and lowercase letters accordingly.)
Now hold down “option” or “alt” again and click the stopwatch next to “Position”. Copy and paste the “Position-expression” from the video description into this field.
EXPRESSION 2️⃣:
content("Rectangle 1").content("Rectangle Path 1").size/2
Now, go down to transform and set the rotation to 180.
and finally, adjust the shape layers position and size to the text and now when you change the length of any of the rows of text, the background will adapt to it.
But if add or remove rows, you need to reposition the background.
And to save even more time, download my 12 free motion graphic templates in the comment section below and subscribe for hundreds of time saving tutorials just like this one. Thanks for watching!
**********
EXCLUSIVE RESOURCES FOR VIDEO CREATORS:
🎞 FREE (and paid) digital products for video creators:
https://davidlindgren89.gumroad.com/
🎁 FREE browser extension for YouTube Growth:
https://www.tubebuddy.com/davidlindgr...
🎵 2 extra months of music library "Artlist" for FREE:
https://artlist.io/David-121249
🧠 Learn more about Adobe Premiere Pro:
• How to move clips with the keyboard i...
🧠 Learn more about Adobe After Effects:
• How to edit in Adobe After Effects - ...
**********
📲 CONNECT WITH ME HERE:
► / davidlindgren89
► / davidlindgren89
► / davidlindgren89
► / davidlindgren89
► / davidlindgren89
**********
DISCLAIMER: This video and description might contain affiliate links, meaning if you click any of the product links, I'll receive a small commission. This helps support the channel and allows me to continue making videos like this. Thank You for your support! 🙏
(All links are my genuine recommendations.)
#AfterEffects #aftereffectstutorial #Tutorials #HowTo
Watch video How to right align text in After Effects online without registration, duration hours minute second in high quality. This video was added by user David Lindgren 11 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 741 once and liked it 14 people.