Skip to main content
Share Your Experience: Take the 2024 Developer Survey
12 votes

Is it possible to change an object and automatically change all copies of that object across artboards in Illustrator?

You want to create whatever you want to be linked as a Symbol. Open the Symbols Panel, then select your object and drag it over to the Symbols Panel. Choose a "Graphic" unless you're doing this for ...
AndrewH's user avatar
  • 12.7k
9 votes
Accepted

Isometric bulging grid

We can approach this problem in many ways. Using a plotting app First approach is to get hold of the original data and turn the rotation to isometric, i would use this approach. The original image is ...
joojaa's user avatar
  • 58k
8 votes

Illustrator Script to Release All Clipping Masks & Groupings, Etc

You don't need a script to release all clipping mask in one step, just do: Select->Object->Clipping Mask Edit->Clear But it can also be done via script: app.executeMenuCommand("Clipping Masks ...
emax's user avatar
  • 497
8 votes
Accepted

Illustrator: I need a script that manages paths based on maximum caliper diameter

This took about an hour to write, one step at a time: Handle either one single item, or a selection of items. Loop through the single path (for a simple object) or through all component paths (for a ...
Jongware's user avatar
  • 4,238
8 votes

Looking for illustrator script to swap all objects with another

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 ...
Welz's user avatar
  • 9,999
7 votes
Accepted

How to repeat a gradient multiple times in Illustrator and Photoshop?

Use scripting! As others have answered, you should use scripting. But some of the other solutions here only use RGB, whereas mine uses colours you choose from your document. Also some solutions didn'...
MG_'s user avatar
  • 1,521
7 votes

I can't use clipping mask

You have to select more than one object. Both the path/shape that you want as clipping mask, and the object(s) you want to mask. The mask path/shape must be the top object in the layer.
H.W. Sanden's user avatar
6 votes

How to repeat a gradient multiple times in Illustrator and Photoshop?

You can achieve this with Illustrator scripting. Checking the documentation for CC15.3 in the JavaScript Reference PDF under Gradients on page 68. Create the colors: // Create the colors var ...
user9447's user avatar
  • 18.3k
5 votes

How to repeat a gradient multiple times in Illustrator and Photoshop?

Based on the Illustrator JS manual I've come up with the code below. This code does exactly what you want: Creates a gradient with two color stops: black and white Repeats it five times Applies it as ...
PieBie's user avatar
  • 4,376
5 votes

How to repeat a gradient multiple times in Illustrator and Photoshop?

This will only work if you are using the gradient as a stroke (as in your question). If you want to repeat the gradient endlessly (as opposed to a specific number of repeats) then you can skip steps 2 ...
Cai's user avatar
  • 40.6k
5 votes

Export objects to separate files in Illustrator

Yes, there is a way to do this! It is somewhat of a workaround but this is the best option I have found and I use it regularly. If you are using a version of Illustrator that has the "Asset Export" ...
Jaki Hale's user avatar
5 votes

Illustrator scripts disappearing from Actions

[Now FIXED: Illustrator CC2017 October update!] The problem has been going on forever, it's due to the need to physically-visually show the File menu so that the scripts that are installed in the ...
Silly-V's user avatar
  • 1,906
5 votes

Distribute objects optimaly

While this is indeed a undecided problem that does not mean you can not do a solver that is somewhat good, albeit not optimal. There is a nifty tool called: SVGNest, you can use it online here That ...
joojaa's user avatar
  • 58k
5 votes
Accepted

How batch rename artboards in Adobe illustrator?

This works (save as .jsx in your script folder) function artBoardName_serial() { var doc = app.activeDocument; for (var i = 0, l = doc.artboards.length; i < l; i++) { ...
GoodJobStudios's user avatar
4 votes

How to batch save data driven graphics with a script in Illustrator?

here's a sample showing how to loop thru the Datasets var idoc = app.activeDocument; var ds = idoc.dataSets; var activeds = idoc.activeDataSet; // save the current dataset for (i=0; i<ds.length; ...
Carlos Canto's user avatar
  • 1,623
4 votes

Using Paper.js with Illustrator

Paper.js is an intentional departure from Illustrator. Here's an explanation from one of the author's website: [Scriptographer] was initially developed for Illustrator 9, and kept up-to-date and ...
JohnB's user avatar
  • 20.1k
4 votes

Illustrator Script to Release All Clipping Masks & Groupings, Etc

Here you go (this is not super thoroughly tested if it has a bug let me know abd i will support you): #target illustrator // releaseEverything.jsx // // Copyright (c) 2017 Janne Ojala // // Licence:...
joojaa's user avatar
  • 58k
4 votes
Accepted

What is the difference between .jsx and .js?

The scripting engine Adobe uses is called ExtendScript which is a dialect of JavaScript, or more accurately EcmaScript. There are many dialects of JavaScript with different libraries around, and some ...
joojaa's user avatar
  • 58k
4 votes
Accepted

Illustrator scripts disappearing from Actions

Yes its a well known limitation. There is no good workaround. Adobe has refused to fix this bug for some reason. For a very long time too, read more than 5 years. Ive been told that even very high ...
joojaa's user avatar
  • 58k
4 votes

How can I get a count of the amount of colors used in an Illustrator document?

Here's where to find the current color count: I finally found out where to view the total colors used in Illustrator and wanted to share it in case someone else can use it. In Illustrator go to Edit ...
Kev's user avatar
  • 71
4 votes
Accepted

Toggle visibility for sublayers in AI

Considering that you are working with groups (and not nested layers), the below script will toggle the “hidden” attribute of groups within layers (and nested layers): // jshint -W118 // globals app /...
mhulse's user avatar
  • 546
4 votes

Illustrator: align objects by anchor point

The easiest way to do it in my opinion is illustrated below. Take your original shapes, and add those lines to it. Draw a box, centred about that line. Make sure it's wider than the original shape. ...
mrchaarlie's user avatar
4 votes

Automating filling text values in Illustrator from an external file

Yes, naturally. Nearly all (serious) applications have a programming interface. Illustrator does, as does excel. Not only can you reasonably easily make illustrator read external files. You can make ...
joojaa's user avatar
  • 58k
4 votes

Keyboard Shortcut to Change Stroke Weight?

I had to make some Actions to do it. Before starting recording, fill the path with a pattern(this is necessary just to record the action). This is important to enable the Transform objects in the ...
LeoNas's user avatar
  • 2,475
4 votes
Accepted

Script for random movement (scatter)

Here is a implementation of uniform box scatter scatter_box(activeDocument.selection, 100, 100); function scatter_box(items, xoffset, yoffset){ for(var i=0;i<items.length;i++){ var ...
joojaa's user avatar
  • 58k
4 votes

Saving many artboards as eps without the artboards' border

The point of the "Artboards" option (when exporting/save as) is to tell the doc not to use the border of the artwork, rather it should use the border of the artboard. There is a script which may work ...
Welz's user avatar
  • 9,999
4 votes
Accepted

Corner pointing arrow grid

There's a great script - Rotate Toward Point by Hiroyuki Sato. The script rotates the objects in the selection toward the center of the foreground object. Make sure to place the "selected" object (...
Welz's user avatar
  • 9,999
4 votes

Is there a way to do a find/replace on artboard names?

Design Phoenix made an awesome script, I modified the script so that you get a prompt and enter in the values right in Illustrator Script below: #target illustrator var doc = app.activeDocument; ...
Welz's user avatar
  • 9,999

Only top scored, non community-wiki answers of a minimum length are eligible