Saturday, December 08, 2007

Blender scripts to evenly space objects

Here is the is the link to Blender scripts to evenly space Blender objects:

Download ZIP

In other words, the distance between two objects will be set to the same, and this distance will be calculated by evenly dividing the distance between the object which has the largest value for the axis and another object which has the smallest value for the axis.

How to install
Prerequisite: Please make sure that you have Blender 2.44 or above installed on your computer.

1. Unzip and copy these three scripts to "./blender/scripts" directory under your Blender installation.
For example, on MacOS, if you install Blender under /Application, the directory may be:
/Applications/blender-2.44-OSX-10.3-py2.3-powerpc/blender.app/Contents/MacOS/.blender/scripts

If you are using MS Windows, you may need to download the zipped version of Blender that contains ".blender/script" folder instead of using the installer to install Blender.

2. Display "Scripts Window" by selecting "Scripts Window" in the "Window type" icon at the top left of one of your windows.

3. In Scripts Window, Select "scripts | Update Menus" menu item.
This registers the script under the "Scripts | Object" menu.

4. Verify that "Evenly Space x" menu item is displayed under the "Scripts | Object" menu.

How to use
Prerequisite : Save your work before running the script!

1. Go to the 3D View window.
2. While in Object mode, select multiple objects that you want to evenly space in 3D View. You have to select three or more objects since you have to have a set of two distances to adjust.
For example, if you select only two objects, there is only one distance, and the script will exit as there is nothing to do.
The order that you select objects does not matter.
3. Go to the Scripts Window.
4. Select "Scripts | Object | Evenly Space x " menu item to evenly space along the x axis. location. Use "Evenly Space y" or "Evenly Space z" for y or z axes.

If you have questions, please email me at hideyuki _at_ gmail.com