History Example
tb.ops.history.example() -> ResultShow an example using registered history controls and the public atomic batch API.
Docs · Python API
tb.ops.history5 operations. Without targets=, an operation works on the current selection, like its button in the editor.
tb.ops.history.example() -> ResultShow an example using registered history controls and the public atomic batch API.
tb.ops.history.help() -> ResultDescribe per-editor undo, redo, batches, previews and Repeat semantics.
tb.ops.history.redo() -> ResultRedo the active editor's next completed action. New authoring replaces the redo branch.
tb.ops.history.repeat_last(
*,
context: Any = ...,
prepare: bool = False,
projection: Literal["universal", "model_authoring"] = "universal",
) -> ResultRun the newest action's raw arguments through the operation registry against today's selection and lane. Unsupported newest actions displace older repeatable work.
| Argument | Type | Default | Description |
|---|---|---|---|
context | Any | — | Explicit stamped replay context from Api::repeat_context and the authoritative editor snapshot. |
prepare | bool | False | Prepare the validated current invocation for a host's existing background tool; no authoring occurs until that tool dispatches the operation. |
projection | Literal["universal", "model_authoring"] | "universal" | Projection (universal / model_authoring). |
tb.ops.history.undo() -> ResultUndo the active editor's newest completed action. Interactive tools retain their own undo boundary; an open popup or group may refuse this control.