Created
October 8, 2013 02:03
-
-
Save robomojo/6878249 to your computer and use it in GitHub Desktop.
clear skin weighting
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
import pymel.core as pm | |
skin = pm.ls(type=pm.nodetypes.SkinCluster)[0] | |
# assign all weight to first influence | |
pm.skinPercent(skin, transformValue = (skin.getInfluence()[0].name(),1)) | |
# clear skin | |
pm.skinPercent(skin, normalize=False, zeroRemainingInfluences=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment