Uploaded March 2018 | Updated December 2026, 3 hours ago
Self-resizing boxes are a time saver by eliminating the needs for extra keyframing. In this tutorial, I go over the After Effects expression sourceRectattime() which can help you create text boxes that resize with your text. It is the perfect expression when making lower thirds.
You can copy this Expression:
s=thisComp.layer("Name");
x=s.sourceRectAtTime(time-s.inPoint,true).width;
y=s.sourceRectAtTime(time-s.inPoint,true).height;
[x,y]
Replace "Text" with the name of your text layer and boom. You're done.
My personal site: keyframeacademy.com
Programs used:
Adobe Premiere CC
Adobe After Effects CC 2019
Camtasia 9
Self-resizing boxes are a time saver by eliminating the needs for extra keyframing. In this tutorial, I go over the After Effects expression sourceRectattime() which can help you create text boxes that resize with your text. It is the perfect expression when making lower thirds.
You can copy this Expression:
s=thisComp.layer("Name");
x=s.sourceRectAtTime(time-s.inPoint,true).width;
y=s.sourceRectAtTime(time-s.inPoint,true).height;
[x,y]
Replace "Text" with the name of your text layer and boom. You're done.
My personal site: keyframeacademy.com
Programs used:
Adobe Premiere CC
Adobe After Effects CC 2019
Camtasia 9










