pymel.core.system.redo

redo(*args, **kwargs)

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

Derived from mel command maya.cmds.redo

Example:

import pymel.core as pm

# 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.

pm.polyCube()
# Result: [nt.Transform(u'pCube1'), nt.PolyCube(u'polyCube1')] #

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

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

Previous topic

pymel.core.system.recordAttr

Next topic

pymel.core.system.reference

Core

Core Modules

Other Modules

This Page