Skip to content
AlphaToolBox3D is in early alpha: features are incomplete and things can break. Use it at your own risk and keep copies of your files. Report a problem
ToolBox3D

Docs · Python API

tb.ops.history

5 operations. Without targets=, an operation works on the current selection, like its button in the editor.

History Example

tb.ops.history.example() -> Result

Show an example using registered history controls and the public atomic batch API.

  • Operation history.example
  • In Previewer, Model, Control Rig, Animation, Texture Paint

History Help

tb.ops.history.help() -> Result

Describe per-editor undo, redo, batches, previews and Repeat semantics.

  • Operation history.help
  • In Previewer, Model, Control Rig, Animation, Texture Paint

Redo

tb.ops.history.redo() -> Result

Redo the active editor's next completed action. New authoring replaces the redo branch.

  • Operation history.redo
  • In Previewer, Model, Control Rig, Animation, Texture Paint

Repeat Last Action

tb.ops.history.repeat_last(
    *,
    context: Any = ...,
    prepare: bool = False,
    projection: Literal["universal", "model_authoring"] = "universal",
) -> Result

Run the newest action's raw arguments through the operation registry against today's selection and lane. Unsupported newest actions displace older repeatable work.

  • Operation history.repeat_last
  • In Previewer, Model, Control Rig, Animation, Texture Paint
ArgumentTypeDefaultDescription
contextAny—Explicit stamped replay context from Api::repeat_context and the authoritative editor snapshot.
prepareboolFalsePrepare the validated current invocation for a host's existing background tool; no authoring occurs until that tool dispatches the operation.
projectionLiteral["universal", "model_authoring"]"universal"Projection (universal / model_authoring).

Undo

tb.ops.history.undo() -> Result

Undo the active editor's newest completed action. Interactive tools retain their own undo boundary; an open popup or group may refuse this control.

  • Operation history.undo
  • In Previewer, Model, Control Rig, Animation, Texture Paint