Yea I have found that same kind of outcome when trying to mess with built-in UI elements in Maya. I think mine was trying to hook into viewport behavior and also finding that things reset each time the view layout changes and rebuilds them. Pretty sure the only real way to tackle it is to install an event filter on the entire app and try to catch the desired changes.
On Sun, Oct 4, 2015 at 7:34 AM Arvid Schneider <[email protected]> wrote: > That again, is a really annoying thing in maya. > When it's docked it's a panel. When it's floating it's a window. > When you want to hook up code to either one, for instance a custom right > click menu entry, it only lives so long until you close it. When you change > viewport to single view, the outliner object is deleted, and so is your > custom stuff. > So you need a callback to hook up you code..I didn't find a great way yet > to hack something into it. > Any help is welcome! > > > Arvid Schneider > Look Develpopment | Lighting TD | Show TD > www.arvidschneider.com > > > On Oct 3, 2015, at 19:13, Christopher. <[email protected]> wrote: > > When docking a panel, in this case, the outliner. Most of the code I find > start with outlinerWindow, yet the docs only mention outlinerEditor & > outlinerPanel ? > > -- > 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/59bc6a61-61bf-4711-ba76-be47ff563c1a%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/59bc6a61-61bf-4711-ba76-be47ff563c1a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- > 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/5BAB3AF8-0AE8-4DE3-89EA-0FB0CA732F3E%40gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/5BAB3AF8-0AE8-4DE3-89EA-0FB0CA732F3E%40gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPGFgA3AWhxYeJviLD-M-M3rnszH57pTTWux52ov7qEx4bY9Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
