Creating mesh item

Community Beginner ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

How to create a Mesh Item in illustrator using script?

TOPICS
Scripting

Views

74

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

Advisor , Jul 12, 2022 Jul 12, 2022

You cannot create mesh items from a script.

Likes

Translate

Translate
Adobe Community Professional , Jul 12, 2022 Jul 12, 2022

It's in the Javascript Reference, but even if it wasn't there, not everything you can do manually is available in the Scripting API. Other functions are also not available, ie access to Appearance panels among many other functions.

 

"MeshItem
A gradient mesh art item. You cannot create mesh items from a script. However, you can copy an existing
mesh item with the duplicate method, then use the one of the move methods to place the copy at the
proper location."

Likes

Translate

Translate
Advisor ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

You cannot create mesh items from a script.

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 ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

Why is it not possible to create a mesh item using a script? Any reason for that?

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
Advisor ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

The immediate answer is because the developers never wrote a function to create mesh items.  Why that was the case is anyone's guess. 

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 ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

LATEST

It's in the Javascript Reference, but even if it wasn't there, not everything you can do manually is available in the Scripting API. Other functions are also not available, ie access to Appearance panels among many other functions.

 

"MeshItem
A gradient mesh art item. You cannot create mesh items from a script. However, you can copy an existing
mesh item with the duplicate method, then use the one of the move methods to place the copy at the
proper location."

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