Custom Align
This script is intended to align objects with a given spacing. You can randomnize position and scale and choose between object center or object base, you can also align to min and max, this is especially useful for randomizing books on shelves or any similar task like populating supermarket shelves or if you have to evenly space any objects.
If your pivot are centered and you 've choosen base pivot, your objects will move from their initial positions, the opposite is also true so make sure you press "center pivot" or "base pivot" button first to be sure that all your objects share the same "type" of pivot.
the initial objects position will be kept unless you choose random position option.
Groups are treated like one object so if you need to apply the script to group members you have to open the groups and select the objects not the groupheads ( the pink dummys ).
Installation : drag and drop in the viewport, then go to customize, customize user interface, tool bar, category "SimonScripts"
Tips:You can disable "Fixed Width Text Buttons" in customize, preferences, general, ui display, it will set the custom buttons to fit the size of their text
Update 1.1: the spacing spinner is now realtime, and i remove the beep sound when "no objects are selected" error message pops
Update 1.2: code cleanup and Bug correction , Object to origin button messed up with grouped object. I also added a "keep proportion" option on randomized scale. The objects pivot are now automatically set to the chosen pivot type (center or base)
Update 1.3: a bit of code cleanup and I added a new option to randomize scale only in the chosen axis or on all axis, also fixed the undo for the spacing spinner.
Update 1.3.:Minor update, just an UI element that need to be greyed out when randomize scale was off.