-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
bugSomething isn't workingSomething isn't working
Description
🐞 Bug Report
Description
When I press the mGear menu > Utilities > Reload, the guide,rig build process stops midway.
Steps to Reproduce
- Launch the "Guide Manager" tool. Select a component from the list and press "Draw Component" to create a guide.
(Example: chain_FK_spline_variable_IK_01) - Select the guide and press "Build From Selection".
The rig will build correctly. - Delete the created rig.
- Press the Utilities >Reload.
- Select the component again from the component list and press "Draw Component" (Create the second component)
Guide generation stops midway. - Close the "Guide Manager" tool. Reopen the tool.
- In this state, select the guide again and press "Build From Selection". Rig generation stops midway.
Expected Behavior
Even after executing Utilities > Reload, the creation of guides and generation of rigs will be completed.
Actual Behavior
Guide creation and rig creation are not complete.
Maya Version
- Maya Version: 2024
- OS: Windows 11
mGear Version
- mGear Version:5.1.0
Error Log Formatting
The username in the path has been replaced.
# Traceback (most recent call last):
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\pymaya\cmd.py", line 254, in wrapper
# res = func(*args, **kwargs)
# TypeError: Invalid argument 1, 'guide1.guide_x_ray'. Expected arguments of type ( , )
# #
# The above exception was the direct cause of the following exception:
# Traceback (most recent call last):
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\guide_manager_component.py", line 258, in draw_comp_doubleClick
# self.draw_component()
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\guide_manager_component.py", line 272, in draw_component
# guide_manager.draw_comp(x.data(), parent, showUI)
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\guide_manager.py", line 39, in draw_comp
# guide.drawNewComponent(parent, comp_type, showUI)
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\guide.py", line 844, in drawNewComponent
# comp_guide.drawFromUI(parent, showUI)
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\component\guide.py", line 472, in drawFromUI
# self.draw(parent)
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\component\guide.py", line 453, in draw
# self.addObjects()
# File "C:\Users/<username>/Documents/maya/modules/scripts/mgear/shifter_classic_components\chain_FK_spline_variable_IK_01\guide.py", line 50, in addObjects
# self.root = self.addRoot()
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\component\guide.py", line 644, in addRoot
# self.connect_x_ray(self.root)
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\shifter\component\guide.py", line 617, in connect_x_ray
# pm.connectAttr(
# File "C:\Users\<username>\Documents\maya\modules\scripts\mgear\pymaya\cmd.py", line 266, in wrapper
# raise RuntimeError(
# RuntimeError: # Error occurred while calling wrapped function 'maya.cmds.connectAttr': Invalid argument 1, 'guide1.guide_x_ray'. Expected arguments of type ( , )
# Arguments: (Attribute<'guide1.guide_x_ray'>, 'guide1|chain_C0_root|chain_C0_rootShape.alwaysDrawOnTop')
# Keyword Arguments: {}
Additional Context
In my local script, I have confirmed that excluding “mgear.pymaya” from the package get condition within the reloadModule function allows it to run without errors.
timothyliu3d
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working