Python 方法maya doMenuComponentSelection

Python 方法maya doMenuComponentSelection,python,methods,components,selection,mel,Python,Methods,Components,Selection,Mel,我想知道在哪里可以找到doMenuComponentSelection()方法的源代码。多谢各位 我搜索了Maya文件,但找不到它们。我只是想看看这个方法的来源。我在github上找到了这个方法 不客气。如果这个答案有用,请接受:)对不起。我还有一个问题。可以访问selectType之类的方法吗?用任何书面语言。谢谢 global proc doMenuComponentSelection(string $item, string $mask) // // Changes the selecti

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


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

我在github上找到了这个方法


不客气。如果这个答案有用,请接受:)对不起。我还有一个问题。可以访问selectType之类的方法吗?用任何书面语言。谢谢
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;
}