Home Website Youtube GitHub

Mgear not reloading entirely

Hello,
I wanted to try some prints inside the code just for debugging, but it seems that when I click on mGear > Utilities > Reload, it only removes module :
Removing module: mgear.menu
Removing module: mgear
Removing module: mgear.core
Removing module: mgear.core.six
Removing module: mgear.core.applyop
Removing module: mgear.core.utils
Removing module: mgear.core.vector
Removing module: mgear.core.transform
Removing module: mgear.core.curve
Removing module: mgear.core.attribute
Removing module: mgear.core.icon
Removing module: mgear.core.node
Removing module: mgear.core.primitive
Removing module: mgear.core.meshNavigation
Removing module: mgear.core.string
Removing module: mgear.rigbits
Removing module: mgear.vendor
Removing module: mgear.vendor.Qt.QtCore
Removing module: mgear.vendor.Qt.QtGui
Removing module: mgear.vendor.Qt.QtHelp
Removing module: mgear.vendor.Qt.QtMultimedia
Removing module: mgear.vendor.Qt.QtNetwork
Removing module: mgear.vendor.Qt.QtOpenGL
Removing module: mgear.vendor.Qt.QtPrintSupport
Removing module: mgear.vendor.Qt.QtSql
Removing module: mgear.vendor.Qt.QtSvg
Removing module: mgear.vendor.Qt.QtTest
Removing module: mgear.vendor.Qt.QtWidgets
Removing module: mgear.vendor.Qt.QtXml
Removing module: mgear.vendor.Qt.QtXmlPatterns
Removing module: mgear.vendor.Qt.QtCompat
Removing module: mgear.vendor.Qt
Removing module: mgear.rigbits.mirror_controls
Removing module: mgear.core.dag
Removing module: mgear.core.pyqt
Removing module: mgear.core.skin
Removing module: mgear.core.fcurve
Removing module: mgear.core.callbackManager
Removing module: mgear.anim_picker.menu
Removing module: mgear.anim_picker.version
Removing module: mgear.anim_picker.handlers.mode_handlers
Removing module: mgear.anim_picker.handlers.maya_handlers
Removing module: mgear.anim_picker.handlers
Removing module: mgear.anim_picker.widgets
Removing module: mgear.anim_picker.widgets.basic
Removing module: mgear.anim_picker.handlers.file_handlers
Removing module: mgear.anim_picker.picker_node
Removing module: mgear.anim_picker.handlers.python_handlers
Removing module: mgear.anim_picker.widgets.picker_widgets
Removing module: mgear.anim_picker.widgets.overlay_widgets
Removing module: mgear.anim_picker.gui
Removing module: mgear.anim_picker
Removing module: mgear.shifter.guide_ui
Removing module: mgear.shifter.custom_step_ui
Removing module: mgear.shifter.naming_rules_ui
Removing module: mgear.shifter.naming
Removing module: mgear.shifter.guide
Removing module: mgear.shifter.component
Removing module: mgear.shifter_classic_components
Removing module: mgear.shifter_epic_components
Removing module: mgear.shifter
Removing module: mgear.shifter.io
Removing module: mgear.shifter.utils
Removing module: mgear.shifter.guide_manager
Removing module: mgear.shifter.component.chain_guide_initializer_ui
Removing module: mgear.shifter.component.chain_guide_initializer
Removing module: mgear.shifter.component.main_settings_ui
Removing module: mgear.shifter.component.joint_names_ui
Removing module: mgear.shifter.component.guide

Then when i click on mGear > Rigbits > Mirror Control Shapes, I get this error : mgear\rigbits\mirror_controls.py line 176: module 'mgear.core' has no attribute 'pyqt'
Then if I go to mGear > Shifter > Reload Components, and go again to Mirror Control Shapes, then it works.
So i’ve found a workaround but just wanted to inform you about this error.

mGear version : 4.2.2
Maya 2023

1 Like

That is true. I never managed to get everything reloading correctly. Especially the QT UI will not reload properly and Maya restart is advised. :sweat_smile:

1 Like