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