Go to: Synopsis. Flags. Return value. Related. Python examples.
undoInfo([infinity=boolean], [length=int], [query=boolean], [redoName=boolean], [redoQueueEmpty=boolean], [state=boolean], [stateWithoutFlush=boolean], [undoName=boolean], [undoQueueEmpty=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
undoInfo is undoable, queryable, and editable.
This command controls the undo/redo parameters.
infinity, length, query, redoName, redoQueueEmpty, state, stateWithoutFlush, undoName, undoQueueEmpty
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.
|
string
If querying undoName or redoName
int
If querying state, infinity, or length
flushUndo, redo, undo
import maya.cmds as cmds
# Turn undo on, with an infinite queue length
cmds.undoInfo( state=True, infinity=True )
# Turn undo on, with a queue length of 200
cmds.undoInfo( state=True, infinity=False, length=200 )
# Turn undo off
cmds.undoInfo( state=False )
# Query the queue length
cmds.undoInfo( q=True, length=True )
Return to Autodesk Index