Your Ad Here

Go to: Synopsis. Flags. Return value. Python examples.

Synopsis

quit([abort=boolean], [exitCode=boolean], [force=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

quit is undoable, queryable, and editable.

This command is used to exit the application.

Flags

abort, exitCode, force
Long name (short name) [argument types] Properties
force(f) boolean create
If specified, this flag will force a quit without saving or prompting for saving changes. Use at your own risk.
exitCode(ec) boolean create
Specifies the exit code to be returned once the application exits. The default exit code is 0.
abort(a) boolean create
Will quit without saving like -force, but will also prevent preferences/hotkeys/colors from being saved. Use at your own risk.

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.

Return value


none

Python examples

import maya.cmds as cmds

cmds.quit()
cmds.quit(force=True)

  

Return to Autodesk Index


Your Ad Here