Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Participant ,
Feb 08, 2022 Feb 08, 2022

Dmitriy5FD0_0-1644322211019.png

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

How i can get text actual width?

TOPICS
Expressions , Scripting
932
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 08, 2022 Feb 08, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 08, 2022 Feb 08, 2022
LATEST

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

Dmitriy5FD0_3-1644332909914.png

 

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines