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

Synopsis

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.

Return value

None

Flags

colors, file, general, hotkeys, menuSets, plugins, uiLayout
Long name (short name) Argument types Properties
-colors(-c) create
Save the color prefs to disk
-file(-f)
2023
string create
Save a specific preference file. Used to save preferences that are using optionVar -prefFile to save items to a different file.
-general(-g) create
Save the general prefs to disk (optionVars)
-hotkeys(-hk) create
Save the hotkeys to disk
-menuSets(-ms) create
Save the menuSet preferences to disk
-plugins(-pl) create
Save the plug-in prefs to disk
-uiLayout(-ui) create
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.

MEL examples

// only save the hotkeys
savePrefs -hotkeys;

// save everything
savePrefs;

// only save ui layout prefs
savePrefs -uiLayout;