My skin weight loading first unbind skin cluster and recreate it with correct bones and set weights. However if skin cluster is referenced it can't be removed. So I try remove bones and add correct ones without deleting skin cluster.
If I remove all joints from skin cluster.
sc = "skinCluster1" joints = cmds.skinCluster(sc, inf=True, q=True) for strJoint in joints: cmds.skinCluster(sc, ri=strJoint, e=True)
Work fine, but for some reason after this I can't add influences.
cmds.skinCluster(sc, ai="joint2", omi=False, e=True)
If I left one or more joints to skin cluster add influence works fine, but not if I remove all of them.
So is there a way to remove all bones and add new bones to skinCluster?