This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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. |