Extendscript: Resize text with applied warp effect?
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"?
Explore related tutorials & articles
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...
Copy link to clipboard
Copied
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.
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

