Code


Reorient

A lightweight utility for precisely reorienting local rotation axes. Instead of fighting with Maya’s native rotation tools, you can define a new orientation by simply picking three points in world space.


Usage

  • Select your object and launch the tool.
  • Define three points to establish the new coordinate system. You can pick components from the original object, use other objects, or even components of other objects.
  • Click “Fix Orientation” to establish the new axes.

Optional: Use Manual Orient to generate a tripod gizmo, allowing you to fine-tune the orientation by hand.


Video


Setup


Installation

Reorient is part of the FX Python Tools library. Download fxpt from GitHub and add it to your PYTHONPATH directory.


How to Run

To launch the tool via the Script Editor or a shelf button:

Python
from fxpt import fx_reorient
fx_reorient.run()

Compatibility

Tested on

Maya 2016
Maya 2017
Maya 2022 (with “-pythonver 2” flag)

Requirements

Maya versions using a Python 2.7 interpreter