---
title: "undo"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737294/undo"
format: markdown
---
# Description

Enables you to return your scene file to its state immediately prior to a single previous operation, or many recent operations.

Undo is a staple command of virtually all computer software. Shogun Post maintains a history stack of 20 operations, and enables you to undo in one step an optional [nLevels] number of those operations.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `undo [depth][-enable] [-disable]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `depth` |  | No | Specifies the number of previous operations to undo in one step |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `enable` | 0 | — | disable | — |
| `disable` | 0 | — | enable | — |

## Return value

void

> Macro (16dcb1b2-c6fb-4c23-a096-38455b87e6a8/1fa5e51a-a28e-46e1-9b5c-734b339f025f/static/scroll-pagebreak)

## Examples

```plaintext
undo; //undo the previous operation
undo 6; // undo the previous 6 operations.
```

# Additional information

## Related commands

- [bakeData](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736945)
- [redo](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736782)
- [undoConsolidated](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737610)