pymel.core.windows.savePrefs

savePrefs(*args, **kwargs)

This command saves preferences to disk. If no flags are specified then all pref types get saved out.

Flags:

Long Name / Short Name Argument Types Properties
colors / c bool ../../../_images/create.gif
  Save the color prefs to disk
general / g bool ../../../_images/create.gif
  Save the general prefs to disk (optionVars)
hotkeys / hk bool ../../../_images/create.gif
  Save the hotkeys to disk
menuSets / ms bool ../../../_images/create.gif
  Save the menuSet preferences to disk
plugins / pl bool ../../../_images/create.gif
  Save the plug-in prefs to disk
uiLayout / ui bool ../../../_images/create.gif
  Save each window’s size and position to disk Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.savePrefs

Example:

import pymel.core as pm

# only save the hotkeys
pm.savePrefs( hotkeys=True )

# save everything
pm.savePrefs()

# only save ui layout prefs
pm.savePrefs( uiLayout=True )