Skip to main content
Inspiring
February 8, 2022
Question

Extendscript adjust text size to fit in layer, how to get actual text width?

  • February 8, 2022
  • 1 reply
  • 1047 views

I need somehow to adjust text (or scale text proportionally) size to fit in composition.

How i can get text actual width?

This topic has been closed for replies.

1 reply

Mathias Moehl
Community Expert
February 8, 2022

SourceRectAtTime gives you the size of the text in layer space. And with sourcePointToComp you can convert the corners of the source rect from layer space to comp space to measure the size it has inside the composition.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Inspiring
February 8, 2022

Thank you, i'm able to get points, how i can update text object now? (scale)