Home Website Youtube GitHub

Viewport Menu Needs Re-Activating Upon Maya Boot

Hi folks,
For some reason when Maya has been closed, the next time I boot it, the viewport menu is no longer working.

The option is still checked in the menu but I need to toggle it off and on again for the viewport menu to begin working again, it’s very irritating to sort every time. Any ideas on a fix?

Edit: mGear version - 5.0.7 & 4.2.2, Maya version - 2025 & 2023 respectively, Windows 10
After some more testing, it appears to be files created in 4.2.2/2023, upon boot don’t have the viewport menu functionality, if opened in 4.2.2/2023 or 5.0.7/2025. Once the check box has been toggled, that session will be fine no matter what files you open.
If I open a new 5.0.7/2025 scene and import a rig in fresh, it’s fine.

After putting a bunch of prints throughout the dagmenu script, one weird thing I noticed is that the initial run of it all returns 1’s or 0’s
image
Whereas once I run the check box it returns True’s or False’s, I know they should equate to the same thing but it’s the only difference I can notice
image

I’ve even tried re-running the function deferred to try and trigger it later in the boot, but it’s not getting past this line

Then if I run the function in my Python window once I’m booted, it seems to work fine again.

1 Like

What version of mgear? Version of Maya? What OS?

Hi Chris
Sorry, didn’t see this, but have been doing some more testing on it and have updated the post with my findings, I’m still not the greatest with Python so I may be missing something stupid

Essentially we’re currently in the process of using 4.2.2 but I’ve been upgrading everything to 5.0.7 and this was noticed, but it does seem to be happening in both versions if the file originated from 4.2.2 :slight_smile:

Another new finding, upon initial run of dagmenu, it runs through the following panels under “buildObjectMenuItemsNow” (“modelPanel1ObjectPop”,“modelPanel2ObjectPop”,“modelPanel3ObjectPop”,“modelPanel4ObjectPop”)

When running on a new file that’s fine, it seems the right-click uses “modelPanel4ObjectPop”, but if opening a 4.2.2/2023 file, it seems to create a new “modelPanel5ObjectPop” upon right click, so I would assume that is the problem, so it needs re-running to check for and edit that panel after it’s been initialised?