Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

suitePrefs [-applyToSuite string] [-installedAsSuite] [-isCompleteSuite]

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).

Return value

None

Flags

applyToSuite, installedAsSuite, isCompleteSuite
Long name (short name) Argument types Properties
-applyToSuite(-ats) string create
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) create
Returns true if Maya is part of a Suites install, false otherwise.
-isCompleteSuite(-ics) create
Returns true if the Suites install contains all Entertainment Creation Suite products, false otherwise.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Check if Maya is part of a Suites install
if(`suitePrefs -q -installedAsSuite`) {
        // Check whether Maya mouse and keyboard interaction
        // has been applied to the Suite.
        if(!`suitePrefs -q -applyToSuite`) {
                // Apply Maya mouse and keyboard interaction to
                // the Suite.
                suitePrefs -applyToSuite 1;
        }
}