Go to: Synopsis. Return value. Flags. Python examples.
savePrefs([colors=boolean], [file=string], [general=boolean], [hotkeys=boolean], [menuSets=boolean], [plugins=boolean], [uiLayout=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
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
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 have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
# only save the hotkeys
cmds.savePrefs( hotkeys=True )
# save everything
cmds.savePrefs()
# only save ui layout prefs
cmds.savePrefs( uiLayout=True )