Pop Undo Stack
undoRevert recent changes in the active Cinema 4D document by popping up to the requested number of entries from the undo stack, stopping when empty. Returns steps_performed to signal when fewer steps 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). |