13 votes
Accepted

How to set keyboard shortcut to run script in Illustrator

3rd party solutions Automator ( Mac - Native app ) Recently made a video about this. Create a new Service At the top: Service receives [no input] in [Adove Illustrator CC 2015.app] If you don't ...
Joonas's user avatar
  • 15.4k
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
  • 13.1k
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
  • 57.6k
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

How to quickly change multiple colors in the same text area?

Use "Recolor Artwork" With the text area selected, click on the "Recolor Artwork" button (or go to Edit → Edit Colors → Reclor Artwork): Under "Current Colors" is a list of all the colors present in ...
Cai's user avatar
  • 40.4k
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,198
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,959
7 votes
Accepted

How to make random dots in different sizes and spaces between the dots in Illustrator?

Colliderscribe is a great option. Another method of doing it is through the "transform each" feature. Make several copies of the object you want to create a background of. Select them all. Select ...
spiral's user avatar
  • 7,279
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,501
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

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
Accepted

Script to automatically snap all points to grid in Adobe Illustrator?

Here you go, make sure the paths that you want to snap are selected: // jooSnapToDocumentGrid.jsx #target illustrator main(); function main(){ var grid = getDocumentGrid(); ...
joojaa's user avatar
  • 57.6k
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.4k
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,367
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,896
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
  • 57.6k
4 votes

Illustrator scripting: place image file if it has same name of illustrator file

Your dirImages path has one extra backslash. Should probably be: C:\FolderWithImages? I tend to just throw alerts in places to figure out where things are going wrong. You might want to try sticking ...
Joonas's user avatar
  • 15.4k
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
  • 57.6k
4 votes

How to make random dots in different sizes and spaces between the dots in Illustrator?

There is a plugin called ColliderScribe of Astute Graphics which is the direct answer of your question. Its a paid plugin but you can download its trial version which is for 14-15 days and use it. you ...
Rishab's user avatar
  • 1,754
4 votes

Script to add numbers to end of AI layer names?

I didn't want to do this, cause this can lead to a path of: "...and also, I'd like to only rename the selected layers... oh and...", but here's the same script edited to keep the layer names. Note ...
Joonas's user avatar
  • 15.4k
4 votes
Accepted

Illustrator Scripting - Preference Strings - How to obtain?

The functions are documented here. Keys are not documented, but hinted (its not possible to document them all as they are not all owned by Adobe). The preferences have to live somewhere and you can ...
joojaa's user avatar
  • 57.6k
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
  • 20k
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
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
  • 57.6k
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
  • 57.6k
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

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