Go to: Synopsis. Return value. Related. Flags. Python examples.
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.None
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
crashFile(cf)
|
boolean
|
|||
|
||||
crashLog(cl)
|
boolean
|
|||
|
||||
savedBeforeCrash(sbc)
|
boolean
|
|||
|
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. |
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 #