方法 maya doMenuComponentSelection

method maya doMenuComponentSelection

我想知道在哪里可以找到 doMenuComponentSelection() 方法的源代码。谢谢

我搜索了 Maya 文件,但没有找到。我只是想看看这个方法的来源

我在 github、https://github.com/elrond79/mayaSettings/blob/master/2009-x64/zooScripts/dagMenuProc.mel#L977

上找到了方法
global proc doMenuComponentSelection(string $item, string $mask)
//
// Changes the selection/display state on this object to allow
// selection of the specified selection mask type.
{
    string $selectCmd;

    if (`selectMode -q -object`) {
        hilite $item;
        selectType -ocm -alc false;
        $selectCmd = "selectType -ocm -" + $mask + " true;";
    } else {
        selectType -ocm -alc false;
        $selectCmd = "selectType -" + $mask + " true;";
        if (!`selectMode -q -preset`) {
            $selectCmd = $selectCmd + "hilite " + $item + ";";
        }
    }
    eval $selectCmd;
}