Skip to content

Instantly share code, notes, and snippets.

@robomojo
Created October 8, 2013 02:03
Show Gist options
  • Save robomojo/6878249 to your computer and use it in GitHub Desktop.
Save robomojo/6878249 to your computer and use it in GitHub Desktop.
clear skin weighting
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