Skip to main content
Participant
May 15, 2025
Answered

GREP Styles: Find/Replace Colour and Stroke Widths in Illustrator

  • May 15, 2025
  • 2 replies
  • 405 views

Hello Adobe Community,

In my experience, find/replace (GREP) in inDeisgn is a great way to save time when formating text unifromally  in large documents.

I am unsure if this is possible, but I am aware that find/replace (GREP) can be conducted in Illustrator, but can I apply something similar to vector objects?

For example: A company needs to update their old illustrations to their new internal design styling. These assets are not linked to an asset library. It is projected that hundreds of assets will need adjusting, specifically, these assets will need the stroke of images adjusted from 0.50 pt to 1 pt and the colour of the stroke needs to be changed to adhere to their new black. 

I know this is a long shot, but any guidance would be appreciated.

Thank you!

Correct answer Tina_Irvine

Hi @megan_0350,

There is an option to select the same stroke weight. Once you've selected the same stroke weight, while selected, you can then change the colour to the new black.

2 replies

Sergey Osokin
Inspiring
May 16, 2025

With ExtendScript, we can find paths in a document with a stroke and adjust their thickness. You can specify the conditions for finding and replacing thicknesses using the algorithm. The same applies to color. These tasks are quite simple for scripts, so modern AI assistants can write error-free working code. You have described a general task, and I can confirm that it can be solved by scripts. You can also automate batch processing so that the scripts open all the files in a folder, change the strokes and colors, and save them.

 

You may be able to get help here if you provide more details about the kind of help you want from the community.

Tina_Irvine
Community Expert
Tina_IrvineCommunity ExpertCorrect answer
Community Expert
May 15, 2025

Hi @megan_0350,

There is an option to select the same stroke weight. Once you've selected the same stroke weight, while selected, you can then change the colour to the new black.

Participant
May 16, 2025

Hey Tina,

Thanks for the reply! 

I was unable to edit my post, but I am aware of the "Same" functionality. 

I was hoping to find a GREP solution to speed up the process, as there would be thousands of assets to edit.