Go to: Synopsis. Return value. Flags. Python examples.
quit([abort=boolean], [exitCode=uint], [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.None
In query mode, return type is based on queried flag.
| Long name (short name) | argument types | Properties | ||
|---|---|---|---|---|
force(f)
|
boolean
|
|
||
|
||||
exitCode(ec)
|
uint
|
|
||
|
||||
abort(a)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds cmds.quit() cmds.quit(force=True)