Skip to content

Fix replace shape#627

Merged
miquelcampos merged 1 commit intomgear-dev:masterfrom
tokejepsen:fix_replace_shape
Mar 25, 2026
Merged

Fix replace shape#627
miquelcampos merged 1 commit intomgear-dev:masterfrom
tokejepsen:fix_replace_shape

Conversation

@tokejepsen
Copy link
Copy Markdown
Contributor

Description of Changes

Fixing replaceShape for the error below:

# Traceback (most recent call last):
#   File "scripts\mgear\pymaya\cmd.py", line 254, in wrapper
#     res = func(*args, **kwargs)
# RuntimeError: The attribute 'MayaNodeEditorSavedTabsInfo.tabGraphInfo[0].nodeInfo[209].dependNode' cannot be connected to 'fin_R0_ctl2Shape.message'.
# 
# # 
# The above exception was the direct cause of the following exception:

# Traceback (most recent call last):
#   File "scripts\mgear\rigbits\mirror_controls.py", line 173, in mirror_button_pressed
#     self.func.mirror_right_to_left()
#   File "scripts\mgear\rigbits\mirror_controls.py", line 131, in mirror_right_to_left
#     self.mirror_pairs(pairs)
#   File "scripts\mgear\rigbits\mirror_controls.py", line 99, in mirror_pairs
#     mgear.rigbits.replaceShape(source_copy, [target])
#   File "scripts\mgear\rigbits\__init__.py", line 427, in replaceShape
#     pm.connectAttr(c[0], sh.attr(c[1]))
#   File "scripts\mgear\pymaya\cmd.py", line 266, in wrapper
#     raise RuntimeError(
# RuntimeError: # Error occurred while calling wrapped function 'maya.cmds.connectAttr': The attribute 'MayaNodeEditorSavedTabsInfo.tabGraphInfo[0].nodeInfo[209].dependNode' cannot be connected to 'fin_R0_ctl2Shape.message'.
# 
# Arguments: ('MayaNodeEditorSavedTabsInfo.tabGraphInfo[0].nodeInfo[209].dependNode', 'fin_R0_ctl2Shape.message')
# Keyword Arguments: {}
Command for debugging: maya.cmds.connectAttr('MayaNodeEditorSavedTabsInfo.tabGraphInfo[0].nodeInfo[209].dependNode', 'fin_R0_ctl2Shape.message', )

Testing Done

Use the mgear > Rigbits > Mirror Control Shapes tool, using "Right to Left" option.

@miquelcampos
Copy link
Copy Markdown
Member

Hi @tokejepsen Thanks for the PR! :D

@miquelcampos miquelcampos self-assigned this Mar 25, 2026
@miquelcampos miquelcampos added the bug Something isn't working label Mar 25, 2026
@github-project-automation github-project-automation Bot moved this to To Do in mGear DEV Mar 25, 2026
@miquelcampos miquelcampos moved this from To Do to WIP in mGear DEV Mar 25, 2026
@miquelcampos miquelcampos merged commit 80cd5ec into mgear-dev:master Mar 25, 2026
@github-project-automation github-project-automation Bot moved this from WIP to 5.3.x in mGear DEV Mar 25, 2026
@tokejepsen tokejepsen deleted the fix_replace_shape branch March 30, 2026 10:48
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: 5.3.x

Development

Successfully merging this pull request may close these issues.

2 participants