Skip to content

Instantly share code, notes, and snippets.

@chris-lesage
chris-lesage / example_usage.py
Last active March 19, 2026 03:36
A script to pin an object to a NurbsSurface in Autodesk Maya
import pymel.core as pm
'''
Here are some examples of how to use the pin_to_surface.py script.
'''
# make a nurbsPlane
oNurbs = pm.nurbsPlane(n='nurbsPlane1')
# You can specify the nurbsSurface by string, PyNode transform or PyNode shape.