setMenuMode [string]
setMenuMode は、取り消し不可能、照会不可能、および編集不可能です。
オプションで、Maya のメイン ウィンドウのメニュー バーに新しいメニュー モードを設定します。現在のメニュー モードを返します。新しいメニュー モードを指定した場合は、前のメニュー モードを返します。Maya 8.0 以降、メニュー セットのアーキテクチャが変更され、この関数はメニュー セットをラベルとしてではなく、パラメータとして取るようになりました。| string | Maya のメイン ウィンドウにあるメニュー バーの、現在のメニュー モードです |
// Use the "Rendering" Menu Set, and at the same time get the one currently used. string $prevMenuMode = `setMenuMode renderingMenuSet`; // Print the current Menu Set: "renderingMenuSet". print `setMenuMode`;