Home Website Youtube GitHub

Game Tools > Delete Rig - Keep Joints error v5.0.2

I’m trying to use the Delete Rig - Keep Joints tool but I get this error every time.

# Error: 'str' object has no attribute 'name'
# # Traceback (most recent call last):
# #   File "<maya console>", line 3, in <module>
# #   File "C:\Users\username\Documents\maya\modules\scripts\mgear\core\utils.py", line 236, in wrap
# #     raise e
# #   File "C:\Users\username\Documents\maya\modules\scripts\mgear\core\utils.py", line 233, in wrap
# #     return func(*args, **kwargs)
# #   File "C:\Users\username\Documents\maya\modules\scripts\mgear\shifter\game_tools_disconnect.py", line 102, in delete_rig_keep_joints
# #     disconnect_joints()
# #   File "C:\Users\username\Documents\maya\modules\scripts\mgear\core\utils.py", line 236, in wrap
# #     raise e
# #   File "C:\Users\username\Documents\maya\modules\scripts\mgear\core\utils.py", line 233, in wrap
# #     return func(*args, **kwargs)
# #   File "C:\Users\username\Documents\maya\modules\scripts\mgear\shifter\game_tools_disconnect.py", line 51, in disconnect_joints
# #     cnx, mcons_nodes = get_connections(g.members(), embed_info=True)
# #   File "C:\Users\username\Documents\maya\modules\scripts\mgear\shifter\game_tools_disconnect.py", line 307, in get_connections
# #     if not jnt.name().startswith(("blend_", "leaf_")):
# # AttributeError: 'str' object has no attribute 'name

It also happens with the Disconnect Joints tool.

I also tried using it in a new, empty scene on a fresh Z-Up Metahuman template with the same error.
I’ve tried with the rig root selected, joint root, joints, control objects. Since I’m not exactly sure what should be selected I tried all kind of combinations. But it spits out the error regardless.

I’m using mgear 5.0.2 in Maya 2023.3

Thanks.

For testing I rolled back to v4.2.2 and both Disconnect Joint and Delete Rig - Keep Joints functions are working without error.

2 Likes

Hey !
I don’t know if I will fix your issue but I’ve found a new issue with the “Delete Rig - Keep Joints error” :
If you do this on the game biped template, you will see there is still some connections that will stop the next build and cause an error :

It happens on latest version 5.0.7

Deleting all the connections by hand is solving this bug.

1 Like

Thanks @remicc Can you log the bug on github?

I have added some comments here : https://github.com/mgear-dev/mgear/issues/515#event-17992443913
Maybe you should reopen the bug, or you would prefer another task ? Because there is two ways to solve the issue, and maybe both should be done
I can create a new one if you prefer, as you want !

1 Like

I will re-open de bug. Thanks!

1 Like