
sourceRectAtTime Expression
The sourceRectAtTime expression is perfect for returning the width or height dimensions of shape and text layers. This is useful when trying to make box or line elements fit your text. Here is a quick example of how to use this expression.
Shape Layer > Path > Size expression
x=thisComp.layer(“Text”).sourceRectAtTime().width;
[x,value[1]]
###
Enjoying this tutorial? Sign up now for the Creative COW Newsletter!

Sign up for the Creative COW newsletter and get weekly updates on industry news, forum highlights, 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, a first and last name, and let us know what you’d like to see more of in the message!
Responses