Namespace CommandHistory

Accessor to the global command history.

Provides static methods to redo and undo commands.

Name Description
Methods
clear Removes commands in the command history
redo Redoes the last depth commands.
undo Undoes the last depth commands.

Functions

clear

Removes commands in the command history, either all commands, or only the commands applied to a specific layer.

Parameters

Name Type Description
layer Layer (optional) the reference layer. Only commands applied to this layer are remove. Default if missing: all commands are removed.

redo

Redoes the last depth commands.

Parameters

Name Type Description
depth number (optional) the number of commands to be redone. Default if missing: 1

undo

Undoes the last depth commands.

Parameters

Name Type Description
depth number (optional) the number of commands to be undone. Default if missing: 1