File:Alignit.zip

Alignit script

About This Script: User talk:Gaccer Version information.

Load and run this script in Blender (ALT P to run). This script enables you to align 2 or more objects. The bounding box of objects is used. So non-square shapes will be aligned based on there bounding box

To align objects, select 2 or more objects in a 3D View. The last selected object's coordinates will be used to align the other objects.

You may align by X+/X-, Y+/Y-, Z+/Z-. The + implies the largest positive (highest) end of the object. The - implies the smallest positive or largest negative(lowest) end of the object.

Example1:

X+ X+ will align the highest end to the highest end of the last object.

Example2:

X+ X- will align the highest end to the lowest end of the last object.

Diagram: X+ to X+             X+ to X-                                               xxxxxxx  xxxxxxxxxxxxxxx               xxxxxxxxxxxxxxx x    x  x last object x               x last object x  x     x  xxxxxxxxxxxxxxx      xxxxxxxx xxxxxxxxxxxxxxx xxxxxxx                      x      x                                xxxxxxxx

To reset an object implies setting all the vertex to +-0.5 AND setScale(1,1,1) AND setEuler(0,0,0)

To set cursor implies moving the 3D cursor to one of the bounding box edges of the object. For visual clarity the cursor is positioned to the center of the chosen edge.

# based on 
 * 1) OBJECT ALIGNER/DISPLACER SCRIPT
 * 2) Version 1.0
 * 3) by RobertT
 * 4) Author E-mail: rjtiess@warwick.net
 * 5) webusers.warwick.net/~u1019306/myblenderimages/aligndisplacescript.zip