Go to: Synopsis. Return value. Python examples.
saveViewportSettings()
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
saveViewportSettings is undoable, NOT queryable, and NOT editable.
This command causes all the 3d views to save their settings as optionVar's. This is called automatically by the system when Maya exits.None
import maya.cmds as cmds cmds.saveViewportSettings()