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

How to do a wholesale swap of all instances of one shape to another shape?

Community Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

I have a design that uses a large amount of a single shape. I've been refining it and now I want to do a wholesale swap one of shape to another shape. I know I can do this one at a time using symbols, but I'm wondering if there is a way to have Illustrator search for all instances of a particualr shape geometry and replace them with the new shape. Maybe a script like this exists?

 

Screen Shot 2020-02-14 at 1.19.03 PM.png

TOPICS
Scripting

Views

814

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 , Feb 14, 2020 Feb 14, 2020

Yes, there are scripts (do a search fo zamena or zamena size, for example).

 

And there are other ways as well. Which one depends on the Illustrator version you are using. What version is it?

Votes

Translate

Translate
Adobe
Community Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

Yes, there are scripts (do a search fo zamena or zamena size, for example).

 

And there are other ways as well. Which one depends on the Illustrator version you are using. What version is 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 Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

I am using Illustrator 23.0.1 on Mac.

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 Expert ,
Mar 10, 2020 Mar 10, 2020

Copy link to clipboard

Copied

Zamena script works great!

 

Do you also know of a way to replace just the geometry of an object with the geometry of another object? (Leaving the fille and stroke alone)?

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 Expert ,
Mar 11, 2020 Mar 11, 2020

Copy link to clipboard

Copied

You can create a graphic style with the source object, run the zamena script to change the object, then apply the graphic style to the new object.

 

If you were so inclined, you could write a script that does all of this for you, including making a function call to the zamena script.

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 Expert ,
Mar 14, 2020 Mar 14, 2020

Copy link to clipboard

Copied

I'm not sure how a graphic style fits into this. What I'm trying to make is pixel art of sorts. I used Object Mosaic to make the tiles, then Zamena script to change all the tiles to another object. But I just want to have the Zamena change the geometry, not the colors.

 

Is this possible? If not Zamena script, then how would I accomplsh this?

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 Expert ,
Mar 14, 2020 Mar 14, 2020

Copy link to clipboard

Copied

Can you please show screenshots of what you have and what you want to get?

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 Expert ,
Mar 14, 2020 Mar 14, 2020

Copy link to clipboard

Copied

LATEST

A graphic style contains all the color/gradient/pattern information for an object.

 

If you save the graphic style first, then change the artwork to something else, when you apply the graphic style, you'll end up with the same fill/stroke/etc as you had before.

 

Fundamentally, this changes the geometry of an object without affecting its color information. 

 

Edit: consider the first of the attached images ("problem"). Am i understanding your question correctly? If so, try out the ("solution") in the second image.

 

Edit number 2: Just after i posted my last edit, it occurred to me that you might be saying "any time the script changes the geometry of a given shape, it should retain the fill/stroke of that specific shape when it changes the geometry". Does that sound closer to what you're asking for? Like in the 3rd image ("alternative problem")?

 

problemproblemsolutionsolution

alternative problemalternative problem

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 Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

You may try the built-in Global Edit feature.

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 Expert ,
Feb 14, 2020 Feb 14, 2020

Copy link to clipboard

Copied

Zamena will do exactly what I want. And I had no idea that global editing existed. I learn two new things today. Thank you so much!

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