pymel.core.general.suitePrefs¶
- suitePrefs(*args, **kwargs)¶
This command sets the mouse and keyboard interaction mode for Maya and other Suites applications (if Maya is part of a Suites install).
Flags:
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 Returns true if Maya is part of a Suites install, false otherwise. isCompleteSuite / ics bool Returns true if the Suites install contains all Entertainment Creation Suite products, false otherwise. Flag 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)