Go to: Synopsis. Return value. Python examples.
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
saveToolSettings is undoable, NOT queryable, and NOT editable.This command causes all the tools not on the shelf to save their settings as optionVars. This is called automatically by the system when Maya exits.
import maya.cmds as cmds cmds.saveToolSettings()