Maya custom window size issue

62 views
Skip to first unread message

sudeept...@gmail.com

unread,
Oct 12, 2017, 5:02:20 AM10/12/17
to Python Programming for Autodesk Maya
Hi,

I am creating a script for playblasting. the process is that scene camera will be shown in a custom window for playblasting. the code is as follows

import maya.cmds as cmds
if cmds.window('playBlastWindow', exists = 1):

cmds.deleteUI('playBlastWindow')

if cmds.windowPref ('playBlastWindow', exists = 1):

cmds.windowPref ('playBlastWindow', remove = 1)

pbTmp = cmds.window("playBlastWindow", wh = (2000, 1100), te = 20, le = 20)
cmds.paneLayout()
modPane = cmds.modelPanel()
cmds.showWindow(pbTmp)

print(cmds.window("playBlastWindow",q=True, wh=True))

# Result : [1916L, 1054L]

My System monitor resolution is 1920x1080(Windows OS 7 64bit).

I am not able to create a window beyond [1916L, 1054L] size no matter what size i give to custom window property the size of the window is getting to [1916L, 1054L].

Is there any way to get the window size to 2000x1100 ?

Any help will be appreciated.

Thanks in advance.

Marcus Ottosson

unread,
Oct 12, 2017, 5:04:35 AM10/12/17
to python_in...@googlegroups.com
I can't be sure, but I think your OS limits the creation of windows larger than your resolution.

What you can do instead is playblast "offscreen". There's an option for that in the playblast window.


--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2a6b426d-b876-4935-b00b-b6aa424f5159%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sudeepth Patinjarayil

unread,
Oct 12, 2017, 5:09:52 AM10/12/17
to Python Programming for Autodesk Maya
Thank you Marcus Ottosson

But i am windows is that option for windows. I think its only for linux version right

Sudeepth Patinjarayil

unread,
Oct 12, 2017, 5:28:00 AM10/12/17
to Python Programming for Autodesk Maya
Thank you Marcus Ottosson offscreen option worked. Thanks for the quick reply.


On Thursday, October 12, 2017 at 2:34:35 PM UTC+5:30, Marcus Ottosson wrote:
Reply all
Reply to author
Forward
0 new messages