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  
   
plugins (pl) bool ../../../_images/create.gif
 
Save the plug-in prefs to diskFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
uiLayout (ui) bool ../../../_images/create.gif
 
Save each window’s size and position to disk

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 )

Previous topic

pymel.core.windows.savePrefObjects

Next topic

pymel.core.windows.saveShelf

Core

Core Modules

Other Modules

This Page