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

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

Participant ,
Feb 08, 2022 Feb 08, 2022

Copy link to clipboard

Copied

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

Views

709

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Dmitriy5FD0_3-1644332909914.png

 

 

 

 

Votes

Translate

Translate

Report

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