This command controls the undo/redo parameters.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
closeChunk (cck) | bool | ||
Closes the chunk that was opened earlier by openChunk. Once close chunk is called, all undoable operations in the chunk will undo as a single undo operation. Use with CAUTION!! Improper use of this command can leave the undo queue in a bad state. |
|||
infinity (infinity) | bool | ||
|
|||
length (l) | int | ||
|
|||
openChunk (ock) | bool | ||
Opens a chunk so that all undoable operations after this call will fall into the newly opened chunk, until close chunk is called. Once close chunk is called, all undoable operations in the chunk will undo as a single undo operation. Use with CAUTION!! Improper use of this command can leave the undo queue in a bad state. |
|||
printQueue (pq) | bool | ||
|
|||
redoName (rn) | unicode | ||
|
|||
redoQueueEmpty (rqe) | bool | ||
|
|||
state (st) | bool | ||
|
|||
stateWithoutFlush (swf) | bool | ||
|
|||
undoName (un) | unicode | ||
|
|||
undoQueueEmpty (uqe) | bool | ||
|
Derived from mel command maya.cmds.undoInfo
Example:
import pymel.core as pm
# Turn undo on, with an infinite queue length
pm.undoInfo( state=True, infinity=True )
# Turn undo on, with a queue length of 200
pm.undoInfo( state=True, infinity=False, length=200 )
# Turn undo off
pm.undoInfo( state=False )
# Query the queue length
pm.undoInfo( q=True, length=True )
# Result: 200 #