Free Scripts for Adobe Illustrator

A collection of free scripts for Adobe Illustrator, focused on randomization. These scripts are standalone, dialed-back versions of Randomill’s individual functions. The GitHub repository containing all of these scripts is also available for contributions, bug reports, feature requests, etc.

To download each script, click the download button and then save the page. The page will save to your computer as a .js file. To run the script in Adobe Illustrator, click on File > Scripts > Other Script… in the menu, and open the .js file.

Random Color Free Illustrator Script

Dial in HSL/RGB/CMYK ranges independently, and then randomize from those ranges across a set of objects. See tutorial.

In HSL mode, set ranges for Hue, Saturation, and Lightness values independently. For each object, colors will be generated by picking a random value for each color parameter within the specified range. The same applies to the RGB and CMYK modes.

Colors can be applied to fills or strokes, and grouped objects can optionally be recursed into so that each object in a group will have its color randomized.

Random Swatch Free Illustrator Script

Select objects in your illustrator document, then select swatches in your swatches panel that should be in the randomization pool. Click ‘Apply’ and each objects in the selection will have a swatch randomly chosen from the selected swatches, and applied to that object.

Since swatches have to be selected after objects, all selected objects will have their colors changed before running the script. It’s an annoying limitation of selecting swatches in Illustrator’s swatches panel.

Swatches can be applied to fills or strokes, and grouped objects can optionally be recursed into so that each object in a group will have a random swatch applied to it.

Random Layer Order Free Illustrator Script

Randomize the layer order of all selected objects in Adobe Illustrator. See tutorial.

Optionally respect parent layers so that objects don’t move between parent layers.

Objects are only randomized relative to other selected objects. If Respect Parent Layers is enabled and only a single object is selected on a given parent layer, that object will be unaffected.

Random Opacity Free Illustrator Script

Randomize the opacity of all selected objects in Adobe Illustrator.

Choose a minimum opacity, a maximum opacity, and a step size.

Optionally randomize within groups so that each object within a group has a random opacity applied to it. If this is unchecked, the entire group will have a random, but consistent opacity applied to it.

Random Position Free Illustrator Script

Randomize the position of all selected objects in Adobe Illustrator.

This script applies a relative position offset to each selected object. Users can specify a minimum/maximum X,Y offset range (in points).

Groups can be treated as a single object, or grouped objects can be treated independently.

The same goes for compound paths.

Random Rotation Free Illustrator Script

Randomize the rotation of all selected objects in Adobe Illustrator.

This script applies a relative rotation offset to each selected object. Users can specify a minimum/maximum offset range (in degrees).

Groups can be treated as a single object, or grouped objects can be treated independently.

Subpaths within compound paths can also be treated independently.

Random Scale Free Illustrator Script

Randomly scale all selected objects in Adobe Illustrator.

Scale can be modified independently across X,Y axes, or objects can have their aspect ratios preserved.

Groups and compound paths can be treated as single objects, or the script can recurse into them and apply random values to sub-objects.

Random Selection Free Illustrator Script

Randomly select a percentage or specific number of objects from a larger selection in Adobe Illustrator.