Update MetaFusion.py
This commit is contained in:
parent
5ee392002e
commit
779c1a5152
@ -48,11 +48,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
font = self.font()
|
||||
font.setPointSize(9)
|
||||
self.setFont(font)
|
||||
|
||||
# 设置窗口尺寸
|
||||
self.resize(550, 700) # 调整为更大的初始尺寸
|
||||
self.setMinimumSize(550, 700) # 设置最小尺寸限制
|
||||
|
||||
self.resize(550, 700)
|
||||
self.setup_core_components()
|
||||
|
||||
def setup_core_components(self):
|
||||
@ -135,18 +131,14 @@ def dock_to_maya():
|
||||
data.TOOL_WSCL_NAME,
|
||||
label=data.TOOL_NAME,
|
||||
tabToControl=["AttributeEditor", -1],
|
||||
initialWidth=550,
|
||||
initialHeight=700,
|
||||
minimumWidth=550,
|
||||
minimumHeight=700,
|
||||
floating=True, # 设置为悬浮状态
|
||||
retain=False # 不保存上次的停靠状态
|
||||
floating=True,
|
||||
retain=False
|
||||
)
|
||||
|
||||
# 确保窗口显示在合适的位置
|
||||
cmds.workspaceControl(
|
||||
data.TOOL_WSCL_NAME,
|
||||
e=True,
|
||||
e=False,
|
||||
restore=True
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user