Home Website Youtube GitHub

No viewport menu for ghost control

Hey hey,

maybe it’s a special Maya 2024 bug (haven’t tested it in 2023).

I watched the video series" Facial data centric" last week and rigged my character’s head after it (thanks a dozen btw @Miquel - it’s really helpful!). I noticed that when I create a ghost control in mGear, the viewport menu for that control no longer works. I get the following error:

Error: TypeError: file C:\mgear\scripts\mgear\core\dagmenu.py line 635: ‘NoneType’ object is not subscriptable

Workaround for now:

If you connect the message output of the global_C0 control with uiHost_cnx of the new control, it works again.

I have extended my ghost.py like this:

# fix mGear viewport menu
if pm.hasAttr(newCtl, 'uiHost_cnx'):
     pm.connectAttr ('global_C0_ctl.message', newCtl.uiHost_cnx)

Thanks for the feedback!
I have created a ticket to check this