Home Website Youtube GitHub

I would like to attach a Rig with mGear to an existing skeleton

Hello,

I tried the script at this URL, but I got an error and couldn’t do it.

I’m a beginner so I don’t know what to do.

I left the (“spine_C0_hip_jnt”) part as it is.

I changed the (“Name of the top joint of your custom joint structure”) part to the name of my top joint.

I get this error.

Error: MayaNodeError: file C:\Program Files\Autodesk\Maya2019\Python\lib\site_packages\pymel\core\general.py line 2282: Maya Node does not exist (or is not unique):: u’spine_C0_hip_jnt’

So
(“spine_C0_hip_jnt”)
(“Name of the top joint of your custom joint structure”)

I changed both of them to the name of my top joint, and now

Error: RuntimeError: file C:\Program Files\Autodesk\Maya2019\Python\lib\site_packages\pymel\internal\pmcmds.py line 134: Object cannot be constrained to itself.

I’m getting the error "Object cannot be constrained to itself.

Can you please tell me how to do this correctly?
Or is there another way?

I’m using mGear 3.6.0.

I have not run this script, so I can’t 100% tell you what to do. But I can point out 2 mistakes:

I left the (“spine_C0_hip_jnt”) part as it is.

It says " spine_C0_hip_jnt" doesn’t exist. Do you have a joint called " spine_C0_hip_jnt" in your skeleton? Or that can also mean the name is not unique. Do you have 2 objects named “spine_C0_hip_jnt” in your scene? If so, it doesn’t know which one to use.

I changed both of them to the name of my top joint, and now

One needs to be your mGear skeleton. The other needs to be your custom skeleton. If you point both variables to the same thing, you are trying to constrain it to itself, which is not possible.

1 Like