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

Explorer ,
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

116

Likes

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
Adobe Community Professional ,
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.

Likes

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
Explorer ,
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

 

 

 

 

Likes

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