pymel.core.system.redo

static system.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()
# Result: [u'pCube1', u'polyCube1'] #
# Redo: pm.polyCube()
 #

Previous topic

pymel.core.system.recordAttr

Next topic

pymel.core.system.reference

Core

Core Modules

Other Modules

This Page