• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Set fillcolor of pathItem to Registration with javascript

Community Beginner ,
Oct 04, 2017 Oct 04, 2017

Copy link to clipboard

Copied

Is it possible to set the fillcolor of a pathItem to registration in some way?

Would appreciate an answer!

//Anders

TOPICS
Scripting

Views

638

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 1 Correct answer

Community Expert , Oct 04, 2017 Oct 04, 2017

You can access registration swatch like below.

var colour =app.activeDocument.swatches["[resistration]"].color;

app.activeDocument.pathItems[0].fillColor = colour;

However, I don't test it.

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 04, 2017 Oct 04, 2017

Copy link to clipboard

Copied

You can access registration swatch like below.

var colour =app.activeDocument.swatches["[resistration]"].color;

app.activeDocument.pathItems[0].fillColor = colour;

However, I don't test it.

Votes

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 ,
Oct 04, 2017 Oct 04, 2017

Copy link to clipboard

Copied

LATEST

Thank you Ten A, it worked!

Votes

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