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

mgear menu disappearing issue #254

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

sol-ansano-kim
Copy link

Hi Miquel!

I'm looking into a problem where the mgear menu doesn't show up on new Maya installations(In my case it's 2023) and found the results of pm.menu("....", exists=True) to be unreliable.

# first time, returns ui.Menu object named False
pm.menu("any_non_existent_menu_name", exists=True)
# Result: ui.Menu('scriptEditorPanel1Window|scriptEditorPanel1|False')

# second time, returns boolean
pm.menu("any_non_existent_menu_name", exists=True)
# Result: False

This issue is occurring with most people on my team who have newly installed Maya, and it looks like it might be an issue with pymel 1.3.1 (In rare cases, it even returned True or None)
I'm not exactly sure what's causing the problem, but I thought it would be safer to use cmds just to check for menu existence.

… In pymel 1.3.1 'if pm.menu(.., exists=True)' becomes True (return ui.Menu object named 'False')
@miquelcampos
Copy link
Member

Hi @sol-ansano-kim It Has been a long time! I hope you are doing well!

Thanks for the PR! I will merge it now 😄

@miquelcampos miquelcampos added this to To Do in mGear 4.x via automation Aug 16, 2023
@miquelcampos miquelcampos added the bug Something isn't working label Aug 16, 2023
@miquelcampos miquelcampos merged commit 8fb6138 into mgear-dev:master Aug 16, 2023
1 check was pending
mGear 4.x automation moved this from To Do to 4.1.x Aug 16, 2023
@sol-ansano-kim sol-ansano-kim deleted the menu_check_issue branch August 16, 2023 07:53
@sol-ansano-kim
Copy link
Author

Thanks, I hope you are doing well too!

@sdsingh357
Copy link

sdsingh357 commented Sep 6, 2023

i am having the same issue in maya 2023 everything is fine mgear installed properly it shows up on plugin manager but it not appear on the menu

@drirdan
Copy link

drirdan commented Jan 26, 2024

Hi there, I also have this issue where mGear menu is missing in Maya 2022, and when I run this code I do not get any errors:
import pymel.core
import mgear

If I run this:
from mgear.shifter import guide_manager_gui
guide_manager_gui.show_guide_manager()

The Shift Guide Manager UI Opens and it works. I also checked the Plug-in Manager and mGear is loaded already.

Is there a script I can run from the script editor to bring back the menu, that would be super helpful?

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: 4.1.x
Development

Successfully merging this pull request may close these issues.

None yet

4 participants