Go to: Synopsis. Return value. Flags. MEL examples.
savePrefs [-colors] [-file string] [-general] [-hotkeys] [-menuSets] [-plugins] [-uiLayout]
savePrefs is undoable, NOT queryable, and NOT editable.
This command saves preferences to disk. If no flags are specified
then all pref types get saved out.
None
colors, file, general, hotkeys, menuSets, plugins, uiLayout
Long name (short name) |
Argument types |
Properties |
|
-colors(-c)
|
|
|
|
Save the color prefs to disk
|
|
-file(-f)
|
string
|
|
|
Save a specific preference file. Used to save preferences that
are using optionVar -prefFile to save items to a different file.
|
|
-general(-g)
|
|
|
|
Save the general prefs to disk (optionVars)
|
|
-hotkeys(-hk)
|
|
|
|
-menuSets(-ms)
|
|
|
|
Save the menuSet preferences to disk
|
|
-plugins(-pl)
|
|
|
|
Save the plug-in prefs to disk
|
|
-uiLayout(-ui)
|
|
|
|
Save each window's size and position to disk
|
|
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.
|
// only save the hotkeys
savePrefs -hotkeys;
// save everything
savePrefs;
// only save ui layout prefs
savePrefs -uiLayout;