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 Save the color prefs to disk general / g bool Save the general prefs to disk (optionVars) hotkeys / hk bool Save the hotkeys to disk menuSets / ms bool plugins / pl bool Save the plug-in prefs to disk uiLayout / ui bool 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 )