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

script to make stroke color same as fill color

New Here ,
Oct 15, 2010 Oct 15, 2010

Copy link to clipboard

Copied

looking at hundreds of different colored items in multiple documents

any script out there that does this?

TOPICS
Scripting

Views

2.9K

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 Expert ,
Oct 15, 2010 Oct 15, 2010

Copy link to clipboard

Copied

Something like this? (A Javascript, so save as "MakeStrokeSameAsFill.jsx")

if (app.documents.length && app.selection.length)

{

     for (var a=0; a<app.selection.length; a++)

     {

          try {

               app.selection.strokeColor = app.selection.fillColor;

          } catch (e)

          {

               // ignoring all possible errors ...

          }

     }

}

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
New Here ,
Oct 10, 2017 Oct 10, 2017

Copy link to clipboard

Copied

I tried this and it only works for the one selected item, not a selection of multiple items.

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
New Here ,
Oct 10, 2017 Oct 10, 2017

Copy link to clipboard

Copied

LATEST

Ok, I got this to work. Items need to have an existing stroke, before it works. So I selected everything, gave it a black stroke and then ran the script from ExtendScript console.

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