Planar Components script for Autodesk Maya
Original script from this video:
https://www.youtube.com/watch?v=ieN5SyGJwIw&t=26s
maya_igeDa0IXFn.mp4
PlanarComponents.py- Original version (1.0): Aligns all selected vertices to best-fit planePlanarComponentsAutoSnapToAxis.py- Enhanced version (1.2):- Auto-snaps plane normal to world axes (X/Y/Z) when within 0.1° threshold
- Only moves vertices that are OFF the plane (selective displacement)
- Detects existing coplanar vertices and preserves them
- Shows in-viewport notification at top with moved vertex count and plane orientation
- Preserves original selection mode after operation
After installing NumPy, run the main script from the Maya Script Editor.
The script requires the NumPy library.
Use the check_and_install_numpy.py script to automatically install NumPy from within Maya:
- Open Maya.
- Open the Script Editor.
- Copy and run the contents of
check_and_install_numpy.py. - The script will check if NumPy is installed, and install it automatically using
mayapy.exeif needed.
ga4v4AaTYf.mp4
This is the easiest and most portable method.
-
Copy the file
maya_install_numpy.cmdto the directory where Maya is installed.
Example:
C:\Program Files\Autodesk\Maya2023\bin -
Run
maya_install_numpy.cmd.