Saturday, December 01, 2007

Blender object alignment scripts

Here is the link to the simple objects alignment scripts that I wrote.

http://www.capitolacomputing.com/blender/scripts/align_scripts.zip

Unlike the method discussed in the below link, which seemed to center the location between objects, my scripts align the objects to the last object selected:


http://wiki.blender.org/index.php/FAQ/Modelling/Mesh#How_do_I_align_objects_on_specific_axis.3F


How to install

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 "Align x" menu item is displayed under the "Scripts | Object" menu.

How to use
1. Go to the 3D View window.
2. While in Object mode, select multiple objects that you want to align in 3D View.
In selecting, please remember that objects will be aligned to the object that is selected last when the script is run.
3. Go to the Scripts Window.
4. Select "Scripts | Object | Align x " menu item to align x location. Use "Align y" or "Align z" if you want to align y or z locations.

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