Highlighted

Scripting Illustrator's Document Setup

Explorer ,
Apr 02, 2020

Copy link to clipboard

Copied

Is there a way to set values in Document Setup using JavaScript?

 

Specifically, trying to set:

• Transparency grid size

• The color values for the two transparency grid color swatches

• Resolution preset value

• Document bleed

 

I haven't been able to locate these properties in the Illustrator Scripting Guide.

Topics

Scripting

Views

481

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

Scripting Illustrator's Document Setup

Explorer ,
Apr 02, 2020

Copy link to clipboard

Copied

Is there a way to set values in Document Setup using JavaScript?

 

Specifically, trying to set:

• Transparency grid size

• The color values for the two transparency grid color swatches

• Resolution preset value

• Document bleed

 

I haven't been able to locate these properties in the Illustrator Scripting Guide.

Topics

Scripting

Views

482

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
Adobe Community Professional ,
Apr 04, 2020

Copy link to clipboard

Copied

Transparency grids use executeMenuCommand to access them from scripts. It is not document properties.
And bleeds property cannot be operated from scripts.

 

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
Reply
Loading...
Explorer ,
Apr 04, 2020

Copy link to clipboard

Copied

Hi Ten A,

 

Thank you for the reply and information! I really appreciate it.

 

The following are executeMenuCommands that mention transparency in the string:

• Adobe Transparency Palette Menu Item
• FlattenTransparency1
• ShowPathsAndTransparentArtwork
• ShowTransparentImage
• Transparency Presets
• TransparencyGrid Menu Item

 

So far I haven't been able to get any of them to change the following values in the transparency options in document setup:

• Transparency grid size

• The color values for the two transparency grid color swatches

• Resolution preset value

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
Reply
Loading...
Explorer ,
Apr 04, 2020

Copy link to clipboard

Copied

Hi Ten A,

 

I saw on another thread that you wrote a plugin for setting bleed. Does the plugin still exist?

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
Reply
Loading...
Ten A LATEST
Adobe Community Professional ,
Apr 05, 2020

Copy link to clipboard

Copied

That plugin works perfectly in ver.24. However, You need to build plugin your own.

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
Reply
Loading...
Adobe Community Professional ,
Apr 04, 2020

Copy link to clipboard

Copied

do you need to change these settings every time you run the script? or you just need one fixed set of settings you use all the time?

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
Reply
Loading...