Python bindSkin problem

Python bindSkin problem

Peteman12
Advocate Advocate
2,096 Views
1 Reply
Message 1 of 2

Python bindSkin problem

Peteman12
Advocate
Advocate

I am trying to create a script that would help me automate the creation of a spine rig, but I am running into a problem. I am following the tutorial provided here and I am working on the step where you skin the curve to the IK joints. However, when I try to use mc.bindSkin(), I keep getting an error (Error: RuntimeError: file [directory]/maya/2016.5/scripts\createRigSpine.py line 200: Maya command error). It's too late right now to for me to do much experimenting, but I was hoping someone could help me, or tell me if I'm using the wrong commands.

 


mc.select(crvSpine, ikMidSpine, ikChest)

mc.bindSkin(crvSpine, ikMidSpine, ikChest, tsb=True)

(have also tried mc.bindSkin() and mc.bindSkin(tsb=True))

 

Ideally, I want the settings to be:

 

Bind To: Selected Joints
Bind Method: Closest Distance
Skinning Method: Classic Linear
Normalize Weights: Interactive

0 Likes
Accepted solutions (1)
2,097 Views
1 Reply
Reply (1)
Message 2 of 2

Peteman12
Advocate
Advocate
Accepted solution

Apparently, I'm better off using skinCluster rather than bindSkin.

 

Oh well, I'm relatively new to these sorts of commands.