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.