This command sets the mouse and keyboard interaction mode for Maya and other Suites applications (if Maya is part of a Suites install).
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
applyToSuite (ats) | unicode | ||
Apply the mouse and keyboard interaction settings for the given application to all applications in the Suite (if Maya is part of a Suites install). Valid values are “Maya”, “3dsMax”, or “undefined”, which signifies that each app is to use their own settings. |
|||
installedAsSuite (ias) | bool | ||
|
|||
isCompleteSuite (ics) | bool | ||
Returns true if the Suites install contains all Entertainment Creation Suite products, false otherwise.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.suitePrefs
Example:
import pymel.core as pm
import maya.cmds as cmds
# Check if Maya is part of a Suites install
isSuiteInstall = pm.suitePrefs(q=True, installedAsSuite=True)
if isSuiteInstall:
# Check whether Maya mouse and keyboard interaction
# has been applied to the Suite.
applyMayaToSuite = pm.suitePrefs(q=True, applyToSuite=True)
if applyMayaToSuite:
# Apply Maya mouse and keyboard interaction to
# the Suite.
pm.suitePrefs(applyToSuite=True)