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

script to make stroke color same as fill color

New Here ,
Oct 15, 2010 Oct 15, 2010

looking at hundreds of different colored items in multiple documents

any script out there that does this?

TOPICS
Scripting
3.0K
Translate
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

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

          }

     }

}

Translate
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

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

Translate
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
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.

Translate
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