Expand pointText (textFrameItem) using ExtendScript

Community Beginner ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

Hi everyone,

Is there a way to expand a text item on Illustrator through ExtendScript?

To give an example, consider this pointText on an Illustrator Artboard:

JohnSamuelJoy_0-1649330705761.png

If I expand it (found in the Object tab->Expand), the text "explodes" into a group, so to speak, of text letters of CompoundPaths

JohnSamuelJoy_1-1649330838272.png

I'd like to know if there is any way I can do this expanding feature through ExtendScript.

 

Regards,

John Joy

 

 

TOPICS
Scripting

Views

165

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

correct answers 2 Correct answers

Adobe Community Professional , Apr 07, 2022 Apr 07, 2022
or perhaps textRef.createOutline()

Likes

Translate

Translate
Adobe Community Professional , Apr 11, 2022 Apr 11, 2022
for pathItems you'll need app.executeMenuCommand('OffsetPath v22'); but pathItems must be selected first

Likes

Translate

Translate
Adobe Community Professional ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

Hi @John Samuel Joy

app.executeMenuCommand('outline');

will outline the selected text frame.

- Mark 

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 ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

or perhaps

 

textRef.createOutline()

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 ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

Haha! Yes. Much better. Forgot that in the heat of the moment. Doh!

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 ,
Apr 07, 2022 Apr 07, 2022

Copy link to clipboard

Copied

😆😆 it happens.

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
Community Beginner ,
Apr 11, 2022 Apr 11, 2022

Copy link to clipboard

Copied

THANKS A BUNCH!

 

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
Community Beginner ,
Apr 11, 2022 Apr 11, 2022

Copy link to clipboard

Copied

As a follow up, how do I expand a line inserted via Script (which is really a PathItem)?

I've tried to use createOutline for the same but it pops up as an error.

JohnSamuelJoy_0-1649662954647.png

 

Any wisdom here?
Thanks again!

 

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 ,
Apr 11, 2022 Apr 11, 2022

Copy link to clipboard

Copied

LATEST

for pathItems you'll need

app.executeMenuCommand('OffsetPath v22');

 

but pathItems must be selected first

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