Skip to content

Instantly share code, notes, and snippets.

View miica37's full-sized avatar

miica37

  • Rabbit Heart
  • Penang, Malaysia
View GitHub Profile
@EricTRocks
EricTRocks / Maya_InvertShapeWeights.py
Created September 20, 2016 03:43
Invert BlendShape weights
from maya import cmds
import pymel.core as pm
sel = pm.ls(selection=True)
print sel[0]
blends = sel[0].getShape().inputs(type='blendShape')
if len(blends) < 1:
print "No blend shapes on this node!"
else:
@mclavan
mclavan / rr_wrap.py
Last active September 26, 2023 05:35
Ryan Roberts - Wrap Deformer
'''
Ryan Roberts - Wrap Deformer
rr_wrap.py
Description:
Ryan Robers created a simple function to create a wrap deformer.
The wrap deformer needs a little more than the deform command to get working.
Michael Clavan
I wanted to have the function also return the deformer to the user. So, my contributions are pretty minor.
I converted the wrap deformer into a pynode object type pm.nt.Wrap.