Hi,

four questions below...

I'm looking to add some buttons and menus to the Hypershade. I'm new to 
working with the existing Maya UI so maybe I'm doing this all wrong. 

This is the best way I've found to get the Hypershade window:
    p = pm.getPanel(scriptType='hyperShadePanel')
    assert len(p) == 1
    hypershade = p[0].getControl()

I'd read that the Maya UI was all Qt now, but this method gets me a 
pymel.core.uitypes.Panel. *Is Hypershade built in Qt?* 

To get individual layouts, the only way I've found is to know the structure 
in advance. For example:
    mainForm = pm.layout(hypershade, query=True, childArray=True)[0]
    assert mainForm.lower() == 'mainform'

That all seems pretty delicate. *Is there a more robust way to get (for 
example) the toolbar at the top of Hypershade?*

To make all that actually work, I would need to do it each time the 
Hypershade opens. *Can I get a callback when the Hypershade window is 
opened? *I can't see any MMessage or callback that would tell me.

And finally, *is there any good help on MMessage anywhere?* The Autodesk 
help is a decent reference, if you already know what you can do.

Thanks,

Boon

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/460c6e34-1e31-45d2-913f-31d1dde1f880%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to