/Align2Custom

Commands to align the 3D View to the custom orientations in Blender

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Align2Custom

Blender incorporates 3 operators to align the 3D view :

  • alignment to the global transform orientation
  • alignment to a local transform orientation
  • alignment to the camera orientation

This add-on offers 2 custom alignment features for the 3D view :

  • alignment to the 3D cursor orientation
  • alignment to a custom transform orientation

Features

Alignment to the 3D cursor orientation

First, you need to change the 3D cursor orientation by using the method of your choice.

Next, use one of the following keyboard shortcuts to align the 3D View to the 3D cursor orientation :

  • Top View : ALT + NUMPAD 8
  • Bottom View : ALT + CTRL + NUMPAD 8
  • Front View : ALT + NUMPAD 5
  • Back View : ALT + CTRL + NUMPAD 5
  • Right View : ALT + NUMPAD 6
  • Left View : ALT + CTRL + NUMPAD 6

GIF showing the workflow to align the 3D View to the cursor orientation


Those commands are also accessible in the View -> Align View -> Align View to Cursor top menu of the 3D View.


Image showing the 'Align View to Cursor' menu


3D cursor can be used to align the 3D view to an object's face by calling the snapping tool of the cursor (SHIFT + Right Mouse Button click on the face) :


GIF showing the workflow to align the 3D View to the 3D Cursor orientation snapped to a face


Note : the snapping tool of the 3D cursor does not align the cursor orientation to the face one by default. You need to configure the tool in the Keymap section of the Preferences panel as follows, and to save your modification to make it permanent :


Image showing how to define the ability of the 3D cursor to snap on object geometry


Alignment to a custom transform orientation

This method is based on the Blender feature that allows to define custom transform orientations.

To align the 3D View to a custom transform orientation, it must have been created beforehand, like in the following example (based on the normal axes of an object's face) :


GIF showing how to define a custom transform orientation


Then, you can use one of the following keyboard shortcuts to align the 3D View to its axes :

  • Top View : ALT + NUMPAD 7
  • Bottom View : ALT + CTRL + NUMPAD 7
  • Front View : ALT + NUMPAD 1
  • Back View : ALT + CTRL + NUMPAD 1
  • Right View : ALT + NUMPAD 3
  • Left View : ALT + CTRL + NUMPAD 3

Note : these commands have no effect if no Custom transform orientation is active.


GIF showing the workflow to align the 3D View to a custom transform orientation


Those commands are also accessible in the View -> Align View -> Align View to Custom top menu of the 3D View.


Image showing the 'Align View to Custom' menu


Installation

This addon can be installed in two differents ways.

Installation from Github

This method is recommended for Blender versions prior to 4.2 :

  • Download ZIP file of Align2Custom V2.1.2 from the release section
  • Open Blender, then drag and drop the ZIP file onto Blender UI to install the add-on
  • Check that the Align 2 Custom option appears in the list of add-ons (Edit -> Preferences... -> Add-ons)

Installation from Blender Extensions platform

Since 4.2 version, Blender can connect to an online platform called Blender Extensions to download and install tons of add-ons. This add-on is now available on this platform. To install it, follow these instructions :

This method is recommended for Blender 4.2 (and newer) because add-on update can be managed easily and directly from Blender UI whenever a new version of the add-on is published.

add-on preferences

If you prefer hard transitions or if you're facing problems (odd behaviors, performance, ...), the add-on installation panel provides an option to disable the smooth transition during the 3D View alignment.


GIF showing the difference between hard and smooth transition


Changelog

V2.1.2

License change from GNU GPL V2 to V3 to fulfill Blender Extensions platform requirements

V2.1.1

Removal of useless "Adjust last operation" panel

V2.1.0

Packaging optimization for publication on Blender Extensions platform. No functional evolution nor bug fixing. No need to update to this version if you run a Blender version prior to 4.2.

V2.0.1

Bug correction (Issue #3) for Blender 4.0 compatibility.

V2.0.0

New feature : align the 3D view to the 3D cursor orientation. Improvement : smooth alignment transitions.

V1.0.0

First stable release. Only feature : align the 3D view to a custom orientation.