Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Game Tools > Delete Rig - Keep Joints or Disconnect Joints AttributeError: 'str' object has no attribute 'name' #470

Open
andyvandalsem opened this issue Feb 23, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@andyvandalsem
Copy link

🐞 Bug Report

Description

Using Game Tools > Delete Rig - Keep Joints or Disconnect Joints generates an AttributeError

Steps to Reproduce

  1. Select the mgear rig node
  2. Execute Game Tools > Delete Rig - Keep Joints or Disconnect Joints

Expected Behavior

Delete Rig - Keep Joints:
A dialog appears asking permission to delete rig. After selecting 'OK', rig is deleting but the joints remain

Disconnect Joints:
The joints are disconnected from the rig

Actual Behavior

Delete Rig - Keep Joints:
A dialog appears asking permission to delete rig. After selecting 'OK', an error is generated

Disconnect Joints:
An error is generated immediately on execution

Maya Version

  • Maya Version: 2023.3
  • OS: Windows 11 Pro

mGear Version

  • mGear Version: 5.0.2

Error Log Formatting

# 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
@andyvandalsem andyvandalsem added the bug Something isn't working label Feb 23, 2025
@github-project-automation github-project-automation bot moved this to To Do in mGear 5.0 Feb 25, 2025
@miquelcampos miquelcampos moved this from To Do to WIP in mGear 5.0 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: WIP
Development

No branches or pull requests

2 participants