Code


Edge Angle Grow

This Maya tool implements a selection growth algorithm based on the angle between polygon normals. Starting from an initial selection, it recursively adds adjacent faces as long as the shared edge angle falls within a user-defined threshold. It provides functionality similar to the “Select by Angle” tool found in 3ds Max


Features

Fully Interactive

Real-time viewport updates as you tweak the angle parameters.

High Performance

Optimized via the Maya Python API to handle dense production meshes efficiently.

No UI Mode

Supports execution without a UI for integration into custom modeling scripts or shelf buttons.


Video


Setup


Installation

Edge Angle Grow 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_grow_selection_by_edge_angle
fx_grow_selection_by_edge_angle.run()

Headless Mode

For instant execution with predefined parameters:

Python
from fxpt import fx_grow_selection_by_edge_angle
fx_grow_selection_by_edge_angle.runNoUI(minAngle, maxAngle, highlightState)

Compatibility

Tested on

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

Requirements

Maya versions using a Python 2.7 interpreter