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

Synopsis

redo()

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

redo is undoable, NOT queryable, and NOT editable.

Takes the most recently undone command from the undo list and redoes it.

Return value

None

Related

flushUndo, undo, undoInfo

Python examples

import maya.cmds as cmds

# In this particular example, each line needs to be executed
# separately one after the other. Executing lines separately
# guaranties that commands are properly registered in the undo
# stack.

cmds.polyCube()
# Result: [u'pCube1', u'polyCube1'] #

cmds.undo()
# Undo: cmds.polyCube()
 #

cmds.redo()
# Redo: cmds.polyCube()
 #
# Result: [u'pCube1', u'polyCube1'] #