Message 1 of 1
Locking influences programmatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to be able to lock/unlock the influences of a skincluster. How do I do that?
This is what I've tried.
(Unlocking)
import maya.cmds as mc
setName = "bind_set"
bones = mc.sets(setName, q=True)
for i in range(len(bones)):
mc.skinCluster("skinCluster1Set", e=True, inf=bones[i], lw=False)
mc.skinCluster("skinCluster1Set", e=True, inf=bones[i], lw=False)