Looking for illustrator script to swap all objects with another

I have a map with small circles for over 200 cities. I need to change all of the circles into map pins. Is there a way to do this? I think it’s a script maybe.

I know how to select all objects of the same appearance and give them a new graphic style but that will only let me change the color, stroke, etc. not replace with a new shape.

Answer

Yes, this script exists, find and replace by nvkelso.

To use, make sure the pin (or object to replace with) is on top, select all to replace (including the pin) and run the script.

@joojaa also made a great point. If you make the pin a symbol, it will be very easy to make changes later on (which will apply to all of them).


If you use the centered one, it’s pretty straightforward:

enter image description here


There’s also the transform to fit one, which resizes it in order to fit it – which can potentially distort it:

If you do want them resized without being distorted, you simply need to add a circle around your pin and turn it into a clipping mask, this will keep it proportionate:

enter image description here


enter image description here

Attribution
Source : Link , Question Author : Sara , Answer Author : WELZ

Leave a Comment