ジャンプ先: 概要. 戻り値. フラグ. Python 例.
suitePrefs([applyToSuite=string], [installedAsSuite=boolean], [isCompleteSuite=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
suitePrefs は、取り消し可能、照会不可能、および 編集不可能 です。
このコマンドは、Maya およびその他の Suites アプリケーション(Maya が Suites インストールの一部の場合)のマウスとキーボードのインタラクション モードを設定します。なし
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
applyToSuite(ats)
|
string
|
|
||
|
||||
installedAsSuite(ias)
|
boolean
|
|
||
|
||||
isCompleteSuite(ics)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds
import maya.cmds as cmds
# Check if Maya is part of a Suites install
isSuiteInstall = cmds.suitePrefs(q=True, installedAsSuite=True)
if isSuiteInstall:
# Check whether Maya mouse and keyboard interaction
# has been applied to the Suite.
applyMayaToSuite = cmds.suitePrefs(q=True, applyToSuite=True)
if applyMayaToSuite:
# Apply Maya mouse and keyboard interaction to
# the Suite.
cmds.suitePrefs(applyToSuite=True)