Locking influences programmatically

Locking influences programmatically

Peteman12
Advocate Advocate
397 Views
0 Replies
Message 1 of 1

Locking influences programmatically

Peteman12
Advocate
Advocate

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)

0 Likes
398 Views
0 Replies
Replies (0)