前言
maya mel 自身定义了很多有用的方法,当我们用 pymel 开发的时候,不想重新写一遍 mel 已经有的功能,那么就可以在 pymel 中运行 mel
import maya.mel as mel
melCmdStr = 'changeSelectMode -component;'
mel.eval(melCmdStr)