Resizing text boxes in under a minute! | Learn After Effects

  Рет қаралды 135,098

Keyframe Academy

Keyframe Academy

Күн бұрын

In this tutorial we jump into after effects to learn how to make boxes that follow the size of your text is super easy to do. This technique uses the expression sourceRectattime(). This expression is super useful and can be used in many different ways!
Expression used in this video:
s=thisComp.layer("name");
x=s.sourceRectAtTime().width;
y=s.sourceRectAtTime().height;
[x,y]
Leave a like if you thought this was helpful!
Okay thanks!
Visit my website: www.keyframeac...

Пікірлер: 77
@RapidBlindfolds
@RapidBlindfolds 10 ай бұрын
why tf dont after effects just make it easier
@Erosphobic
@Erosphobic 3 ай бұрын
Literally i can do this capcut with one click😭
@Lilqueen._
@Lilqueen._ Жыл бұрын
ok, but how it works with animated text? :/
@davehedric1543
@davehedric1543 Жыл бұрын
Hey! thanks for this tutorial! but what if I want like this to be a paragraph that has blocks behind the text and spaces between them? Not a solid box around all the text, but separated lines?
@kukushkaua
@kukushkaua Жыл бұрын
Thank you. Everything works. NOTE - you need to check, in the "Paragraph" section, the alignment of the text "Left align text", otherwise it will not work correctly.
@Pieprucz
@Pieprucz 10 ай бұрын
Thank you so much!
@Juliaaaaaaaa8
@Juliaaaaaaaa8 4 ай бұрын
If you remove the position expression, it also works for center aligned text :)
@ilyasyakubov
@ilyasyakubov 4 ай бұрын
@@Juliaaaaaaaa8 ty dude!
@lukasrezende123
@lukasrezende123 4 ай бұрын
@@Juliaaaaaaaa8 tks!!
@PrimeYT10
@PrimeYT10 4 ай бұрын
@@Juliaaaaaaaa8 holy shit ur a genuis
@maikamcnairy9545
@maikamcnairy9545 10 ай бұрын
If you hold control while moving the text layer you can make it snap perfectly on top of the shape layer
@shriefallam8866
@shriefallam8866 Жыл бұрын
Thanks a lot, with some tweaking, I made it aligned to the center and with rounded corners, it's beatiful!
@anurazizah90
@anurazizah90 Жыл бұрын
how to create a space between line 1, 2, and 3 like you do for each title in this video?
@FormulaWon-
@FormulaWon- Жыл бұрын
Note: "/2" needs to be applied to the rectangle POSITION 🤟
@bedyne
@bedyne Жыл бұрын
Hi, I'd like to do the same text animation with automatic text boxes like in the video, did you do this with expressions?
@lichtfalter7583
@lichtfalter7583 Жыл бұрын
he did. watch the video?
@nicholasspiers8620
@nicholasspiers8620 2 жыл бұрын
didn't work for me
@darkmxk
@darkmxk 10 ай бұрын
It doesn't work correctly...
@BSFord
@BSFord 15 күн бұрын
This is great--how do you get the boxes to animate and resize if adding a typewriter effect?
@dualgam
@dualgam 8 ай бұрын
UPDATE: i found a solution :) The vide is very handy! But there is one thing that I dont know what to do with. Everything works as you've explained in the video, but when I change the text, centered by paragraph, the box starts to appear beyond on the left of the text. I know I just can move it manually, but is there a solution for it? Thank you in advance for any response!
@ashinambrose
@ashinambrose 5 ай бұрын
What's the solution?
@sevdacakir
@sevdacakir 6 ай бұрын
I stay at 51 seconds. What could be the reason why the rectangle is shifting to the left?
@CrabappleKing
@CrabappleKing Жыл бұрын
Way too fast. Can barely tell what is happening. What does 'add padding to the stroke' mean?
@Max70022
@Max70022 4 жыл бұрын
That's great but unfortunately doesn't work with the typewriter effect. Any suggestions? Thanks
@TheKeyframeAcademy
@TheKeyframeAcademy 4 жыл бұрын
Use scale text modifier, set scale to 0. Make sure you've added /2 to the end of the expression on your shape path position. to keep it align with the text, and make sure the paragraph on your text layer is set to left aligned.
@Max70022
@Max70022 4 жыл бұрын
@@TheKeyframeAcademy thank you
@brandonh552
@brandonh552 4 жыл бұрын
@@TheKeyframeAcademy Could you elaborate on this?
@TheKeyframeAcademy
@TheKeyframeAcademy 4 жыл бұрын
@@brandonh552 It doesn't work well with the type writer preset, so you have to go and make the typewriter effect by yourself from scratch using the scale text modifier. You also have to make sure your paragraph is in the right alignment. If you are center aligned, or right aligned, the box will not line up as it always scales from the left, so you have to have your paragraph set to left aligned. (there are ways to scale the box from the center or right, but that requires additional expressions) Hope that helps!
@brandonh552
@brandonh552 4 жыл бұрын
@@TheKeyframeAcademy Thanks so much for getting back to me so quickly. This may be a stupid question, but how do I access the scale text modifier?
@eldonmati
@eldonmati 3 ай бұрын
For some reason if I move the layers involved in the timeline the effect won't work anymore what's up with that?
@eldonmati
@eldonmati 3 ай бұрын
Solved it! I just had to add this variable layerStart = thisLayer.startTime; and change the x variable into this x = s.sourceRectAtTime(time - layerStart).width;
@khushiverma7732
@khushiverma7732 5 ай бұрын
hey can anyone tell me, how to animate after? like how to animate text now
@emmanuelebole325
@emmanuelebole325 2 жыл бұрын
I like this tutorial. 👏
@BrendonMarkering
@BrendonMarkering 4 жыл бұрын
Hey! I really want to know how did you make this explanation text inside the video? It looks similar to this new one you created but is much much better and professional with animation and text in two lines. Can you make a video of how you make it?
@TheKeyframeAcademy
@TheKeyframeAcademy 4 жыл бұрын
I think the only difference is that the box has a gradient fill instead of a color fill?
@chris.literarische.reisen
@chris.literarische.reisen 3 ай бұрын
Works very well. Thank you for the fast tutorial.
@jasonk9770
@jasonk9770 2 жыл бұрын
I would be eternally (well, for a long time) grateful if someone would post a tutorial on how to do this with two layers of text and one text box so that it could be saved as a .mogrt for Premiere. I can't figure it out.
@TheKeyframeAcademy
@TheKeyframeAcademy 2 жыл бұрын
So two lines of text, but one box surrounding the text?
@antianime-pfp3291
@antianime-pfp3291 Жыл бұрын
it worked, but I don't want to type the expression everytime. Is there a better way?
@GuidoGautsch
@GuidoGautsch Жыл бұрын
Copy and paste?
@voltycclipz8384
@voltycclipz8384 Жыл бұрын
how you do the text at the beginning part where it slides and appears
@gregv2821
@gregv2821 3 ай бұрын
Short and sweet. Subscribed.
@seggamsuman
@seggamsuman Жыл бұрын
Sorry, its not working
@jeremymather9689
@jeremymather9689 Жыл бұрын
I feel like I'm missing a key step - this kinda works, but whenever I start changing my text, the corresponding shape moves to another area of the screen. It's re-sizing to the text I type in, but the shape itself isn't remaining in the same position. I've tried playing with anchor points but that doesn't seem to be the issue. Is there anything i can add to the expression to force the shape to always be aligned with the text, regardless of the length, etc? Specifically, i want the text and shape to be "growing" from left so the left side always is fixed and any changes to the length extend out to the right. Currently, my text is left justified, and shape underneath appears aligned until i start changing the text, then the shape moves and they're no longer aligned.
@TheKeyframeAcademy
@TheKeyframeAcademy Жыл бұрын
Is your text center aligned?
@jeremymather9689
@jeremymather9689 Жыл бұрын
​@@TheKeyframeAcademy TBH I got it working, not quite sure what was happening but I chalk it up to not paying enough attention ha. Thanks for the response!
@psychod74
@psychod74 3 жыл бұрын
Thanks very useful ! i combine your expression with an other line expression and it's dope :)
@TheKeyframeAcademy
@TheKeyframeAcademy 3 жыл бұрын
Perfect!
@osamahislam
@osamahislam 10 ай бұрын
all tutorials should be that compact
@JayJacks0n
@JayJacks0n 2 жыл бұрын
Not work
@TheKeyframeAcademy
@TheKeyframeAcademy 2 жыл бұрын
can you elaborate?
@Wesleydssantos
@Wesleydssantos Жыл бұрын
Thank you so much!
@bookssummaries2023-mp3yy
@bookssummaries2023-mp3yy Жыл бұрын
thank you great video.
@TheKeyframeAcademy
@TheKeyframeAcademy Жыл бұрын
You are welcome!
@eljuanhector
@eljuanhector Жыл бұрын
ok, thanks. But, please, how it works with animated text ? for example.. the animator scale, position, typewritter, etc? Thank you
@maikamcnairy9545
@maikamcnairy9545 10 ай бұрын
precomp the text with the rectangle then apply the animation to the precomp
@rheamalik8587
@rheamalik8587 Ай бұрын
@@maikamcnairy9545 I tried this but it didn't work
@CmdrTigerKing
@CmdrTigerKing 3 жыл бұрын
I dont get it.. why not just use scale
@TheKeyframeAcademy
@TheKeyframeAcademy 3 жыл бұрын
The box dynamically resizes according to the size of your text layer. It cuts out the process of having to manually scale up or scale down the box to fit your text. And when you're working on a project with a lot of text, that saves you a bunch of time.
@FLUQMAN
@FLUQMAN 3 жыл бұрын
@@TheKeyframeAcademy true. Especially working with subtitles
@meelhouda2928
@meelhouda2928 4 жыл бұрын
thank youuuuuuu
@Pro100tv9
@Pro100tv9 Жыл бұрын
This is a great tutorial! Thank you!
@bayetaeshropshire3454
@bayetaeshropshire3454 Жыл бұрын
After putting /2 on the rectangle shape it's not aligned with the text
@gsi-news
@gsi-news 3 ай бұрын
see full video and then paste the description text in size column !!
@yurizafurizaki5574
@yurizafurizaki5574 2 жыл бұрын
android apps can do better than this i swear
@TheKeyframeAcademy
@TheKeyframeAcademy 2 жыл бұрын
Cool!
@Make.Mooove
@Make.Mooove Жыл бұрын
The worst lesson I've ever seen
(UPDATED) Dynamically auto-scale text to fit in a box using expressions in After Effects
10:55
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 59 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 13 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН
How to create responsive textbox with left-aligned text
2:46
David Lindgren
Рет қаралды 25 М.
I Left After Effects For This
6:54
Michael Sturgill
Рет қаралды 88 М.
Self Resizing Shapes to Text | After Effects Pro Tutorial
5:57
Maxwell Ridgeway
Рет қаралды 65 М.
How to Highlight Text in After Effects | Highlighter Effect Tutorial
3:28
Smertimba Graphics
Рет қаралды 22 М.
Auto Adjust Shape Layer Size Based on Text in After Effects
6:42
Advanced Shape Layer Animation techniques in After Effects
11:26
Keyframe Academy
Рет қаралды 137 М.
Animate a Block Quote Template - Adobe After Effects tutorial
13:14
Easy Text Box - Q&A | sourceRectAtTime Expression (2/2)
5:46
Mograph Mindset
Рет қаралды 12 М.
Box Text Animation - Adobe After Effects Tutorial
8:58
Brooker Films
Рет қаралды 41 М.