版权声明:zhaojanc https://blog.csdn.net/qq_38641985/article/details/82152587
import maya.cmds as mc
def myScriptEditor():
if mc.window('myPyScriptEditor', exists=True):
mc.deleteUI('myPyScriptEditor')
mc.window("myPyScriptEditor", title="My Python Script Editor")
mc.columnLayout(adjustableColumn=True)
mc.cmdScrollFieldReporter(height=200)
mc.cmdScrollFieldExecuter(height=200, sourceType='python')
mc.showWindow()
myScriptEditor()
import maya.cmds as mc
def myScriptEditor():
if mc.window('myPyScriptEditor', exists=True):
mc.deleteUI('myPyScriptEditor')
mc.window("myPyScriptEditor", title="My Python Script Editor")
mc.columnLayout(adjustableColumn=True)
mc.cmdScrollFieldReporter(height=200)
mc.cmdScrollFieldExecuter(height=200, sourceType='mel')
mc.showWindow()
myScriptEditor()
可以在这里run maya python or mel command!