【发布时间】:2015-10-11 03:57:31
【问题描述】:
我正在尝试设置非主 Maya 窗口(超图等)的宽度。
但该命令实际上并没有移动它。它返回它确实......这真的很奇怪。有谁知道怎么回事?
openWindows = cmds.lsUI(windows=True)
for i, window in enumerate(openWindows):
if window != "MayaWindow":
widthQueryPre = cmds.windowPref(window, q=True, w=True)
cmds.windowPref(window, e=True, w=200) # Why doesn't this change the window's width?
widthQueryPost = cmds.windowPref(window, q=True, w=True)
print i, window, widthQueryPre, widthQueryPost
【问题讨论】:
标签: python user-interface window maya