Skip to content

Instantly share code, notes, and snippets.

"""
Functions for generating spline weights.
Usage:
This modules functions each take curve parameters and output control point weights. The weights are generated using
a modified version of de Boor's algorithm. These weights can be used to create a weighted sum to find a point or
tangent on a spline.
While these functions are written for usage in Autodesk Maya, they don't actually have any Maya-specific libraries.
Additionally none of these functions actually care about the data type of provided control points. This way these
__author__ = "rBrenick - [email protected]"
__created__ = "22/02/2020"
"""
1. Pull this script into a python tab in the script editor (or create a python shelf button)
1. Select blendshaped mesh
2. Select mesh to apply blendshapes on
3. Run script