---
title: "Undo and Redo HSL commands"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737620/Undo%20and%20Redo%20HSL%20commands"
format: markdown
---
You can use the undo and/or redo commands to return your scene file to its state immediately prior to the most recent command that affected data or keys.

By default, Shogun Post maintains a history stack of 20 operations. You can undo/redo a single step or by a specified number of operations up to 20. (To change this number, in the **Preferences** dialog box, click the **Misc** tab and alter the settings in the **Undo/Redo** section.)

Note that Shogun Post records only changes to data in its history stack; it does not record changes to the user interface or selected objects. Since such changes do not affect keys or data, they cannot generally be undone/redone because they have not changed any information.

For example, these commands can be undone because data changed:

- `delete;`
- `loadfile jump.hdf;`

However, these commands cannot be undone because no data changed:

- `select LHDF;`
- `selectProperty Translation;`

For further details, see [undo](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737294), [redo](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736782), and [undoConsolidated](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737610).