Pop Undo Stack
undoRevert the current Cinema 4D document to a previous state by undoing a specified number of steps. Returns the number actually performed, so you know when fewer were available.
Instructions
Pop up to steps entries off the active document's undo stack via doc.DoUndo. Stops early if the stack empties. Returns steps_performed so callers can tell when fewer steps were available than requested. Default: 1 step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Number of undo steps to perform (default 1). |