Home Website Youtube GitHub

Post Steps Blended Joint Issue

Hi, everyone. I’ve been doing some digging and I don’t think I’ve seen any posts running into the same issue, so I’m starting a new thread. I’ve been using the MetaHuman y-up template.

I’m stuck in a debugging loop. I’ve been following the mGear Basics 2 playlist for better deformation and got to the point where I’m using custom scripts to load in skinning and gimmick joints after the rig is built. For some reason, I’m not able to create blended joints through scripting. I’m getting the following error.

# Warning: Blended Joint can't be added to: thigh_l. Because is not ot type Joint

I’m pretty sure that thigh_l is a joint with a unique name. :sweat_smile: Strangely, I’m able to manually create the blended joint through the rigbits menu using the same thigh_l joint as the selection. I’ve tested the following script outside of the custom step but run into the same issue.
import pymel.core as pm
from mgear import rigbits
print(pm.PyNode(“thigh_l”).type())
print(pm.PyNode(“thigh_l”).listAttr())
jnt = pm.PyNode(“thigh_l”)

Any ideas about what’s causing this issue? I feel like I’m missing something silly. I thought it could be related to not having my Maya.env set up correctly, but after fixing that the issue persists.

Hello,
your ‘create_support_gimmick()’ method is calling the same blend joint for both left and right positions, but that shouldn’t error out.
Can you post a screenshot of your ‘def run’ method? There might be issues in that block.
Thanks,
Paul

Thanks for catching that. Here’s a screenshot of that section.

The post-script error shows an issue with the ‘create_support_gimmick’ method. Can you comment out line 27 in ‘run’ to see if the blend joints are created or not?

It succeeds, but still throws the error about thigh_l not being a joint. The blend joints don’t get created. Could this be a unique naming issue?

I tested building the MetaHuman Y-up template with your post script and it built without issues:


Here’s the code I used:

I’m using Maya 2024 and mGear 4.3.0
If you’re sure it’s not a unique naming issue, then I don’t know what it could be. Hopefully someone else can help.
Sorry!
Paul

@skrunch What version of mGear are you using?

@hongd and @skrunch I suggest you use triple backticks to post code and errors instead of screenshots, except where you’re trying to show something actually graphical.

```
code here
```
`or single backticks for inline code, not single quotes.`

Sorry for the clutter! Im using 5.0.7. I’ll double check the naming issue and then I’ll try rolling back mgear to a previous version. Thanks for helping me troubleshoot. Will update in a bit.

mGear 5 has gotten rid of Pymel, so it isn’t compatible with PyNodes.

Understood. I don’t have the chops to convert this to pyMaya just yet, so I’ll roll back to version 4 for now. Thanks for your help.

1 Like