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

Synopsis

crashInfo([crashFile=boolean], [crashLog=boolean], [savedBeforeCrash=boolean])

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

crashInfo is undoable, queryable, and NOT editable.

Provides an interface to the crash file information.

Return value

None

In query mode, return type is based on queried flag.

Related

file, workspace

Flags

crashFile, crashLog, savedBeforeCrash
Long name (short name) Argument types Properties
crashFile(cf) boolean query
Return the crash file full path name.
crashLog(cl) boolean query
Return the crash log full path name.
savedBeforeCrash(sbc) boolean query
Return the saved file full path name before crash.

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.

Python examples

import maya.cmds as cmds

# query the crash file full path name
#
cmds.crashInfo( q = True, cf = True)
# Result: C:/Users/maya/AppData/Local/Temp/maya.20160413.2009.ma #

# query the crash log full path name
#
cmds.crashInfo( q = True, cl = True)
# Result: C:/Users/maya/AppData/Local/Temp/maya.20160413.2009.log #

# query the saved file full path name before crash
#
cmds.crashInfo( q = True, sbc = True)
# Result: C:/Users/maya/Documents/maya/projects/default/scenes/test.mb #