On Sun, 4 Oct 2015 9:02 AM Crest Christopher <[email protected]>
wrote:

I assume an event filter would save the U.I changes ?

I'm not sure what happens specifically with the Outliner when it changes
from docked to floating. Maybe it is the same Qt instance and just wrapped
differently. Maybe it is always destroyed and recreated. An event filter
would only let you watch for when objects are created and to see if it's an
Outliner. In which case if it were an Outliner, you would then be able to
install your custom behavior.
Not saying this specifically applies to your needs here.. but was just
confirming some past experience with Arvid

I was hoping when writing the code I could use the outlineEditor command to
manipulate the outliner window, unfortunately, no.

Justin Israel wrote:

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 a topic in the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/python_inside_maya/bXgyvDvHhrE/unsubscribe
.
To unsubscribe from this group and all its topics, 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
<https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3AWhxYeJviLD-M-M3rnszH57pTTWux52ov7qEx4bY9Bg%40mail.gmail.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/56103445.1000903%40gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/56103445.1000903%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/CAPGFgA1LtzGAbsmj78aydHfhj4mx6KJyC%2B8wkrQjw%2BLQcYQD7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to