This site aims to be the ultimate resource for Adobe Illustrator(c) scripting. Here you will find regularly updated collection of scripts for all your creative needs.
If you find yourself doing the same task again and again, or you have an idea how to optimise your  workflow – get in touch, and we will provide solution.

Distribute stacked objects


This script distributes and centers all selected objects.

The position of each object is determined by its stacking order. To adjust the position of an object in the layout, manually move the stacking order of objects. The top object (in the layer) is always placed first. When the script is executed, a prompt appears, and user can set custom padding value for grid spacing. Then the script will automatically distribute the objects and center them on the page. This script is designed to create artboards and facilitate visualization from a stack of imported artwork, but this should work for anything.