Maya Viewport HUD python


#1

Hey CGSOCIETY,

I have created a script that uses the maya.cmds.hudButton() which creates the buttons in each viewport.
However, upon creating a new modelPanel or tear off viewport, this falls apart and stops the viewport from pressing any of my buttons. If you have an idea how to make it work, please let me know.

Best,
Aniket