Extendscript: Resize text with applied warp effect?

Explorer ,
May 05, 2021 May 05, 2021

Copy link to clipboard

Copied

I've found out that text with a warp effect applied (such as an arc effect to make the text bend) will not resize along with other types of objects when you use something like:

selected[0].resize(150, 150, true, true, true, true, 150, undefined)

This occurs when the text is set to "edit contents" mode instead of "edit envelope" mode. You can see these two buttons in the top left of the UI when the warped text object is selected. Clicking on "edit envelope" to switch the edit mode and then doing the resize line again shows that the warped text resizes this time.

 

Is there a workaround to get warped text to resize correctly when its mode is set to "edit contents"?

TOPICS
Bug, Scripting

Views

381

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 ,
May 06, 2021 May 06, 2021

Copy link to clipboard

Copied

can you share an example file? I tried to recreate what you were talking about and I have no problems scaling it with the resize function and the same parameters you put in...

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 ,
May 06, 2021 May 06, 2021

Copy link to clipboard

Copied

LATEST

Here you go: https://drive.google.com/file/d/1BfFHTphuCB6_E5BsfdZOEIT9ON3ZXlU_/view?usp=sharing

I would directly attach the .ai file here but I keep getting an error doing so.

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
Enthusiast ,
May 06, 2021 May 06, 2021

Copy link to clipboard

Copied

Bonjour,

Effectivement, vérifié sur CS6, je ne vois pas de parade,

Sauf avertir l'utilisateur de la présence d'une enveloppe dans la sélection

if (selection[0].typeName = "MeshItem") alert("MeshItem")

René

Utiliser le raccourci

MAJ+CTRL+P

 

 

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