maya自定义 脚本编辑器

版权声明: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!

这里写图片描述

这里写图片描述

猜你喜欢

转载自blog.csdn.net/qq_38641985/article/details/82152587
今日推荐