Go to: Synopsis. Return value. Flags. Python examples.
suitePrefs([applyToSuite=string], [installedAsSuite=boolean], [isCompleteSuite=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
suitePrefs is undoable, NOT queryable, and NOT editable.
This command sets the mouse and keyboard interaction mode for Maya and other Suites applications (if Maya is part of a Suites install).None
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
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)