Moving all Maya windows to screen position 0,0

4,168 views
Skip to first unread message

Fredrik Averpil

unread,
Sep 25, 2014, 4:34:52 AM9/25/14
to maya...@googlegroups.com
Hey,

From time to time, we have this issue where a panel or window which was launched within Maya doesn't show. Most of the time, it seems this is because monitor order or orientation was changed so the window appears off-screen.

This actually just happened with render globals for one of our artists.

I'd love to have a script available for these circumstances, which would find any Maya window and move it to e.g. screen #1's position @ 0,0.

Does anyone have any idea how to roll through any active windows, preferably via python, so that they can be fetched and then moved or maximized or whatever?
I'm looking at the "window" command from the docs, but I can't see anything on listing all windows.

Anyone?


// Fredrik

ryan harrington

unread,
Sep 25, 2014, 5:16:20 AM9/25/14
to maya...@googlegroups.com
Hi Fredrik,

 If you are using Windows (the OS) you should be able to do this by raising the Render View as the active panel (through the Window menu in Maya) then hold down the Windows key and hit your left arrow key. 

R

Keith Rogers

unread,
Sep 25, 2014, 5:16:34 AM9/25/14
to maya...@googlegroups.com
Give this a try.

for ($window in `lsUI -windows`) { window -e -tlc 0 0 $window ; }

--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fredrik Averpil

unread,
Sep 25, 2014, 5:25:39 AM9/25/14
to maya...@googlegroups.com
Hi Keith,

Awesome - this works, thank you!
But it doesn't manage to grab the V-Ray frame buffer window. I'll check with Chaosgroup to see why that is and perhaps I can add that manually to the code you provided...

Fredrik Averpil

unread,
Sep 25, 2014, 5:36:52 AM9/25/14
to maya...@googlegroups.com
Hm, it seems any PySide windows doesn't get fetched either ... and no detached UI windows, such as the channel box when detached/floating.

Keith Rogers

unread,
Sep 25, 2014, 6:00:54 AM9/25/14
to maya...@googlegroups.com
Oh yeah, I have the same problem, Go ahead and change it,  I'd be interested in a full solution.  The only tip I can give is close maya first at work if you intend to remote in from home and don't have two monitors. 

Mark Serena

unread,
Sep 25, 2014, 8:26:19 AM9/25/14
to maya...@googlegroups.com
controls flag will move the channelbox and attribute editor when undocked. My vRayFrameBuffer moved without that flag though, not sure why yours didn't.
Not sure about pyside windows

for each in cmds.lsUI( controls = True, windows = True):
    try:cmds.window(each, edit = True, topLeftCorner = (0,0))
    except:pass

Fredrik Averpil

unread,
Sep 29, 2014, 2:30:00 AM9/29/14
to maya...@googlegroups.com
Ah, the V-Ray 3 frame buffer does indeed move. But not the V-Ray 2.x frame buffer.

Regards,
Fredrik
Reply all
Reply to author
Forward
0 new messages