Related question:
Can you attach a persistent filterEvent to a panel like the
hypershade? Or maybe attach a callback to the hyperShadePanel type to
create a filterEvent every time the panel is created?
I can get the QWidget for the hypershade if it already exists:
hypershade_panel = cmds.getPanel(sty='hyperShadePanel')[0]
if hypershade_panel in cmds.getPanel(vis=True):
ptr = mui.MQtUtil.findControl(hypershade_panel)
Problem is that since the QWidget for the panel gets destroyed every
time it is closed, I'd have to reattach the filterEvent every time it
is reopened (or make it persistent, but I'm guessing that since the
widget gets destroyed, that isn't possible), and I don't know how to
do that. Is it possible, a bad idea, anything?
Thanks,
Jesse
On Apr 10, 6:08 pm, notanymike <[email protected]> wrote:
> Thanks. I somehow overlooked eventFilter from the QObject docs...
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe