// 错误: Line 1.1: Syntax error //
黏贴到maya脚本编辑器
from maya import cmds
for _editor in cmds.lsUI(editors=True):
if not cmds.outlinerEditor(_editor, query=True, exists=True):
continue
_sel_cmd = cmds.outlinerEditor(_editor, query=True, selectCommand=True)
if not _sel_cmd or not _sel_cmd.startswith('<function selCom at '):
continue
cmds.outlinerEditor(_editor, edit=True, selectCommand='pass')
// 错误: line 1: 找不到过程“pass”
黏贴到maya脚本编辑器
from pymel.core import *
maya.mel.eval('outlinerEditor -edit -selectCommand "" "outlinerPanel1";')