Skip to content

Instantly share code, notes, and snippets.

View thirstydevil's full-sized avatar

David Moulder thirstydevil

View GitHub Profile
@chris-lesage
chris-lesage / calculate_pole_vector.py
Last active June 13, 2025 09:23
Autodesk Maya script to calculate pole vector position based on 3 input objects
import pymel.core as pm
'''
An Autodesk Maya PyMEL script that calculates a pole vector position
based on 3 input PyNode objects. example: leg, knee, ankle bones.
Chris Lesage [email protected]
'''
def calculate_pole_vector(p1, p2, p3, poleDistance=1):
"""