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.