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.animation

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

Bake Adjust Layer

tb.ops.animation.adjust_bake(
    *,
    clip: str = ...,
    keep: bool = True,
    tolerance: float = 0.01,
) -> Result

Bake the Adjust layer's result into bone keys. Keep editable (default): the solved pose goes on a new override layer on top and the offset layers are muted (unmute and delete it to edit again). Merge: the whole layer stack is flattened into BaseAnimation and the Adjust rig removed. Keys are simplified within the tolerance.

  • Operation animation.adjust_bake
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keepboolTrueKeep.
tolerancefloat0.01Key reduction tolerance (scene units / degrees; 0 keeps every frame). (0…10).

Set Adjust Effector

tb.ops.animation.adjust_effector_set(
    *,
    clip: str = ...,
    effector: str,
    enabled: bool = ...,
    weight: float = ...,
    reach: float = ...,
    space: Literal["heading", "body", "world", "ground", "limb"] = ...,
    pull: float = ...,
    hard_pull: float = ...,
    hard_pull_falloff: float = ...,
    hard_pull_limit: float = ...,
    keep_end: float = ...,
    parent_translate: float = ...,
    chain_mode: Literal["ik", "fk"] = ...,
) -> Result

Enable or disable an Adjust effector and set its default strength, reach (0 = follows the body, 1 = holds in place), offset space, its own goal settings on the layer (Pull, Hard Pull, Hard Pull Falloff, Hard Pull Limit, Keep End, Parent Translate; unset ones play the body rig's) and its chain's Mode (FK leaves the chain as the clip plays it).

  • Operation animation.adjust_effector_set
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
effectorstrrequiredEffector key, name or id.
enabledbool—Enabled.
weightfloat—Weight (factor; 0…1).
reachfloat—Reach (factor; 0…1).
spaceLiteral["heading", "body", "world", "ground", "limb"]—Space (heading / body / world / ground / limb).
pullfloat—Pull (factor; 0…1).
hard_pullfloat—Hard Pull (factor; 0…1).
hard_pull_fallofffloat—Hard Pull Falloff (factor; 0…1).
hard_pull_limitfloat—The most Hard Pull moves the body for this goal (0: no limit). (scene units; 0…1000000).
keep_endfloat—Keep End (factor; 0…1).
parent_translatefloat—Parent Translate (0…1).
chain_modeLiteral["ik", "fk"]—Chain Mode (ik / fk).

Mirror Adjust Offsets

tb.ops.animation.adjust_offset_mirror(
    *,
    clip: str = ...,
    mode: Literal["swap", "leftToRight", "rightToLeft"] = "swap",
) -> Result

Mirror Adjust offsets between left and right effectors across the character's mirror plane: swap both sides, or copy one side onto the other.

  • Operation animation.adjust_offset_mirror
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
modeLiteral["swap", "leftToRight", "rightToLeft"]"swap"Mode (swap / leftToRight / rightToLeft).

Reset Adjust Offsets

tb.ops.animation.adjust_offset_reset(
    *,
    clip: str = ...,
    effectors: Any = ...,
    frame: float = ...,
) -> Result

Zero the offsets of Adjust effectors: keyed to zero at one frame, or every offset key removed when no frame is given.

  • Operation animation.adjust_offset_reset
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
effectorsAny—Effector keys, names or ids (default: every effector).
framefloat—Frame to key zero at (default: remove every offset key).

Add Adjust Layer

tb.ops.animation.adjust_rig_add(
    *,
    clip: str = ...,
    ground: Sequence[ObjectRef] = ...,
) -> Result

Add a relative full-body IK Adjust rig to a skeleton clip: one effector per characterized body part (hips, chest, head, hands, feet, knees, tail …) and a 'Retarget Adjust' additive layer to key their offsets on. Offsets follow the clip (they survive re-retargeting); planted feet hold; zero offsets change nothing.

  • Operation animation.adjust_rig_add
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
groundSequence[ObjectRef]—Mesh objects the character stands on (stairs, rocks, terrain): moved feet follow them. Empty = the flat floor.

Remove Adjust Layer

tb.ops.animation.adjust_rig_remove(*, clip: str = ...) -> Result

Remove a clip's Adjust rig, every effector curve and its layer (other keys on that layer move to BaseAnimation).

  • Operation animation.adjust_rig_remove
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).

Apply World Space

tb.ops.animation.apply_world(
    *,
    clip: str = ...,
    buffer: Any,
    map: Any = ...,
    offset: float = 0.0,
    channels: Any = ...,
) -> Result

Re-bake controls onto a world-space buffer from animation.capture_world: each buffered control (or the one 'map' sends it to) is placed at the recorded world on the recorded frames + 'offset', whatever its current space or IK/FK state (animBot Paste World Space, mGear Space Recorder apply). Channels default to translate + rotate. One undo step.

  • Operation animation.apply_world
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
bufferAnyrequiredThe capture_world result.
mapAny—{ buffered name: control name } (default: the same names).
offsetfloat0.0Offset (frames).
channelsAny—{t, r, s} (default translate + rotate).

Bake Between

tb.ops.animation.bake_between(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    frame_step: int = 1,
    frame: float,
) -> Result

Fill the gap around 'frame' (between the neighbouring keys) with keys every 'frameStep' frames.

  • Operation animation.bake_between
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
frame_stepint1Frame Step (1…10000).
framefloatrequiredFrame inside the gap. (frames).

Bake Animation to Skeleton

tb.ops.animation.bake_composite(*, clip: str = ...) -> Result

Create a self-contained skeleton clip of what a clip plays: layered skeleton clips are flattened exactly, plain ones copied, control-rig clips are baked through the rig (every frame; see animation.bake_to_skeleton for range, step and simplify).

  • Operation animation.bake_composite
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).

Bake Space

tb.ops.animation.bake_control_space(
    *,
    clip: str = ...,
    controls: Any = ...,
    target_space: str = ...,
    orient_space: str = ...,
    preset: Literal["world", "parent"] = ...,
    frame_range: Any = ...,
    frame_step: int = 1,
    density: Literal["everyFrame", "onExistingKeys"] = "everyFrame",
    channels: Any = ...,
    maintain_visual: bool = True,
    euler_filter: bool = True,
    staged: str = ...,
) -> Result

Re-express controls' animation in another parent space over a frame range, keeping the world motion: every 'frameStep' frames or on existing keys; maintainVisual false snaps the controls onto the space instead. The space is keyed stepped over the range and restored after it. Warnings report shear, mirrored sources, locked channels and partial channel masks.

  • Operation animation.bake_control_space
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlsAny—Control names (default: selected controls).
target_spacestr—Destination space label or index (or pass 'preset').
orient_spacestr—Instead of 'targetSpace': the space a control with split spaces turns with (its orient switch is baked).
presetLiteral["world", "parent"]—Instead of 'targetSpace': Convert to World / Rebase to Parent (each control to its World / first non-World space; default controls: the selection, else every space-switchable control). (world / parent).
frame_rangeAny—[start, end] (default: the whole clip).
frame_stepint1Frame Step (frames; 1…10000).
densityLiteral["everyFrame", "onExistingKeys"]"everyFrame"Density (everyFrame / onExistingKeys).
channelsAny—{t, r, s} (default translate + rotate).
maintain_visualboolTrueMaintain Visual.
euler_filterboolTrueEuler Filter.
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Bake Animation

tb.ops.animation.bake_curves(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    frame_step: int = 1,
    range: Any = ...,
) -> Result

Key every 'frameStep' frames over each curve's key range, or over 'range' (keys outside the range stay).

  • Operation animation.bake_curves
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
frame_stepint1Frame Step (frames; 1…10000).
rangeAny—[startFrame, endFrame] (timeline mode).

Bake Infinity

tb.ops.animation.bake_infinity(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    frame_step: int = 1,
    range: Any,
) -> Result

Sample non-constant pre/post infinity inside the playback 'range' into keys and set infinity to constant.

  • Operation animation.bake_infinity
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
frame_stepint1Frame Step (1…10000).
rangeAnyrequiredPlayback range [start, end] in frames.

Bake to Control Rig

tb.ops.animation.bake_to_control_rig(
    *,
    clip: str = "",
    rig: str = "",
    control_options: Any = ...,
) -> Result

Put a skeleton clip of this character onto its built control rig through the control → joint offset map (control world = joint world · inv(joint bind) · control bind, closed loop): no retarget solve. Each limb is keyed IK, FK or IK + FK (controlOptions); the result is checked by replaying it on the rig. One undo step.

  • Operation animation.bake_to_control_rig
  • In Animation
ArgumentTypeDefaultDescription
clipstr""Skeleton clip id or name (may be omitted with exactly one clip).
rigstr""Token of a staged built rig (tb_api::stage_target_rig); empty = the document's own control rig.
control_optionsAny—ControlBakeOptions.

Bake to Skeleton

tb.ops.animation.bake_to_skeleton(
    *,
    clip: str = ...,
    all: bool = False,
    step: int = 1,
    range: Any = ...,
    simplify: bool = False,
    rotation_tolerance: float = 0.05,
    translation_tolerance: float = 0.0,
    name: str = ...,
    start_at_zero: bool = False,
    staged: str = ...,
) -> Result

Bake control-rig clips to self-contained skeleton clips for export (Auto-Rig Pro Bake Animations): the rig drives the deform joints every 'step' frames over 'range' (default the whole clip); 'simplify' removes keys within rotationTolerance degrees / translationTolerance units (0 = 0.01 % of the character's size). all = every control-rig clip. The source clips are kept.

  • Operation animation.bake_to_skeleton
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
allboolFalseBake every control-rig clip.
stepint1Step (frames; 1…100).
rangeAny—[start, end] (default: the whole clip).
simplifyboolFalseSimplify.
rotation_tolerancefloat0.05Degrees. (0…10).
translation_tolerancefloat0.0Scene units (0 = 0.01 % of the character's size). (0…1000000).
namestr—Name of the baked clip (single clip).
start_at_zeroboolFalseShift the baked clip so its first baked frame is frame 0, as game engines expect.
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Add Time Bookmark

tb.ops.animation.bookmark.add(
    *,
    clip: str = ...,
    start: float,
    end: float = ...,
    label: str = "",
    color: str = ...,
) -> Result

Add a Time Bookmark to a clip: a frame or a [start, end] range with a label and a color ('#rrggbb' or a palette index 0–29). Returns its id.

  • Operation animation.bookmark.add
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
startfloatrequiredStart (frames).
endfloat—Default: start (a one-frame bookmark). (frames).
labelstr""Label.
colorstr—'#rrggbb' or a palette index (0–29).

Remove Time Bookmark

tb.ops.animation.bookmark.remove(
    *,
    clip: str = ...,
    bookmark: str = ...,
    frame: float = ...,
    all: bool = False,
) -> Result

Remove a Time Bookmark (by id or label, else the one under 'frame'); 'all' removes every bookmark of the clip.

  • Operation animation.bookmark.remove
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
bookmarkstr—Bookmark.
framefloat—Remove the bookmark under this frame. (frames).
allboolFalseAll.

Edit Time Bookmark

tb.ops.animation.bookmark.update(
    *,
    clip: str = ...,
    bookmark: str = ...,
    frame: float = ...,
    start: float = ...,
    end: float = ...,
    offset: float = ...,
    label: str = ...,
    color: str = ...,
    drag: str = ...,
) -> Result

Edit a Time Bookmark (by id or label, else the one under 'frame'): any of start, end, label, color; 'offset' moves it by frames.

  • Operation animation.bookmark.update
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
bookmarkstr—Bookmark.
framefloat—Find the bookmark under this frame. (frames).
startfloat—Start (frames).
endfloat—End (frames).
offsetfloat—Offset (frames).
labelstr—Label.
colorstr—Color.
dragstr—Drag.

Evaluate Cache

tb.ops.animation.cache.evaluate(
    *,
    clip: str = ...,
    frame: float,
    indices: Any = ...,
) -> Result

The positions a Vertex Animation clip shows at a frame: its base frame plus every visible cache layer, in the mesh's own space. Read-only.

  • Operation animation.cache.evaluate
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloatrequiredFrame (frames).
indicesAny—Vertex indices to return (default: every vertex).

Copy Cache Key

tb.ops.animation.cache.key.copy(*, clip: str = ..., key: str, to: float) -> Result

Copy a sculpt key to another frame of its layer: the same offsets (in the same space), fades and fade shape. Refused when the layer already has a key there. Auto Blend re-fades the layer. One undo step.

  • Operation animation.cache.key.copy
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keystrrequiredKey id.
tofloatrequiredTo (frames).

Erase Cache Fix

tb.ops.animation.cache.key.erase(
    *,
    clip: str = ...,
    layer: str = ...,
    frame: float,
    indices: Any,
    amounts: Any,
) -> Result

Erase a sculpt layer's fix at vertices: every key of the layer acting at the frame keeps (1 − amount) of its offset there, so 1 removes the fix and the surface returns to the layer's input. One undo step; an Erase brush stroke coalesces into one.

  • Operation animation.cache.key.erase
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstr—Layer id or name (default: the top sculpt layer).
framefloatrequiredFrame (frames).
indicesAnyrequiredVertex indices.
amountsAnyrequiredHow much to erase per index, 0 to 1.

Set Cache Key Fades

tb.ops.animation.cache.key.fade(
    *,
    clip: str = ...,
    key: str,
    fade_in: float = ...,
    fade_out: float = ...,
    shape: Literal["ease", "linear", "custom"] = ...,
    custom_a: float = ...,
    custom_b: float = ...,
    auto: bool = ...,
) -> Result

Set how many frames a sculpt key fades in before and out after its full part (0 holds that side at full weight) and their shape; the full part stays where it is. Omitted values are kept. Setting fades by hand takes the key out of its layer's Auto Blend; auto = true (Reset Fades) gives it back. One undo step; a timeline drag coalesces into one.

  • Operation animation.cache.key.fade
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keystrrequiredKey id.
fade_infloat—Fade In (frames; 0…10000).
fade_outfloat—Fade Out (frames; 0…10000).
shapeLiteral["ease", "linear", "custom"]—The fades' shape (default: kept). Custom is a Bézier ramp with control values customA and customB. (ease / linear / custom).
custom_afloat—Custom shape: the ramp's first control value (0 eases out of 0). (0…1).
custom_bfloat—Custom shape: the ramp's second control value (1 eases into 1). (0…1).
autobool—true: Reset Fades (Auto Blend sets them again).

Hold Cache Key

tb.ops.animation.cache.key.hold(
    *,
    clip: str = ...,
    key: str,
    start: float,
    end: float,
) -> Result

Set the frames a sculpt key holds at full weight: from start to end (they must contain the key's frame); its fades stay around the hold. Auto Blend re-fades the layer. One undo step.

  • Operation animation.cache.key.hold
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keystrrequiredKey id.
startfloatrequiredStart (frames).
endfloatrequiredEnd (frames).

Move Cache Key

tb.ops.animation.cache.key.move(*, clip: str = ..., key: str, frame: float) -> Result

Move a sculpt key to another frame with its blend curve (its block in the Cache timeline keeps its fades). Refused when its layer already has a key on that frame. One undo step; a timeline drag coalesces into one.

  • Operation animation.cache.key.move
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keystrrequiredKey id.
framefloatrequiredFrame (frames).

Delete Cache Key

tb.ops.animation.cache.key.remove(*, clip: str = ..., key: str) -> Result

Delete a sculpt key and its blend curve.

  • Operation animation.cache.key.remove
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keystrrequiredKey id.

Set Cache Key

tb.ops.animation.cache.key.set(
    *,
    clip: str = ...,
    layer: str = ...,
    frame: float,
    indices: Any,
    offsets: Any,
    space: Literal["surface", "object"] = "surface",
    fade_in: float = 8.0,
    fade_out: float = 8.0,
) -> Result

Add sculpt offsets at a frame of a Vertex Animation clip: 'offsets' are in the mesh's own space as the frame shows it. They go into the layer's key at that frame (created with a blend curve that fades in and out over fadeIn / fadeOut frames when missing). Surface keys follow the deforming surface; object keys do not turn with it.

  • Operation animation.cache.key.set
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstr—Layer id or name (default: the top sculpt layer, created when the stack is empty).
framefloatrequiredFrame (frames).
indicesAnyrequiredVertex indices.
offsetsAnyrequiredOne [x, y, z] offset per index.
spaceLiteral["surface", "object"]"surface"Space (surface / object).
fade_infloat8.0Fade In (frames; 0…10000).
fade_outfloat8.0Fade Out (frames; 0…10000).

Split Cache Key

tb.ops.animation.cache.key.split(*, clip: str = ..., key: str, at: float) -> Result

Split a sculpt key inside its hold into two keys with the same fix: the first holds up to the frame before, the second from the frame on, cross-fading over that frame, so the clip plays as before and each half can be retimed or re-faded on its own. One undo step.

  • Operation animation.cache.key.split
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keystrrequiredKey id.
atfloatrequiredAt (frames).

Add Cache Layer

tb.ops.animation.cache.layer.add(
    *,
    clip: str = ...,
    kind: Literal["sculpt", "smooth", "deltaMush", "wrinkle", "restoreDetail", "timeSmooth"] = "sculpt",
    name: str = ...,
) -> Result

Add a layer on top of a Vertex Animation clip's cache stack (below Restore Detail, which stays on top). A Sculpt layer's keys hold sculpt fixes made at a frame that fade in and out over time; Smooth, Delta Mush and Wrinkle layers run that modifier over everything below them; Restore Detail is a Delta Mush layer that starts with an empty mask (paint it where the cache went soft); Smooth over Time sits at the bottom, reads the base cache and smooths jitter where its mask is painted. Adding Restore Detail or Smooth over Time when the clip has one returns it.

  • Operation animation.cache.layer.add
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
kindLiteral["sculpt", "smooth", "deltaMush", "wrinkle", "restoreDetail", "timeSmooth"]"sculpt"Kind (sculpt / smooth / deltaMush / wrinkle / restoreDetail / timeSmooth).
namestr—Layer name (default: Sculpt Layer N, or the modifier's name).

Delete Cache Layer

tb.ops.animation.cache.layer.remove(*, clip: str = ..., layer: str) -> Result

Delete a cache layer with its keys and their blend curves. The base cache is never changed.

  • Operation animation.cache.layer.remove
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer id or name.

Set Cache Layer

tb.ops.animation.cache.layer.set(
    *,
    clip: str = ...,
    layer: str,
    name: str = ...,
    visible: bool = ...,
    weight: float = ...,
    index: int = ...,
    auto_blend: bool = ...,
    follow_motion: bool = ...,
    by_pose: bool = ...,
    pose_tolerance: float = ...,
    settings: Any = ...,
    mask_interpolation: Literal["smooth", "linear", "hold"] = ...,
) -> Result

Rename, show or hide, weight or reorder a cache layer (index 0 is the bottom, just above the base cache).

  • Operation animation.cache.layer.set
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer id or name.
namestr—Name.
visiblebool—Visible.
weightfloat—Weight (0…2).
indexint—New position in the stack (0 = bottom).
auto_blendbool—Sculpt layers: each key's fades reach its neighbours (keys set by hand keep theirs).
follow_motionbool—Sculpt layers: Auto Blend times each fade by how far the key's vertices move in the base cache.
by_posebool—Sculpt layers: a key's weight at a frame is how close the shape under its vertices is to its frame's (its fades are not used).
pose_tolerancefloat—By pose: the relative change of the distances between a key's vertices at which its weight reaches 0 (default 0.15). (0.01…1).
settingsAny—Modifier layers: settings to change, e.g. {"iterations": 20}; Smooth over Time: {"radius": frames}.
mask_interpolationLiteral["smooth", "linear", "hold"]—How a keyed mask blends between its keys. (smooth / linear / hold).

Fill Cache Layer Mask

tb.ops.animation.cache.mask.fill(
    *,
    clip: str = ...,
    layer: str,
    mode: Literal["flood", "clear", "invert"],
    frame: float = ...,
) -> Result

Flood (the layer acts everywhere at full weight), Clear (nowhere) or Invert a layer's mask. With a frame it acts on the mask there (keyed like a brush stroke); without one on a mask that is not keyed. One undo step.

  • Operation animation.cache.mask.fill
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer id or name.
modeLiteral["flood", "clear", "invert"]requiredMode (flood / clear / invert).
framefloat—Frame (frames).

Move Cache Mask Key

tb.ops.animation.cache.mask.key.move(
    *,
    clip: str = ...,
    layer: str,
    frame: float,
    to: float,
) -> Result

Move a layer's mask key to another frame. Refused when the mask already has a key there. One undo step; a timeline drag coalesces into one.

  • Operation animation.cache.mask.key.move
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer id or name.
framefloatrequiredThe key's frame. (frames).
tofloatrequiredTo (frames).

Delete Cache Mask Key

tb.ops.animation.cache.mask.key.remove(
    *,
    clip: str = ...,
    layer: str,
    frame: float,
) -> Result

Delete a layer's mask key; the mask then blends between the keys either side. One undo step.

  • Operation animation.cache.mask.key.remove
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer id or name.
framefloatrequiredFrame (frames).

Set Cache Layer Mask

tb.ops.animation.cache.mask.set_weights(
    *,
    frame: float = ...,
    clip: str = ...,
    layer: str,
    indices: Any,
    values: Any,
) -> Result

Set the painted weights (0 to 1) of a layer's mask at vertices: where a modifier or Smooth over Time layer acts and how strongly (Restore Detail and Smooth over Time start empty; 0 removes a vertex). With a frame the mask is keyed there (made from the mask as it blends at that frame first, so painting never jumps) and blends between its keys over time; without one a mask that is not keyed is set for every frame. A modifier layer without a mask acts everywhere until one is painted. One undo step; a brush stroke coalesces into one.

  • Operation animation.cache.mask.set_weights
  • In Animation
ArgumentTypeDefaultDescription
framefloat—The frame to key the mask at (default: one mask for every frame). (frames).
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer id or name.
indicesAnyrequiredVertex indices.
valuesAnyrequiredOne weight per index, 0 to 1.

Sculpt Cache Frame

tb.ops.animation.cache.stroke(
    *,
    clip: str = ...,
    layer: str = ...,
    frame: float,
    brush_type: Literal["clay", "brush", "move", "drag", "smooth", "inflate", "nudge", "flatten", "planar", "crease", "pinch", "layer"] = "brush",
    points: Any,
    radius: float = ...,
    strength: float = 0.5,
    view_direction: Vec3Like = ...,
    sub: bool = False,
    smooth: bool = False,
    fade_in: float = 8.0,
    fade_out: float = 8.0,
    symmetry: bool = False,
) -> Result

Sculpt a frame of a Vertex Animation clip with a sculpt brush: the stroke runs on the frame as it shows (the base cache plus every visible layer) along mesh-space points, and what it moves goes into the layer's key at that frame (created with fadeIn / fadeOut frames of blend when missing). One undo step.

  • Operation animation.cache.stroke
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstr—Layer id or name (default: the top sculpt layer, created when there is none).
framefloatrequiredFrame (frames).
brush_typeLiteral["clay", "brush", "move", "drag", "smooth", "inflate", "nudge", "flatten", "planar", "crease", "pinch", "layer"]"brush"Brush Type (clay / brush / move / drag / smooth / inflate / nudge / flatten / planar / crease / pinch / layer).
pointsAnyrequired[[x, y, z], …] mesh-space points along the stroke.
radiusfloat—Brush radius in mesh units (default 5 % of the mesh size). (0.000001…1000000).
strengthfloat0.5Strength (0…1).
view_directionVec3Like—Direction the stroke is seen along (default: against the surface normal under the first point).
subboolFalseThe brush's inverse (Ctrl).
smoothboolFalseSmooth instead (Shift).
fade_infloat8.0Fade In (frames; 0…10000).
fade_outfloat8.0Fade Out (frames; 0…10000).
symmetryboolFalseMirror the stroke across X, matched on the mesh's rest shape (works on any pose).

Key Cage

tb.ops.animation.cage_keys(
    *,
    clip: str = ...,
    keys: Any,
    box: Any,
    cols: int = 1,
    rows: int = 1,
    grid: Any,
    snap: bool = False,
    drag: str = ...,
) -> Result

Deform keys with a cage (the Graph Editor and Dope Sheet Key Cage): 'box' [t0, t1, v0, v1] is the undeformed box around the keys, split into 'cols' × 'rows' cells; 'grid' lists the moved corner positions [[frame, value], …], (cols + 1) × (rows + 1), row by row from (t0, v0). Each key follows the bilinear blend of its cell's corners; tangent slopes follow the local stretch and shear; keys of one curve never swap order. A 1 × 1 cage kept rectangular is a region scale. Pinned keys stay. Pass a stable 'drag' id while dragging a handle: the steps coalesce into one undo step.

  • Operation animation.cage_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredKeys at their current positions.
boxAnyrequired[t0, t1, v0, v1]: frames t0 < t1, values v0 < v1.
colsint1Cells across time (1 … 64).
rowsint1Cells across value (1 … 64).
gridAnyrequiredMoved corners [[frame, value], …], (cols + 1) × (rows + 1), row by row from (t0, v0).
snapboolFalseRound the new times to whole frames.
dragstr—Gesture id for coalescing.

Capture World Space

tb.ops.animation.capture_world(
    *,
    clip: str = ...,
    controls: Any = ...,
    range: Any = ...,
    step: int = 1,
) -> Result

Record controls' world matrices (column-major, 16 numbers) on every 'step' frames of 'range' (default: the whole clip) — the buffer animation.apply_world re-bakes (animBot Copy World Space, mGear Space Recorder). Read-only.

  • Operation animation.capture_world
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlsAny—Control names (default: selected controls).
rangeAny—[start, end] (default: the whole clip).
stepint1Step (frames; 1…100).

Check Animation Clip Import

tb.ops.animation.check_clip_import(
    *,
    staged: str = "",
    data: str = "",
    file_name: str = "",
) -> Result

Report how a file's skeleton / Control Rig animation fits the loaded character before importing it: its clips, matched, missing and extra joints, hierarchy differences and whether Retarget Animation applies. Changes nothing.

  • Operation animation.check_clip_import
  • In Previewer, Animation
ArgumentTypeDefaultDescription
stagedstr""Token from tb_api::stage_import (a parsed file); or pass 'data'.
datastr""The file as base64 or a data URL (.tb3d, .tbclip, GLB, glTF or FBX).
file_namestr""The file's name: its extension picks the format of 'data'; shown in the history.

Clean Up Foot Sliding

tb.ops.animation.cleanup_foot_sliding(
    *,
    clip: str = ...,
    controls: Any = ...,
    speed_threshold: float = 0.3,
    contact_height: float = 0.03,
    speed: float = 0.35,
    height: float = 0.06,
    blend_frames: int = 4,
    min_frames: int = 2,
    range: Any = ...,
    staged: str = ...,
) -> Result

Find where feet are planted and pin them. Control-rig clips: a plant is a run of frames where the foot control moves slower than speedThreshold (units per second for a 1.7-unit character, scaled to this rig) and stays within contactHeight (fraction of the character's size) of its lowest point; each plant is pinned in world space to its first contact with smooth 'blendFrames' ramps (default controls: the IK feet). Skeleton clips: contacts are detected on every leg ('speed' in leg lengths per second, 'height' in leg lengths), each planted foot is held with leg IK at the middle of its contact and only the leg joints are re-keyed. One undo step.

  • Operation animation.cleanup_foot_sliding
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlsAny—Control-rig clips: foot control names (default: the rig's IK feet).
speed_thresholdfloat0.3Control-rig clips: plant speed threshold (units per second for a 1.7-unit character). (0.000001…1000000).
contact_heightfloat0.03Control-rig clips: plant height band (fraction of the character's size). (0…1).
speedfloat0.35Skeleton clips: contact speed threshold in leg lengths per second. (0.000001…1000000).
heightfloat0.06Skeleton clips: contact height threshold in leg lengths. (0.000001…1000000).
blend_framesint4Ramp frames at each plant's edges. (frames; 0…100).
min_framesint2Min Frames (frames; 1…1000).
rangeAny—[start, end] (default: the whole clip).
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Clear Selected Keys

tb.ops.animation.clear_keys() -> Result
  • Operation animation.clear_keys
  • In Animation

Bake to Vertex Animation

tb.ops.animation.clip.bake_to_vertex(
    *,
    clip: str = ...,
    meshes: Sequence[MeshRef] = ...,
    range: Any = ...,
    lossless: bool = False,
) -> Result

Bake a Skeleton or Control Rig clip into new Vertex Animation clips: every frame of the evaluated mesh (skin and modifier stack) is sampled exactly, one clip per mesh. One way: the source clip is kept, and a cache cannot be turned back into keys. 'meshes' defaults to every skinned or modified mesh.

  • Operation animation.clip.bake_to_vertex
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
meshesSequence[MeshRef]—Meshes to bake (default: every skinned or modified mesh).
rangeAny—[start, end] frames (default: the whole clip).
losslessboolFalseKeep the frames exactly (default: 16-bit inside the cache's bounds, a quarter of the memory).

Convert Effectors

tb.ops.animation.convert_effectors(
    *,
    clip: str = ...,
    effectors: Any = ...,
    to: Literal["goals", "offsets"],
) -> Result

Switch full-body IK effectors between relative offsets and absolute pose goals without a jump (FULLBODY-IK-RUST.md §6.5). To goals: each effector's target at every frame (where its offsets, the body it follows and its pose layers put it) is keyed as its goal on a new pose layer at full weight, its turn only where its target turned it. To offsets: each goal is keyed back as the offset from the effector's own relative goal, in its offset axes, on a new additive layer. The channels they replace move to a muted layer. Returns the largest joint move over the clip (maxError, a share of the body's height).

  • Operation animation.convert_effectors
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
effectorsAny—Effector keys, names or ids (default: every effector).
toLiteral["goals", "offsets"]requiredTo (goals / offsets).

Copy Channel Animation

tb.ops.animation.copy_channels(*, clip: str = ..., target: str, channels: Any) -> Result

Copy every key of some channels of one target (channel box Copy). Returns the clipboard.

  • Operation animation.copy_channels
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetstrrequiredTarget.
channelsAnyrequiredChannel names.

Copy Control Animation

tb.ops.animation.copy_control(*, clip: str = ..., target: str) -> Result

Copy every curve of a target. Returns the clipboard.

  • Operation animation.copy_control
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetstrrequiredTarget.

Copy Keyframes

tb.ops.animation.copy_keys(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
    range: Any = ...,
    filter: Any = ...,
) -> Result

Copy keys to a clipboard value: explicit 'keys', else the keys of 'targets' in 'range', else all keys of 'targets'; 'filter' applies locked/muted/isolated channels and pinned keys. Returns the clipboard; nothing in the document changes.

  • Operation animation.copy_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys.
targetsAny—Targets.
rangeAny—Range.
filterAny—Filter.

Copy Pose

tb.ops.animation.copy_pose(
    *,
    clip: str = ...,
    targets: Any = ...,
    frame: float,
) -> Result

Copy the evaluated pose of targets at a frame. Returns a pose clipboard.

  • Operation animation.copy_pose
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetsAny—Default: every animated target.
framefloatrequiredFrame to sample. (frames).

New Clip

tb.ops.animation.create_clip(
    *,
    name: str = "Clip 1",
    duration: float = 1.0,
    fps: float = 30.0,
) -> Result

Create an animation clip. With a control rig (rig modules) on the asset the clip is a control-rig clip bound to that rig, otherwise a skeleton clip that also keys objects.

  • Operation animation.create_clip
  • In Animation
ArgumentTypeDefaultDescription
namestr"Clip 1"Name.
durationfloat1.0Length in seconds (last frame = duration × fps). (seconds; 0…1000000).
fpsfloat30.0Fps (0.001…1000).

Crop Clip

tb.ops.animation.crop_clip(
    *,
    clip: str = ...,
    start: float,
    end: float,
    as_copy: bool = False,
) -> Result

Keep a frame range of a clip, rebased to frame 0; the motion at the range edges is kept exactly. Replaces the clip unless asCopy; one undo step.

  • Operation animation.crop_clip
  • In Previewer, Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
startfloatrequiredStart (frames).
endfloatrequiredEnd (frames).
as_copyboolFalseKeep the original and add the result as a new clip.

Cut Keyframes

tb.ops.animation.cut_keys(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
    range: Any = ...,
    filter: Any = ...,
) -> Result

Copy keys to a clipboard value, then delete them.

  • Operation animation.cut_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys.
targetsAny—Targets.
rangeAny—Range.
filterAny—Filter.

Delete Clip

tb.ops.animation.delete_clip(*, clip: str = ...) -> Result

Delete a clip.

  • Operation animation.delete_clip
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).

Delete Keyframes

tb.ops.animation.delete_keys(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
    range: Any = ...,
    target: str = ...,
    channel: str = ...,
    frame: float = ...,
    filter: Any = ...,
) -> Result

Delete keys: explicit 'keys', a target+channel+frame, or every key of 'targets' (optionally in 'range').

  • Operation animation.delete_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys to delete.
targetsAny—Targets.
rangeAny—[startFrame, endFrame] with 'targets'.
targetstr—Target.
channelstr—Channel.
framefloat—With target + channel. (frames).
filterAny—Filter.

Euler Filter

tb.ops.animation.euler_filter(*, clip: str = ..., targets: Any) -> Result

Make a target's three rotation curves continuous, in the target's rotation order; the curves must share key times.

  • Operation animation.euler_filter
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetsAnyrequiredTargets.

Evaluate Clip

tb.ops.animation.evaluate(*, clip: str = ..., frame: float) -> Result

Evaluate a clip with its layer stack at a frame: per-target channels (translate, Euler degrees in the target's order, scale; null = unanimated), custom attributes and morph weights. Read-only.

  • Operation animation.evaluate
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloatrequiredFrame. (frames).

Extract Root Motion

tb.ops.animation.extract_root_motion(
    *,
    clip: str = ...,
    mode: Literal["extract", "inPlace"] = "extract",
    root: str = ...,
    hips: str = ...,
    axes: Any = ...,
    rotation: bool = False,
    range: Any = ...,
    step: int = 1,
    staged: str = ...,
) -> Result

Move the body's ground travel onto the root control (mode extract: the character moves exactly as before, the root now carries the travel — Auto-Rig Pro Extract Root Motion), or remove it (mode inPlace: the character animates on the spot). Travel is the hips (COG) control's motion on 'axes' (default X and Z) relative to the range start; 'rotation' also transfers the heading (yaw). One undo step.

  • Operation animation.extract_root_motion
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
modeLiteral["extract", "inPlace"]"extract"Mode (extract / inPlace).
rootstr—Root control (default: the rig's root / global control).
hipsstr—Hips control (default: the COG).
axesAny—{x, y, z} travel axes (default x + z).
rotationboolFalseAlso transfer the heading (yaw).
rangeAny—[start, end] (default: the whole clip).
stepint1Step (frames; 1…100).
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Flatten Tangents

tb.ops.animation.flatten_tangents(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
) -> Result

Flat tangents with zero slope.

  • Operation animation.flatten_tangents
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys (or use 'targets').
targetsAny—Targets.

Biped Side-View Preset

tb.ops.animation.footage.biped_preset(*, clip: str = ..., frame: float = 0.0) -> Result

Add a track for the hips, both feet, both hands and the head, each placed on the footage frame shown at scene 'frame' where the rig's control stands and constrained to it (in-plane). Drag each point onto its feature in the footage, then track it. Parts that already have a track of that name, or that the rig has no control for, are skipped. One undo step.

  • Operation animation.footage.biped_preset
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloat0.0The frame whose pose places the points. (frames).

Fit Footage to Character

tb.ops.animation.footage.calibrate(*, pixels: Any, points: Any) -> Result

Scale and place the footage so two image points land on two scene points, e.g. the ground under the heel and the hip: 'pixels' [[x, y], [x, y]] and 'points' [[x, y, z], [x, y, z]]. Pixels then map to scene units. One undo step.

  • Operation animation.footage.calibrate
  • In Animation
ArgumentTypeDefaultDescription
pixelsAnyrequiredTwo image points [[x, y], [x, y]] (pixels, y down).
pointsAnyrequiredThe two scene points they match [[x, y, z], [x, y, z]].

Import Reference Footage

tb.ops.animation.footage.import_(
    *,
    staged: str,
    view: Literal["front", "right", "left"] = "right",
) -> Result

Make staged frames (tb_api::footage::stage_footage: a GIF, an image sequence or decoded video) the scene's reference footage: an image plane standing on the ground at the origin, two units tall, playing in sync with the timeline from frame 0 and looping. The scene has one footage; importing replaces it and its tracks. One undo step.

  • Operation animation.footage.import
  • In Animation
ArgumentTypeDefaultDescription
stagedstrrequiredToken from tb_api::footage::stage_footage.
viewLiteral["front", "right", "left"]"right"The side the footage was shot from (sets the plane's in-plane axes). (front / right / left).

Footage Info

tb.ops.animation.footage.info(*, track: str = ...) -> Result

The reference footage: size, frames, timing, placement and its tracks (id, name, tracked frames, hand-placed frames, bound control). With 'track', also that track's points per footage frame ([x, y] or null). Read-only.

  • Operation animation.footage.info
  • In Animation
ArgumentTypeDefaultDescription
trackstr—Track id or name whose points to include.

Remove Reference Footage

tb.ops.animation.footage.remove() -> Result

Remove the reference footage with its tracks and image constraints. One undo step.

  • Operation animation.footage.remove
  • In Animation

Set Footage

tb.ops.animation.footage.set(
    *,
    start: float = ...,
    speed: float = ...,
    fps: float = ...,
    looping: bool = ...,
    opacity: float = ...,
    visible: bool = ...,
    view: Literal["front", "right", "left"] = ...,
    center: Vec3Like = ...,
    size: float = ...,
) -> Result

Change how the reference footage plays and where it stands: start frame, speed, looping, opacity, visibility, view, center and size. Only the given values change. One undo step (drags coalesce).

  • Operation animation.footage.set
  • In Animation
ArgumentTypeDefaultDescription
startfloat—Scene frame that shows the footage's first frame. (frames).
speedfloat—Playback rate (1 = real time). (factor; 0.01…100).
fpsfloat—The footage's own frame rate. (0.1…240).
loopingbool—Repeat after the last frame (cycles).
opacityfloat—Opacity (factor; 0…1).
visiblebool—Visible.
viewLiteral["front", "right", "left"]—View (front / right / left).
centerVec3Like—World position of the image center.
sizefloat—Image height in scene units. (scene units; 0.000001…1000000).

Add Track Point

tb.ops.animation.footage.track.add(
    *,
    clip: str = ...,
    frame: float,
    pixel: Any,
    name: str = ...,
) -> Result

Place a new track point on the footage at 'pixel' [x, y] on the footage frame shown at scene 'frame'. Then track it (animation.footage.track.run). One undo step.

  • Operation animation.footage.track.add
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloatrequiredFrame (frames).
pixelAnyrequired[x, y] in pixels (y down).
namestr—Track name (default Track 1, Track 2…).

Remove Track

tb.ops.animation.footage.track.remove(*, track: str) -> Result

Remove a track and its image constraint. One undo step.

  • Operation animation.footage.track.remove
  • In Animation
ArgumentTypeDefaultDescription
trackstrrequiredTrack id or name.

Track Point

tb.ops.animation.footage.track.run(
    *,
    clip: str = ...,
    track: str,
    frame: float = ...,
    direction: Literal["forward", "backward"] = "forward",
    pattern: int = 8,
    search: int = 24,
    confidence: float = 0.6,
    staged: str = ...,
) -> Result

Track a point across the footage from the frame shown at scene 'frame' (default: its first hand-placed point) forward to the last frame or backward to the first. The track stops where the point is lost or at the next hand-placed point; place the point again there and track on. One undo step.

  • Operation animation.footage.track.run
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
trackstrrequiredTrack id or name.
framefloat—Scene frame to track from (it must hold a point). (frames).
directionLiteral["forward", "backward"]"forward"Direction (forward / backward).
patternint8Half size of the square the tracker follows, in pixels. (2…64).
searchint24How far the point may move between frames, in pixels. (2…256).
confidencefloat0.6Lowest match quality accepted; below it the track stops. (factor; 0…1).
stagedstr—Token of a finished tracking job (tb_api::footage_job::stage): commits its points instead of tracking in the call.

Correct Track Point

tb.ops.animation.footage.track.set_point(
    *,
    clip: str = ...,
    track: str,
    frame: float,
    pixel: Any,
    retrack: bool = True,
    pattern: int = 8,
    search: int = 24,
    confidence: float = 0.6,
) -> Result

Move a track's point on the footage frame shown at scene 'frame' to 'pixel' [x, y] by hand (rotoscope) and, with 'retrack' (default), track again from there to the next hand-placed point. One undo step (drags coalesce).

  • Operation animation.footage.track.set_point
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
trackstrrequiredTrack id or name.
framefloatrequiredFrame (frames).
pixelAnyrequired[x, y] in pixels (y down).
retrackboolTrueRetrack.
patternint8Half size of the square the tracker follows, in pixels. (2…64).
searchint24How far the point may move between frames, in pixels. (2…256).
confidencefloat0.6Lowest match quality accepted; below it the track stops. (factor; 0…1).

IK/FK Switch

tb.ops.animation.ik_fk_switch(
    *,
    clip: str = ...,
    limbs: Any = ...,
    all: bool = False,
    direction: Literal["toggle", "toIK", "toFK"] = "toggle",
    scope: Literal["frame", "keys", "range", "all"] = "frame",
    frame: float = ...,
    range: Any = ...,
    step: int = 1,
    staged: str = ...,
) -> Result

Switch IK/FK limbs without a pop, keyed into the clip (Auto-Rig Pro Snap IK-FK / Bake FK>IK, IK>FK). scope frame: the target mode's controls are matched to the pose at 'frame' and the blend switches there (previous mode held at frame − 1). range: the other mode is baked every 'step' frames over 'range' so the limb moves exactly as before; keys / all: baked on the existing key frames only (mGear 'Only Keyframe Frames'). Limbs: 'limbs' (modules or controls), else those of the selected controls; all = every limb. One undo step.

  • Operation animation.ik_fk_switch
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
limbsAny—Limb module ids or control names (default: the selection's limbs).
allboolFalseEvery IK/FK limb of the rig.
directionLiteral["toggle", "toIK", "toFK"]"toggle"Direction (toggle / toIK / toFK).
scopeLiteral["frame", "keys", "range", "all"]"frame"Scope (frame / keys / range / all).
framefloat—Switch frame (scope frame). (frames).
rangeAny—[start, end] (scopes keys / range; default: the whole clip).
stepint1Step (frames; 1…100).
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Bake Image Constraints

tb.ops.animation.image_constraint.bake(
    *,
    clip: str = ...,
    tracks: Any = ...,
    range: Any = ...,
    plant: bool = True,
    plant_threshold: float = 1.5,
    plant_frames: int = 3,
) -> Result

Bake the motion image constraints give their controls onto the controls' translate keys, every frame of 'range' (default: the clip), then turn those constraints off so the keys play. With 'plant' (default), wherever a track moves less than 'plantThreshold' pixels per frame for at least 'plantFrames' frames its point is held still, so planted feet do not slide. One undo step.

  • Operation animation.image_constraint.bake
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
tracksAny—Track ids or names (default: every constrained track).
rangeAny—[start, end] scene frames (default: the whole clip).
plantboolTrueHold the point where the track stands still (planted feet).
plant_thresholdfloat1.5Movement per frame, in pixels, below which a point counts as standing still. (0…100).
plant_framesint3Fewest still frames that make a plant. (2…1000).

Image Constraint

tb.ops.animation.image_constraint.create(
    *,
    clip: str = ...,
    track: str,
    control: str = ...,
    maintain_offset: bool = False,
    frame: float = 0.0,
) -> Result

Constrain a rig control (default: the selected control) to a footage track: the control follows the tracked point on the footage's two in-plane axes (up and forward for a side view); its depth stays as animated. With 'maintainOffset' the control keeps its distance to the point as posed at scene 'frame'. One undo step.

  • Operation animation.image_constraint.create
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
trackstrrequiredTrack id or name.
controlstr—Rig control name (default: the one selected control).
maintain_offsetboolFalseKeep the control's current distance to the point instead of snapping onto it.
framefloat0.0Scene frame the offset is measured at. (frames).

Remove Image Constraint

tb.ops.animation.image_constraint.remove(*, track: str) -> Result

Stop a track driving its control (the track stays). One undo step.

  • Operation animation.image_constraint.remove
  • In Animation
ArgumentTypeDefaultDescription
trackstrrequiredTrack id or name.

Toggle Image Constraints

tb.ops.animation.image_constraint.toggle(
    *,
    tracks: Any = ...,
    enabled: bool = ...,
) -> Result

Turn image constraints off (their controls play their own keys; nothing is lost) or back on. Without 'enabled' they flip: off when any is on. One undo step.

  • Operation animation.image_constraint.toggle
  • In Animation
ArgumentTypeDefaultDescription
tracksAny—Track ids or names (default: every constrained track).
enabledbool—Enabled.

Import Animation Clip

tb.ops.animation.import_clip(
    *,
    staged: str = "",
    data: str = "",
    file_name: str = "",
    allow_missing: bool = False,
) -> Result

Add the skeleton and Control Rig animation clips of a .tb3d, .tbclip, GLB, glTF or FBX file to the loaded character. Only the animation is kept; animated joints must exist here with the same parents, so a clip for a different character is refused (use Retarget Animation for those). allowMissing leaves out curves on joints this character lacks. One undo step.

  • Operation animation.import_clip
  • In Previewer, Animation
ArgumentTypeDefaultDescription
stagedstr""Token from tb_api::stage_import (a parsed file); or pass 'data'.
datastr""The file as base64 or a data URL (.tb3d, .tbclip, GLB, glTF or FBX).
file_namestr""The file's name: its extension picks the format of 'data'; shown in the history.
allow_missingboolFalseImport even when some animated joints are missing here (their curves are left out).

Import Clip Data

tb.ops.animation.import_clip_data(*, data: str = "", staged: str = "") -> Result

Merge clips from clip data (.tbclip) by id: a known id is replaced, a new id is added; a same-id clip of another kind refuses the whole import.

  • Operation animation.import_clip_data
  • In Animation
ArgumentTypeDefaultDescription
datastr""The .tbclip file content (or pass staged).
stagedstr""Token from tb_api::stage_import of already parsed clip data.

In Place → Root Motion

tb.ops.animation.in_place_to_root_motion(
    *,
    clip: str = ...,
    clips: Any = ...,
    axes: str = "xz",
    rotation: Literal["none", "yaw"] = "yaw",
    lock_feet: bool = True,
) -> Result

Give an in-place clip the travel its planted feet push (batch over 'clips'; skeleton and Control Rig clips): while a foot is on the ground the character moves so that foot stands still, turning with it when the foot turns (rotation yaw); flight frames interpolate. Planted feet of skeleton clips are then held (lockFeet). Replaces the clips; one undo step.

  • Operation animation.in_place_to_root_motion
  • In Previewer, Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
clipsAny—Clip names to convert together (batch); omit to use 'clip'.
axesstr"xz"World axes the travel is rebuilt on: letters of x, y (up), z.
rotationLiteral["none", "yaw"]"yaw"Also rebuild turns about the up axis from the planted feet's heading. (none / yaw).
lock_feetboolTrueHold planted feet where they slide.

Insert Key

tb.ops.animation.insert_key(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    frame: float,
) -> Result

Insert keys at a frame on curves without changing their shape (graph editor ge.insertKey). Curves already keyed there, empty curves and curves on locked layers are skipped.

  • Operation animation.insert_key
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curves.
targetsAny—Targets.
framefloatrequiredFrame. (frames).

Tangent Interpolator

tb.ops.animation.interpolate_tangents(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    mode: Literal["cycleMatch", "polish", "bestFit", "momentum", "bounce", "bounceIn", "bounceOut", "blendAuto", "blendLinear", "blendFlat", "blendStep", "blendPlateau"],
    intensity: float = 0.0,
    window_size: int = 2,
    pinned: Any = ...,
) -> Result

Reshape tangent slopes/weights with one intensity slider (graph editor ge.keyframeTangentInterpolator; 12 modes) on the selected keys or whole curves. Previewable.

  • Operation animation.interpolate_tangents
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
modeLiteral["cycleMatch", "polish", "bestFit", "momentum", "bounce", "bounceIn", "bounceOut", "blendAuto", "blendLinear", "blendFlat", "blendStep", "blendPlateau"]requiredMode (cycleMatch / polish / bestFit / momentum / bounce / bounceIn / bounceOut / blendAuto / blendLinear / blendFlat / blendStep / blendPlateau).
intensityfloat0.0Intensity (-1…1).
window_sizeint2Best Fit: neighbouring keys on each side the fit looks at. (1…5).
pinnedAny—Pinned.

Time Interpolator

tb.ops.animation.interpolate_times(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    mode: Literal["simplifyBake", "nudge", "stagger", "timeBias", "uniform", "scaleTime", "snapToFrames"],
    intensity: float = 0.0,
    max_frames: int = 10.0,
    pinned: Any = ...,
) -> Result

Change key density or timing with one intensity slider (graph editor ge.keyframeTimeInterpolator; 7 modes). Previewable.

  • Operation animation.interpolate_times
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
modeLiteral["simplifyBake", "nudge", "stagger", "timeBias", "uniform", "scaleTime", "snapToFrames"]requiredMode (simplifyBake / nudge / stagger / timeBias / uniform / scaleTime / snapToFrames).
intensityfloat0.0Intensity (-1…1).
max_framesint10.0Nudge / Stagger: the furthest a key moves at full intensity. (frames; 1…30).
pinnedAny—Pinned.

Value Interpolator

tb.ops.animation.interpolate_values(
    *,
    clip: str = ...,
    keys: Any,
    mode: Literal["ease", "stitch", "overshoot", "bounce", "spring", "blendToLinear", "blendToDefault", "lerpPrevNext", "clamp", "scale", "scaleOpposites", "scaleLeft", "scaleRight", "scaleFrame", "smooth", "denoise", "pushPull", "sharpen", "flatten", "tighten", "biasLeftRight", "noise", "wave", "quantize"],
    intensity: float = 0.0,
    params: Any = ...,
    pinned: Any = ...,
) -> Result

Reshape the values of the selected keys between their anchor keys with one intensity slider (graph editor ge.keyframeValueInterpolator; 24 modes). Previewable.

  • Operation animation.interpolate_values
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredSelected keys.
modeLiteral["ease", "stitch", "overshoot", "bounce", "spring", "blendToLinear", "blendToDefault", "lerpPrevNext", "clamp", "scale", "scaleOpposites", "scaleLeft", "scaleRight", "scaleFrame", "smooth", "denoise", "pushPull", "sharpen", "flatten", "tighten", "biasLeftRight", "noise", "wave", "quantize"]requiredMode.
intensityfloat0.0Intensity (-1…1).
paramsAny—{ frequency, seed, iterations, windowSize, clampMin, clampMax }.
pinnedAny—Pinned.

Key Discrete Switch

tb.ops.animation.key_discrete_switch(
    *,
    clip: str = ...,
    frame: float,
    transforms: Any = ...,
    attr: Any = ...,
    tangent: Literal["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"] = "auto",
) -> Result

Key a discrete switch (IK/FK, space): the 'before' state at frame − 1 and the 'after' state at 'frame' for control transforms, and the switch attribute stepped.

  • Operation animation.key_discrete_switch
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloatrequiredSwitch frame. (frames).
transformsAny—[{ target, before: [9], after: [9] }].
attrAny—{ target, attr, before, after }.
tangentLiteral["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"]"auto"Tangent (auto / linear / step / stepNext / flat / plateau / autoClamped).

Key Goals

tb.ops.animation.key_goals(
    *,
    clip: str = ...,
    frame: float,
    goals: Any,
    layer: str = ...,
    tangent: Literal["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"] = "auto",
) -> Result

Key full-body IK goals at a frame: each entry's absolute world position and / or rotation (world Euler degrees, XYZ) on a pose layer (an override layer; default: the active layer). Only the given channels are keyed, so a position-only goal leaves the effector's turn to the solve. Adds the clip's effectors when it has none. One undo step.

  • Operation animation.key_goals
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloatrequiredFrame to key. (frames).
goalsAnyrequired[{effector, position?, rotation?}, …]: effector key, name or id; position [x, y, z] (world); rotation [x, y, z] (world Euler degrees, XYZ).
layerstr—Pose layer name or id (default: the active layer).
tangentLiteral["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"]"auto"Tangent (auto / linear / step / stepNext / flat / plateau / autoClamped).

Key Slider

tb.ops.animation.key_slider(
    *,
    clip: str = ...,
    mode: Literal["tween", "blendNeighbors", "blendDefault", "blendFrame", "blendEase", "blendInfinity", "blendReference", "easeInOut", "noiseWave", "timeOffset", "pullPush", "smoothRough", "scaleAverage", "scaleDefault", "scaleFrame", "scaleLeft", "scaleRight"],
    value: float = 0.0,
    keys: Any = ...,
    targets: Any = ...,
    range: Any = ...,
    frame: float = ...,
    frames: Any = ...,
    reference: Any = ...,
    defaults: Any = ...,
    smart_tint: bool = False,
    drag: str = ...,
) -> Result

One Animator Bar slider (animBot grammar): 'value' −1…+1 (±2 with overshoot) applies 'mode' to the selected keys — Tweener, blends (neighbours, default, frame, ease, infinity, reference), Ease In|Out, Noise|Wave, Time Offset, Pull|Push, Smooth|Rough, scale from average / default / frame / left / right. Targets: 'keys', else 'targets' + 'range', else 'targets' + 'frame' (keys are inserted there, keeping the curve's shape). Previewable; drag steps coalesce per 'drag'.

  • Operation animation.key_slider
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
modeLiteral["tween", "blendNeighbors", "blendDefault", "blendFrame", "blendEase", "blendInfinity", "blendReference", "easeInOut", "noiseWave", "timeOffset", "pullPush", "smoothRough", "scaleAverage", "scaleDefault", "scaleFrame", "scaleLeft", "scaleRight"]requiredMode.
valuefloat0.0−1…+1; beyond ±1 = overshoot. (-2…2).
keysAny—Selected keys.
targetsAny—Bones / controls (with 'range' or 'frame').
rangeAny—[start, end] timeline range.
framefloat—Current frame (no keys selected). (frames).
framesAny—Picked frames [left, right] (Blend to Frame, Scale From Frame).
referenceAny—[{curve, time, value}] reference values (Blend to Reference: buffer curve, Blend to Undo).
defaultsAny—Preferred default pose { target: [9 channels] } (Blend / Scale From Default).
smart_tintboolFalseTag keys the Tweener sets as inbetweens (amber).
dragstr—Gesture id: steps of one drag form one undo step.

Animation Key State

tb.ops.animation.key_state(*, clip: str = ...) -> Result
  • Operation animation.key_state
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).

Add Animation Layer

tb.ops.animation.layer.add(
    *,
    clip: str = ...,
    name: str = "AnimLayer",
    blend_mode: Literal["additive", "override"] = "additive",
) -> Result

Add a layer on top of the stack and make it active (default additive).

  • Operation animation.layer.add
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
namestr"AnimLayer"Name.
blend_modeLiteral["additive", "override"]"additive"Blend Mode (additive / override).

Duplicate Animation Layer

tb.ops.animation.layer.duplicate(*, clip: str = ..., layer: str) -> Result

Copy a layer with all its curves directly above it.

  • Operation animation.layer.duplicate
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer name or id ("base" = BaseAnimation).

Flatten Layers

tb.ops.animation.layer.flatten(*, clip: str = ...) -> Result

Flatten the whole layer stack into BaseAnimation, keeping the played animation.

  • Operation animation.layer.flatten
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).

Merge Layer Down

tb.ops.animation.layer.merge_down(*, clip: str = ..., layer: str) -> Result

Merge a layer into the one below it, keeping the played animation.

  • Operation animation.layer.merge_down
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer name or id ("base" = BaseAnimation).

Move Curves to Layer

tb.ops.animation.layer.move_curves(
    *,
    clip: str = ...,
    curves: Any,
    layer: str,
) -> Result

Move curves to another layer, keys unchanged.

  • Operation animation.layer.move_curves
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAnyrequiredCurves.
layerstrrequiredLayer name or id ("base" = BaseAnimation).

Delete Animation Layer

tb.ops.animation.layer.remove(*, clip: str = ..., layer: str) -> Result

Delete a layer; its curves move to BaseAnimation.

  • Operation animation.layer.remove
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer name or id ("base" = BaseAnimation).

Rename Animation Layer

tb.ops.animation.layer.rename(*, clip: str = ..., layer: str, name: str) -> Result

Rename a layer (BaseAnimation keeps its name).

  • Operation animation.layer.rename
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer name or id ("base" = BaseAnimation).
namestrrequiredName.

Reorder Animation Layers

tb.ops.animation.layer.reorder(*, clip: str = ..., order: Any) -> Result

Set the full layer order bottom to top; BaseAnimation stays first.

  • Operation animation.layer.reorder
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
orderAnyrequiredLayer names or ids, bottom first.

Set Layer Properties

tb.ops.animation.layer.set(
    *,
    clip: str = ...,
    layer: str,
    weight: float = ...,
    mute: bool = ...,
    solo: bool = ...,
    lock: bool = ...,
    blend_mode: Literal["additive", "override"] = ...,
    color: str = ...,
    rotation_accumulation: Literal["byComponent", "byLayer"] = ...,
    scale_accumulation: Literal["multiply", "additive"] = ...,
    parent: str | None = ...,
) -> Result

Change layer weight, mute, solo, lock, blend mode, color, accumulation or parent. Weight slider drags coalesce per layer.

  • Operation animation.layer.set
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer name or id ("base" = BaseAnimation).
weightfloat—Weight (factor; 0…1).
mutebool—Mute.
solobool—Solo.
lockbool—Lock.
blend_modeLiteral["additive", "override"]—Blend Mode (additive / override).
colorstr—#rrggbb.
rotation_accumulationLiteral["byComponent", "byLayer"]—Rotation Accumulation (byComponent / byLayer).
scale_accumulationLiteral["multiply", "additive"]—Scale Accumulation (multiply / additive).
parentstr | None—Parent layer (null clears).

Set Active Layer

tb.ops.animation.layer.set_active(*, clip: str = ..., layer: str) -> Result

Choose the layer that receives new keys.

  • Operation animation.layer.set_active
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
layerstrrequiredLayer name or id ("base" = BaseAnimation).

List Spaces

tb.ops.animation.list_spaces(
    *,
    clip: str = ...,
    controls: Any = ...,
    frame: float = ...,
) -> Result

The parent spaces of controls (labels in the rig's order) and the space each is in at 'frame' on the clip (keyed or the rig's default). Default controls: the selected ones, else every space-switchable control. Read-only.

  • Operation animation.list_spaces
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlsAny—Control names (default: selection, else all).
framefloat—Frame to read the active space at (default 0). (frames).

Lock Tangent Weight

tb.ops.animation.lock_tangent_weight(
    *,
    clip: str = ...,
    keys: Any,
    locked: bool = ...,
) -> Result

Lock or unlock key tangent weights; omitting 'locked' toggles (locks all when any is unlocked).

  • Operation animation.lock_tangent_weight
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredKeys.
lockedbool—Locked.

Make Animation Hold

tb.ops.animation.make_hold(*, clip: str = ..., keys: Any) -> Result

Hold a key's value until the next key: the key's out tangent and the next key's in tangent go flat and the next key takes this value.

  • Operation animation.make_hold
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredKeys to hold from.

Mirror Pose

tb.ops.animation.mirror_pose(
    *,
    clip: str = ...,
    mode: Literal["right", "left", "all"],
    frame: float,
    targets: Any = ...,
) -> Result

Mirror the evaluated pose at a frame and key it: right copies LEFT → RIGHT, left copies RIGHT → LEFT, all swaps pairs; center targets mirror in place. Partners are found by the shared left/right naming rules.

  • Operation animation.mirror_pose
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
modeLiteral["right", "left", "all"]requiredMode (right / left / all).
framefloatrequiredFrame. (frames).
targetsAny—Limit to these targets (default: all).

Add Marker

tb.ops.animation.mixer.add_marker(
    *,
    mix: str = ...,
    frame: float,
    name: str = ...,
) -> Result

Add a named marker at 'frame' on the mixer ruler.

  • Operation animation.mixer.add_marker
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
framefloatrequiredFrame (frames).
namestr—Name.

Add Clip to Mix

tb.ops.animation.mixer.add_strip(
    *,
    mix: str = ...,
    clip: str,
    track: str = ...,
    start: float = 0.0,
) -> Result

Place a clip on a track as a strip. Without 'track' a new track named after the clip is created on top (the drop on the new-track lane). Strips on layer tracks fade in / out by default and do not extend past their edges.

  • Operation animation.mixer.add_strip
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
clipstrrequiredClip id or name.
trackstr—Track.
startfloat0.0Start (frames).

Add Track

tb.ops.animation.mixer.add_track(
    *,
    mix: str = ...,
    name: str = ...,
    index: int = ...,
) -> Result

Add a track (on top unless 'index' is given; 0 is the base).

  • Operation animation.mixer.add_track
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
namestr—Name.
indexint—Index.

Bake Mix

tb.ops.animation.mixer.bake(
    *,
    mix: str = ...,
    name: str = ...,
    range: Literal["whole", "brackets"] = "whole",
    step: int = 1,
    keep_linked: bool = True,
    replace: str = ...,
) -> Result

Bake the mix into one clip you can edit and export (frame 0 = the range start). 'range': whole (the strips' extent) or brackets. 'keepLinked' records the clip on the mix for re-baking ('replace' re-bakes into that clip).

  • Operation animation.mixer.bake
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
namestr—Name.
rangeLiteral["whole", "brackets"]"whole"Range (whole / brackets).
stepint1Step (1…10).
keep_linkedboolTrueKeep Linked.
replacestr—A previously baked clip to overwrite (Rebake).

Copy Strips

tb.ops.animation.mixer.copy_strips(*, mix: str = ..., strips: Any) -> Result

Copy strips: returns a clipboard value for animation.mixer.paste_strips (nothing is written).

  • Operation animation.mixer.copy_strips
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripsAnyrequiredStrips.

New Mix

tb.ops.animation.mixer.create(
    *,
    name: str = "Mix",
    fps: float = ...,
    target: Literal["skeleton", "controlRig"] = "skeleton",
    clip: str = ...,
) -> Result

Create a mix sequence (Animation Mixer). With 'clip', its first track holds a strip of that clip.

  • Operation animation.mixer.create
  • In Animation
ArgumentTypeDefaultDescription
namestr"Mix"Name.
fpsfloat—Frame rate (default: the clip's, else 30).
targetLiteral["skeleton", "controlRig"]"skeleton"Target (skeleton / controlRig).
clipstr—Clip id or name to start the base track with.

Delete Mix

tb.ops.animation.mixer.delete(*, mix: str = ...) -> Result

Delete a mix sequence (its clips and baked clips stay).

  • Operation animation.mixer.delete
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).

Delete Strips

tb.ops.animation.mixer.delete_strips(
    *,
    mix: str = ...,
    strips: Any,
    ripple: bool = False,
) -> Result

Delete strips; 'ripple' closes the gaps (later strips on each track move left).

  • Operation animation.mixer.delete_strips
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripsAnyrequiredStrips.
rippleboolFalseRipple.

Duplicate Strips

tb.ops.animation.mixer.duplicate_strips(*, mix: str = ..., strips: Any) -> Result

Duplicate strips right after themselves on their tracks.

  • Operation animation.mixer.duplicate_strips
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripsAnyrequiredStrips.

Duplicate Track

tb.ops.animation.mixer.duplicate_track(*, mix: str = ..., track: str) -> Result

Duplicate a track with its strips, mask and weight, right above it.

  • Operation animation.mixer.duplicate_track
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
trackstrrequiredTrack id.

Evaluate Mix

tb.ops.animation.mixer.evaluate(*, mix: str = ..., frame: float) -> Result

The mixed pose at 'frame': local channels per bone / control that the mix animates (translate, rotate in degrees, scale). Read-only.

  • Operation animation.mixer.evaluate
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
framefloatrequiredFrame (frames).

Key Track Weight

tb.ops.animation.mixer.key_weight(
    *,
    mix: str = ...,
    track: str,
    frame: float,
    value: float = ...,
    remove: bool = False,
    drag: str = ...,
) -> Result

Key a track's weight at 'frame' (the current weight there unless 'value' is given); 'remove' deletes the key.

  • Operation animation.mixer.key_weight
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
trackstrrequiredTrack id.
framefloatrequiredFrame (frames).
valuefloat—Value (0…1).
removeboolFalseRemove.
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Move Strips

tb.ops.animation.mixer.move_strips(
    *,
    mix: str = ...,
    moves: Any,
    ripple: bool = False,
    drag: str = ...,
) -> Result

Move strips: 'moves' = [{strip, start, track?}] (absolute starts; 'track' moves it to another track). 'ripple' shifts the later strips of each strip's old track with it. Drags coalesce with 'drag'.

  • Operation animation.mixer.move_strips
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
movesAnyrequiredMoves.
rippleboolFalseRipple.
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Move Track

tb.ops.animation.mixer.move_track(*, mix: str = ..., track: str, index: int) -> Result

Move a track to 'index' (0 = the base, at the bottom).

  • Operation animation.mixer.move_track
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
trackstrrequiredTrack id.
indexintrequiredIndex.

Paste Strips

tb.ops.animation.mixer.paste_strips(
    *,
    mix: str = ...,
    clipboard: Any,
    track: str,
    frame: float,
) -> Result

Paste copied strips on 'track' with the earliest at 'frame' (their relative timing kept).

  • Operation animation.mixer.paste_strips
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
clipboardAnyrequiredClipboard.
trackstrrequiredDestination track id.
framefloatrequiredFrame (frames).

Reframe Strips

tb.ops.animation.mixer.reframe(*, mix: str = ..., strips: Any) -> Result

Re-center strips: each starts on the origin (horizontally), facing forward. Turns Match Previous Root off (they would contradict).

  • Operation animation.mixer.reframe
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripsAnyrequiredStrips.

Delete Track

tb.ops.animation.mixer.remove_track(*, mix: str = ..., track: str) -> Result

Delete a track and its strips.

  • Operation animation.mixer.remove_track
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
trackstrrequiredTrack id.

Rename Mix

tb.ops.animation.mixer.rename(*, mix: str = ..., name: str) -> Result

Rename a mix sequence.

  • Operation animation.mixer.rename
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
namestrrequiredName.

Roll Edit

tb.ops.animation.mixer.roll(
    *,
    mix: str = ...,
    left: str,
    right: str,
    delta: float,
    drag: str = ...,
) -> Result

Move the edit point between two adjacent strips of one track by 'delta' frames (the left's Out and the right's In together).

  • Operation animation.mixer.roll
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
leftstrrequiredThe earlier strip.
rightstrrequiredThe later strip.
deltafloatrequiredDelta (frames).
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Set Mix Properties

tb.ops.animation.mixer.set(
    *,
    mix: str = ...,
    fps: float = ...,
    range: Any | None = ...,
    drag: str = ...,
) -> Result

Set the mix's frame rate or play / bake range brackets ([start, end] frames; null clears them).

  • Operation animation.mixer.set
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
fpsfloat—Fps.
rangeAny | None—[start, end], or null to clear the brackets.
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Set Marker

tb.ops.animation.mixer.set_marker(
    *,
    mix: str = ...,
    marker: str,
    frame: float = ...,
    name: str = ...,
    remove: bool = False,
    drag: str = ...,
) -> Result

Move or rename a marker; 'remove' deletes it.

  • Operation animation.mixer.set_marker
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
markerstrrequiredMarker id.
framefloat—Frame (frames).
namestr—Name.
removeboolFalseRemove.
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Set Body Mask

tb.ops.animation.mixer.set_mask(
    *,
    mix: str = ...,
    track: str = ...,
    strip: str = ...,
    regions: Any = ...,
    bones: Any = ...,
    drag: str = ...,
) -> Result

Set the body-part mask of a track (or a strip's override). 'regions' are body regions (head, neck, chest, spine, hips, armL/R, handL/R, legL/R, footL/R, tail; quadrupeds: ears, frontLegL/R, frontFootL/R, hindLegL/R, hindFootL/R) as names or {region, weight}; 'bones' a custom set as names or {name, weight}. No regions and no bones = Full Body.

  • Operation animation.mixer.set_mask
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
trackstr—Track.
stripstr—A strip id: sets that strip's mask override.
regionsAny—Regions.
bonesAny—Bones.
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Set Strip

tb.ops.animation.mixer.set_strip(
    *,
    mix: str = ...,
    strips: Any,
    patch: Any,
    drag: str = ...,
) -> Result

Set strip properties from 'patch': name, start, sourceIn, sourceOut, phase, speed, repeat, before / after (hold, loop, nothing), fadeIn / fadeOut (frames or {frames, curve: linear | smooth | {a, b}}), mirror, root {inPlace, lockX, lockY, lockZ, lockYaw, matchPrevious, offset [x, y, z], yaw}. Drags coalesce with 'drag'.

  • Operation animation.mixer.set_strip
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripsAnyrequiredStrip id or array of ids (the patch applies to each).
patchAnyrequiredPatch.
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Set Track

tb.ops.animation.mixer.set_track(
    *,
    mix: str = ...,
    track: str,
    name: str = ...,
    mute: bool = ...,
    solo: bool = ...,
    lock: bool = ...,
    weight: float = ...,
    blend: Literal["override", "additive"] = ...,
    color: str = ...,
    drag: str = ...,
) -> Result

Set a track's name, mute / solo / lock, weight (0..1), blend (override / additive) or color. Weight drags coalesce with 'drag'.

  • Operation animation.mixer.set_track
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
trackstrrequiredTrack id.
namestr—Name.
mutebool—Mute.
solobool—Solo.
lockbool—Lock.
weightfloat—Weight (factor; 0…1).
blendLiteral["override", "additive"]—Blend (override / additive).
colorstr—#rrggbb.
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Slip Strip

tb.ops.animation.mixer.slip_strip(
    *,
    mix: str = ...,
    strip: str,
    delta: float,
    drag: str = ...,
) -> Result

Slip a strip's content by 'delta' frames without moving it (a looping strip turns its phase).

  • Operation animation.mixer.slip_strip
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripstrrequiredStrip id.
deltafloatrequiredDelta (frames).
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Split at Playhead

tb.ops.animation.mixer.split(
    *,
    mix: str = ...,
    strips: Any = ...,
    frame: float,
) -> Result

Razor: split 'strips' (default: every strip under the frame on unlocked tracks) at 'frame'. Returns the new right-hand strips.

  • Operation animation.mixer.split
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripsAny—Strips.
framefloatrequiredFrame (frames).

Trim Strip

tb.ops.animation.mixer.trim_strip(
    *,
    mix: str = ...,
    strip: str,
    edge: Literal["in", "out"],
    delta: float,
    drag: str = ...,
) -> Result

Trim a strip's In or Out edge by 'delta' frames (within its clip). A looping strip's Out edge changes its repeat count. Returns the frames actually applied.

  • Operation animation.mixer.trim_strip
  • In Animation
ArgumentTypeDefaultDescription
mixstr—Mix id or name (may be omitted when the document holds exactly one mix).
stripstrrequiredStrip id.
edgeLiteral["in", "out"]requiredEdge (in / out).
deltafloatrequiredDelta (frames).
dragstr—Gesture id: calls with the same id coalesce into one undo step.

Move Keys

tb.ops.animation.move_keys(
    *,
    clip: str = ...,
    keys: Any,
    dt: float = 0.0,
    dv: float = 0.0,
    drag: str = ...,
) -> Result

Move keys by a time and value offset (graph editor drag). A key that would land within half a frame of a key that stays keeps its time. Pass a stable 'drag' id while dragging: the steps coalesce into one undo step.

  • Operation animation.move_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredKeys at their current positions.
dtfloat0.0Dt (frames).
dvfloat0.0Dv.
dragstr—Gesture id for coalescing.

Nudge Keys

tb.ops.animation.nudge_keys(*, clip: str = ..., keys: Any, frames: int = 1) -> Result

Shift keys by whole frames (graph editor ge.nudgeKeyframe).

  • Operation animation.nudge_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredKeys to nudge.
framesint1Frames (frames).

Offset Edit

tb.ops.animation.offset_keys(
    *,
    clip: str = ...,
    target: str = ...,
    channels: Any = ...,
    entries: Any = ...,
    frame: float,
    falloff: Any = ...,
) -> Result

Spread a pose change across the shot (Offset Edit): for each channel, the difference between the given pose value and the curve at 'frame' is added to every key of that channel on the active layer — at full strength inside the optional Falloff Range, eased to zero across its fades and not at all outside. 'entries' lists several targets (one undo step); 'target' + 'channels' is the single-target form. Values are pose values (degrees for rotations).

  • Operation animation.offset_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetstr—Bone / control name or id (single-target form).
channelsAny—{ "rotateX": 12.5, … } pose values at 'frame'.
entriesAny—[{ "target": name, "channels": { … } }, …].
framefloatrequiredThe frame the pose was changed at. (frames).
falloffAny—Falloff Range {s0, s1, e1, e0, inShape, outShape} in frames; omitted: every key at full strength. Shapes: linear, smooth, easeIn, easeOut.

Overlap Bake

tb.ops.animation.overlap_bake(
    *,
    clip: str = ...,
    bones: Any,
    stiffness: float = 0.3,
    damping: float = 0.25,
    gravity: float = 0.0,
    strength: float = 1.0,
    pre_roll: int = 24,
    cyclic: bool = False,
    step: int = 1,
    range: Any = ...,
) -> Result

Bake secondary motion into a bone chain (tail, ears, antenna, cloth strip): each segment's tip follows the animation through a damped spring, and the result replaces the chain's rotation keys in the range, one key per 'step' frames. 'bones' lists the chain from its root to its tip (each bone the parent of the next). 'cyclic' pre-rolls from the end of a looping clip so the loop closes. Base layer only. One undo step.

  • Operation animation.overlap_bake
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
bonesAnyrequiredThe chain, root to tip: bone names or ids.
stiffnessfloat0.3How hard each tip pulls toward the animated pose (1 = rigid). (0…1).
dampingfloat0.25Velocity lost per frame. (0…1).
gravityfloat0.0Downward pull per frame² (scene units). (-100…100).
strengthfloat1.0Blend of the overlap over the animation. (0…1).
pre_rollint24Frames simulated before the range so the overlap has settled. (frames; 0…1000).
cyclicboolFalseThe clip loops: pre-roll from the end of the cycle.
stepint1Frames between baked keys. (frames; 1…100).
rangeAny—[start, end] frames; omitted: the whole clip.

Paste Channel Animation

tb.ops.animation.paste_channels(
    *,
    clip: str = ...,
    clipboard: Any,
    target: str,
    channels: Any,
) -> Result

Paste a clipboard onto channels of a target by position (entry i → channel i, wrapping), unshifted.

  • Operation animation.paste_channels
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
clipboardAnyrequiredClipboard.
targetstrrequiredTarget.
channelsAnyrequiredChannels.

Paste Keyframes

tb.ops.animation.paste_keys(
    *,
    clip: str = ...,
    clipboard: Any,
    frame: float,
    mode: Literal["add", "replace"] = "add",
    targets: Any = ...,
    locked: Any = ...,
) -> Result

Paste a clipboard value so its earliest key lands on 'frame'. 'targets' retargets: one source broadcasts to many, several map by order. Mode add merges, replace first clears the pasted span.

  • Operation animation.paste_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
clipboardAnyrequiredClipboard.
framefloatrequiredDestination frame of the earliest copied key. (frames).
modeLiteral["add", "replace"]"add"Mode (add / replace).
targetsAny—Destination targets (retargeting).
lockedAny—Locked curve ids.

Paste Pose

tb.ops.animation.paste_pose(
    *,
    clip: str = ...,
    clipboard: Any,
    frame: float,
    mirrored: bool = False,
) -> Result

Key a pose clipboard at a frame on its original targets, converted for the active layer. mirrored pastes each target's pose onto its opposite-side partner (center targets mirror in place; animBot / Auto-Rig Pro paste mirrored).

  • Operation animation.paste_pose
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
clipboardAnyrequiredClipboard.
framefloatrequiredFrame to key. (frames).
mirroredboolFalsePaste onto the opposite side (animation-tools).

Bake Physics to Keys

tb.ops.animation.physics_bake_keys(
    *,
    clip: str = ...,
    loop: bool = ...,
    preroll: int = ...,
    staged: str = ...,
) -> Result

Bake the rig physics of a control-rig clip into keys on an additive Physics layer: on every frame each simulated control is keyed with the offset the simulation adds to its animation. loop (default: the clip's Looping setting) simulates one seamless cycle first, so the first and last frames match. While the layer is on, playback shows it instead of the live simulation; mute it to see the simulation live. Baking again replaces the layer. Long bakes run as a background job.

  • Operation animation.physics_bake_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (default: the only clip).
loopbool—Simulate one seamless cycle first (default: the clip's Looping setting).
prerollint—Frames a bake that plays once holds the first pose before it starts (0–240; default: the clip's Clip Physics, else 24).
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Loop Simulation

tb.ops.animation.physics_loop(
    *,
    clip: str = ...,
    crossfade: int = ...,
    warmup: int = ...,
    staged: str = ...,
) -> Result

Simulate a seamless cycle of a looping control-rig clip's physics: warm up over whole cycles until the motion at the wrap repeats, crossfade the end into the start, and cache the cycle so playback and scrubbing show it in any direction. Reports the seam error. Editing the clip or the physics falls back to the live simulation until it runs again.

  • Operation animation.physics_loop
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (default: the only clip).
crossfadeint—Frames blended across the wrap (0–60; default: the clip's Clip Physics, else 6).
warmupint—Most warm-up cycles (1–20; default: the clip's Clip Physics, else 6).
stagedstr—A cycle the background job simulated for these parameters (hosts; scripts leave it out).

Loop Simulation State

tb.ops.animation.physics_loop_state(*, clip: str = ...) -> Result

Read a clip's simulated cycle: its seam error in degrees and metres against the tolerance, the warm-up cycles it took, whether the wrap settled, and whether the clip or the physics changed since it ran.

  • Operation animation.physics_loop_state
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (default: the only clip).

Add Picker Cell

tb.ops.animation.picker.add_cell(
    *,
    tab: str = ...,
    kind: Literal["single", "stack", "separator", "grid"] = "single",
    column: Literal["left", "center", "right"] = "center",
    label: str = ...,
    span_all: bool = False,
    rect: Any = ...,
) -> Result

Add an empty cell at the end of a column (grids start with 4 columns). Returns the cell id.

  • Operation animation.picker.add_cell
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
kindLiteral["single", "stack", "separator", "grid"]"single"Kind (single / stack / separator / grid).
columnLiteral["left", "center", "right"]"center"Column (left / center / right).
labelstr—Header text (stacks and grids).
span_allboolFalseA separator across all three columns.
rectAny—[x, y, w, h] in page units (the page is 1 high): place the cell on the page canvas instead of a column.

Add Picker Tab

tb.ops.animation.picker.add_tab(*, name: str = "New Tab") -> Result

Add an empty tab at the end. The name is made unique. Returns the tab id.

  • Operation animation.picker.add_tab
  • In Animation
ArgumentTypeDefaultDescription
namestr"New Tab"Name.

Assign Controls to Picker Cell

tb.ops.animation.picker.assign_controls(
    *,
    tab: str = ...,
    cell: str,
    controls: Any = ...,
) -> Result

Add buttons for rig controls to a cell: 'controls' (ids or names; default: the selected controls). Controls the cell already has are skipped.

  • Operation animation.picker.assign_controls
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
cellstrrequiredCell id.
controlsAny—Control ids or names (default: the selection).

Auto-Populate Picker

tb.ops.animation.picker.auto_populate() -> Result

Replace the Control Picker with the automatic layout of the rig: the rig's default pages (for example Body, Hands, Feet, Arms, Legs, Spine, Head & Face, World for a biped; Body, Legs, Paws or Hooves, Head, Tail, World for a quadruped; Wings, Claws, Neck, Wheels, Props where the rig has them), each a canvas of buttons placed where the controls are, in the page's view, over background-art slots; then one "All" page with a quick-select button per module and each module's controls in its side's column (left · center · right, so the sides mirror) — stacks, grids for hands, FK / IK tabs on limbs — and the global controls. One undo step.

  • Operation animation.picker.auto_populate
  • In Animation

Create Empty Picker

tb.ops.animation.picker.create_empty() -> Result

Replace the Control Picker with an empty one: a single "Main" tab to add cells to. One undo step.

  • Operation animation.picker.create_empty
  • In Animation

Delete Picker Cells

tb.ops.animation.picker.delete_cells(*, tab: str = ..., cells: Any) -> Result

Delete cells of a tab. One undo step.

  • Operation animation.picker.delete_cells
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
cellsAnyrequiredCell ids.

Delete Picker Tab

tb.ops.animation.picker.delete_tab(*, tab: str = ...) -> Result

Delete a tab and its cells. The last tab cannot be deleted.

  • Operation animation.picker.delete_tab
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).

Duplicate Picker Cell

tb.ops.animation.picker.duplicate_cell(*, tab: str = ..., cell: str) -> Result

Copy a cell (new id) right after it. Returns the new cell id.

  • Operation animation.picker.duplicate_cell
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
cellstrrequiredCell id.

Duplicate Picker Tab

tb.ops.animation.picker.duplicate_tab(*, tab: str = ...) -> Result

Copy a tab and its cells (new ids) right after it. Returns the new tab id.

  • Operation animation.picker.duplicate_tab
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).

Export Picker

tb.ops.animation.picker.export_file() -> Result

The Control Picker as a .tbpicker file, to reuse the layout on another character built with the same rig modules: the result's 'data' is the file text, 'fileName' a suggested name. Without an authored picker the automatic layout the panel shows is exported. Changes nothing.

  • Operation animation.picker.export_file
  • In Animation

Get Picker

tb.ops.animation.picker.get() -> Result

The Control Picker: tabs, cells (kind, column, label, color, buttons with the control each resolves to) and 'broken', the number of buttons whose control is no longer in the rig. null picker: none authored yet (the panel shows the automatic layout).

  • Operation animation.picker.get
  • In Animation

Import Picker

tb.ops.animation.picker.import_file(*, data: str) -> Result

Replace the Control Picker with a .tbpicker file (buttons resolve by control id, else by name). Returns the tabs, 'buttons' and 'unresolved', the buttons whose control this rig does not have. One undo step.

  • Operation animation.picker.import_file
  • In Animation
ArgumentTypeDefaultDescription
datastrrequiredThe .tbpicker file text.

Import animPicker Picker

tb.ops.animation.picker.import_pkr(*, data: str, images: Any = ...) -> Result

Replace the Control Picker with an animPicker .pkr (mGear): one free-layout page per tab, each item a button drawn as its own shape and color with its label, selecting its controls (resolved by name). 'images' maps image file names to base64 PNG / JPEG data: a tab's background is found by its file name (the file stores the author's own paths). Scripts never run: the controllers-set Select and Key scripts become Select All / Key All, every other script is listed in 'unmapped'. Returns the tabs, 'buttons', 'unresolved' (controls this rig does not have), 'unmapped' and 'missingImages'. One undo step.

  • Operation animation.picker.import_pkr
  • In Animation
ArgumentTypeDefaultDescription
datastrrequiredThe .pkr file text.
imagesAny—{ "file.png": "<base64>" }: the images beside the .pkr.

List Picker Pages

tb.ops.animation.picker.list_tabs() -> Result

The Control Picker's pages in order: id, name, whether it is a canvas page (background art or placed cells), its width in page units (the page is 1 high), its background-art slots and its cell count. Without an authored picker: the pages the panel shows from the rig. Changes nothing.

  • Operation animation.picker.list_tabs
  • In Animation

Mirror Picker Page Layout

tb.ops.animation.picker.mirror_tab(*, tab: str = ...) -> Result

Mirror a page's layout left ↔ right: placed cells and background-art slots flip about the page's center line (art images draw mirrored) and the left and right columns swap. Buttons keep their controls, so this switches which screen side each rig side is drawn on. Mirroring twice restores the page.

  • Operation animation.picker.mirror_tab
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).

Move Picker Cell

tb.ops.animation.picker.move_cell(
    *,
    tab: str = ...,
    cell: str,
    column: Literal["left", "center", "right"],
    before: str = ...,
) -> Result

Move a cell to a column, placed just before cell 'before' (in layout order; omitted: the end of the tab). A separator spanning all columns splits the tab into bands, so 'before' also picks the band.

  • Operation animation.picker.move_cell
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
cellstrrequiredCell id.
columnLiteral["left", "center", "right"]requiredColumn (left / center / right).
beforestr—Cell id to place it before.

Move Picker Page

tb.ops.animation.picker.move_tab(*, tab: str = ..., index: int) -> Result

Move a page to position 'index' (0 = first) in the tab strip.

  • Operation animation.picker.move_tab
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
indexintrequiredIndex.

Place Picker Cells

tb.ops.animation.picker.place_cells(*, tab: str = ..., cells: Any) -> Result

Move or resize cells on a page canvas in one step: 'cells' is a list of { cell, rect } with rect [x, y, w, h] in page units, or null to return the cell to its column.

  • Operation animation.picker.place_cells
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
cellsAnyrequired[{ "cell": id, "rect": [x, y, w, h] | null }, …].

Rename Picker Tab

tb.ops.animation.picker.rename_tab(*, tab: str = ..., name: str) -> Result

Rename a tab (trimmed; an empty name is refused).

  • Operation animation.picker.rename_tab
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
namestrrequiredName.

Set Picker Page Background

tb.ops.animation.picker.set_background(
    *,
    tab: str = ...,
    image: str,
    slot: int = 0,
    rect: Any = ...,
    flip: bool = ...,
    width: float = ...,
) -> Result

Set a background-art slot of a page: 'image' is a picker art file '<rig>/<page>-<view>.png' (the list in docs/design/PICKER-ART-PROMPTS.md, e.g. 'biped/body-front.png'); empty removes the slot. 'slot' picks the slot (default 0; the slot count appends one). 'rect' is where it sits in page units (default: the slot's rect, a new slot covers the page). 'flip' draws it mirrored. 'width' sets the page width in page units. A page with art is a canvas page.

  • Operation animation.picker.set_background
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
imagestrrequiredImage.
slotint0Slot.
rectAny—[x, y, w, h] in page units.
flipbool—Flip.
widthfloat—Page width in page units (0.25–8).

Edit Picker Cell

tb.ops.animation.picker.set_cell(
    *,
    tab: str = ...,
    cell: str,
    label: str = ...,
    color: str = ...,
    kind: Literal["single", "stack", "separator", "grid"] = ...,
    grid_columns: int = ...,
    span_all: bool = ...,
) -> Result

Change a cell: only the values given change. color is '#RRGGBB' (the menu offers the 9-color picker palette) or empty to clear; gridColumns 1–12.

  • Operation animation.picker.set_cell
  • In Animation
ArgumentTypeDefaultDescription
tabstr—Tab id or name (default: the first tab).
cellstrrequiredCell id.
labelstr—Label.
colorstr—Color.
kindLiteral["single", "stack", "separator", "grid"]—Kind (single / stack / separator / grid).
grid_columnsint—Grid Columns.
span_allbool—Span All.

Pin Controls

tb.ops.animation.pin_controls(
    *,
    clip: str = ...,
    controls: Any = ...,
    range: Any,
    anchor: float = ...,
    blend: int = 0,
    channels: Any = ...,
    step: int = 1,
    staged: str = ...,
) -> Result

Hold controls' world placement across a frame range, whatever their parents do (pin feet / hands; Auto-Rig Pro pinning, animBot sticky). The placement is taken at 'anchor' (default: the range start); 'blend' frames ease into and out of the pin outside the range. Channels default to translate + rotate. Keys every 'step' frames. An elbow or knee pole control also keys its Pin (1 over the range, easing with the blend), so the elbow or knee plants on the held pole. One undo step.

  • Operation animation.pin_controls
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlsAny—Control names (default: selected controls).
rangeAnyrequired[start, end] frames to pin.
anchorfloat—Frame whose placement is held (default: range start). (frames).
blendint0Ease-in / ease-out frames outside the range. (frames; 0…100).
channelsAny—{t, r, s} (default translate + rotate).
stepint1Step (frames; 1…100).
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Add Pose Layer

tb.ops.animation.pose_layer_add(
    *,
    clip: str = ...,
    name: str = "Full-Body IK Pose",
) -> Result

Add a pose layer to a skeleton clip: an override layer on top whose full-body IK goal channels are absolute world goals (FULLBODY-IK-RUST.md §6.4). Posing an effector there and keying it (W / E then S, or animation.key_goals) pins it at that goal over the clip and its fix-ups; the layer weight blends from the clip's pose toward the goals. Adds the clip's effectors when it has none. The new layer becomes the active layer.

  • Operation animation.pose_layer_add
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
namestr"Full-Body IK Pose"Name.

Apply Pose

tb.ops.animation.pose_library.apply(
    *,
    clip: str = ...,
    pose: str,
    frame: float,
    targets: Any = ...,
    mirrored: bool = False,
    blend: float = 1.0,
) -> Result

Key a library pose at 'frame' on the active layer (animBot pose library): 'targets' limits it to those bones / controls (default: every target the pose holds that the clip has), 'mirrored' applies each target's pose to its opposite-side partner (center targets mirror in place), 'blend' 0–1 moves part-way from the current pose. Targets the clip lacks are skipped and reported.

  • Operation animation.pose_library.apply
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
posestrrequiredPose id or name.
framefloatrequiredFrame to key. (frames).
targetsAny—Only these bones / controls.
mirroredboolFalseMirrored.
blendfloat1.01 = the full pose, 0.5 = halfway from the current pose. (0…1).

Delete Pose

tb.ops.animation.pose_library.delete(*, pose: str) -> Result

Remove a pose from the library. One undo step.

  • Operation animation.pose_library.delete
  • In Control Rig, Animation
ArgumentTypeDefaultDescription
posestrrequiredPose id or name.

List Poses

tb.ops.animation.pose_library.list() -> Result

The library's poses: id, name, target count, capture time; and the targets the preferred default pose covers.

  • Operation animation.pose_library.list
  • In Control Rig, Animation

Mirror Pose into the Library

tb.ops.animation.pose_library.mirror(*, pose: str, name: str = ...) -> Result

Add a left / right mirrored copy of a library pose as a new entry (data only, nothing is keyed): each target's pose moves to its opposite-side partner and center targets mirror in place. Returns the new pose id.

  • Operation animation.pose_library.mirror
  • In Animation
ArgumentTypeDefaultDescription
posestrrequiredPose id or name.
namestr—Name of the copy (default "<pose> (mirrored)", made unique).

Rename Pose

tb.ops.animation.pose_library.rename(*, pose: str, name: str) -> Result

Rename a library pose; the id is kept.

  • Operation animation.pose_library.rename
  • In Control Rig, Animation
ArgumentTypeDefaultDescription
posestrrequiredPose id or name.
namestrrequiredName.

Save Pose

tb.ops.animation.pose_library.save(
    *,
    source: Literal["clip", "rig"] = "clip",
    clip: str = ...,
    frame: float = ...,
    name: str = ...,
    targets: Any = ...,
    replace: str = ...,
) -> Result

Save a pose into the pose library under 'name' (Auto-Rig Pro / animBot pose library): source clip captures the evaluated pose of 'targets' (default: every bone / control of the clip) at 'frame'; source rig captures the built rig's current posed controls ('targets': control names, default every control). 'replace' overwrites an existing pose (its id and name are kept). Returns the pose id.

  • Operation animation.pose_library.save
  • In Control Rig, Animation
ArgumentTypeDefaultDescription
sourceLiteral["clip", "rig"]"clip"Source (clip / rig).
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloat—Frame to capture (source clip). (frames).
namestr—Pose name (default "Pose", made unique).
targetsAny—Bones / controls (default: all).
replacestr—Id or name of a pose to overwrite.

Set Default Pose

tb.ops.animation.pose_library.set_default(
    *,
    clip: str = ...,
    frame: float = ...,
    targets: Any = ...,
    clear: bool = False,
) -> Result

Snapshot the preferred default pose (animBot Snapshot Preferred Default Pose): the evaluated pose of 'targets' (default: all) at 'frame' becomes what Reset Pose, Blend to Default and Scale From Default return to; other targets keep their snapshot. clear removes the snapshot of 'targets' (default: all) so they return to the bind pose again.

  • Operation animation.pose_library.set_default
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framefloat—Frame to capture (not needed with clear). (frames).
targetsAny—Bones / controls (default: all).
clearboolFalseClear.

Rebind Control Clip

tb.ops.animation.rebind_control_clip(*, clip: str = ..., frames: Any) -> Result

Re-express control curves across re-derived control frames, world-preserving: newLocal = inv(newFrame) · oldFrame · oldLocal at every key time.

  • Operation animation.rebind_control_clip
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
framesAnyrequired[{ target, oldFrame: [16], newFrame: [16], rotationOrder?: 0..5 }].

Remap Control Clips

tb.ops.animation.remap_control_clips(
    *,
    controls: Any,
    old_names: Any = {},
    renames: Any = {},
) -> Result

Re-point control-rig clips' control references by control name after controls were re-minted. 'controls' lists the live controls; 'renames' maps old → new names.

  • Operation animation.remap_control_clips
  • In Animation
ArgumentTypeDefaultDescription
controlsAnyrequired[{ id, name }].
old_namesAny{}Old Names.
renamesAny{}Renames.

Remap Skeleton Clips

tb.ops.animation.remap_skeleton_clips(*, old_names: Any = {}) -> Result

Re-point skeleton clips' bone references at the current skeleton by bone name after bones were regenerated. 'oldNames' maps removed bone ids to their names.

  • Operation animation.remap_skeleton_clips
  • In Animation
ArgumentTypeDefaultDescription
old_namesAny{}{ "<old bone id>": "name" }.

Rename Clip

tb.ops.animation.rename_clip(*, clip: str = ..., name: str) -> Result

Rename a skeleton or control-rig clip (vertex caches are read-only). Clip names are unique and cannot contain path separators; mixer strips still showing the old name follow.

  • Operation animation.rename_clip
  • In Previewer, Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
namestrrequiredName.

Reset Pose

tb.ops.animation.reset_pose(
    *,
    clip: str = ...,
    targets: Any,
    channels: Literal["all", "trs", "translate", "rotate", "scale"] = "all",
    frame: float = ...,
    range: Any = ...,
    defaults: Any = ...,
) -> Result

Return targets to their default pose (animBot Reset Pose; Auto-Rig Pro / mGear reset): channels all (transforms + custom attributes, space switches kept), trs, translate, rotate or scale. At 'frame' the default is keyed; with 'range' every key time of the targets inside it is reset. 'defaults' overrides the rest pose per target (the preferred default pose snapshot).

  • Operation animation.reset_pose
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetsAnyrequiredBones / controls.
channelsLiteral["all", "trs", "translate", "rotate", "scale"]"all"Channels (all / trs / translate / rotate / scale).
framefloat—Frame to key the default pose at. (frames).
rangeAny—[start, end]: reset every key time of the targets inside.
defaultsAny—Preferred default pose { target: [9 channels] }.

Retarget Animation

tb.ops.animation.retarget(
    *,
    source: str,
    clips: Any = ...,
    options: Any = ...,
    setup: str = "",
    save_setup: bool = True,
    setup_name: str = "",
    confirm_dissimilar: bool = False,
    output: str = "",
    rig: str = "",
    control_options: Any = ...,
    ground: Sequence[ObjectRef] = ...,
    adjust_layer: bool = False,
) -> Result

Retarget clips of a staged source skeleton onto this document's skeleton: rotation-delta transfer with arc-length chains, automatic pose match, proportional root scale and contact-preserving leg IK. Produces new skeleton clips with retarget provenance and locks the mapping as a retarget setup, in one undo step. Very different characters (body plan, proportions, leg poses) need confirmDissimilar.

  • Operation animation.retarget
  • In Animation
ArgumentTypeDefaultDescription
sourcestrrequiredToken from tb_api::stage_retarget_source.
clipsAny—Source clip ids or names (default: every clip).
optionsAny—RetargetOptions (default: the recommended settings).
setupstr""A saved retarget setup (id or name) to reuse.
save_setupboolTrueLock the mapping as a retarget setup (re-imports of this skeleton reuse it).
setup_namestr""Setup Name.
confirm_dissimilarboolFalseBake even when the characters are very different.
outputstr""skeleton | controlRig | both (default: both when a rig is given, else skeleton).
rigstr""Token of a staged built rig (tb_api::stage_target_rig) for control-rig outputs; empty = the document's own control rig when an output wants one.
control_optionsAny—ControlBakeOptions: per limb IK / FK / both (limbModes), matchIkFk.
groundSequence[ObjectRef]—Mesh objects the character walks on (stairs, rocks, terrain): planted feet stand on them and the body rises and falls with them. Empty = the flat floor.
adjust_layerboolFalseGive every baked skeleton clip an Adjust layer: relative full-body IK offsets on a normal additive layer, with the planted feet held from the contacts.

Analyze Retarget

tb.ops.animation.retarget_analyze(
    *,
    source: str,
    options: Any = ...,
    setup: str = "",
) -> Result

Characterize the staged source skeleton and the document's skeleton (biped / quadruped profiles), pair their bones (roles, arc length for chains of different lengths), match rest poses and scales, and report every finding in plain language. Writes nothing.

  • Operation animation.retarget_analyze
  • In Animation
ArgumentTypeDefaultDescription
sourcestrrequiredToken from tb_api::stage_retarget_source.
optionsAny—RetargetOptions (mapping overrides, pose, scale, contacts, root motion).
setupstr""A saved retarget setup (id or name) whose options to use.

Capture Pose

tb.ops.animation.retarget_capture_pose(*, clip: str = "", frame: float = 0.0) -> Result

Read the character's pose in a skeleton clip at a frame as the target's reference pose for retargeting: pose the character by hand to match the source's rest pose, capture it, and pass the result as options.pose to animation.retarget. It replaces automatic Pose Match. Writes nothing.

  • Operation animation.retarget_capture_pose
  • In Animation
ArgumentTypeDefaultDescription
clipstr""Skeleton clip holding the pose (id or name; empty = the only clip).
framefloat0.0Frame of the pose.

Commit Retarget

tb.ops.animation.retarget_commit(*, staged: str, replace: str = "") -> Result

Add clips (and the locked setup) a background retarget bake produced, in one undo step.

  • Operation animation.retarget_commit
  • In Animation
ArgumentTypeDefaultDescription
stagedstrrequiredToken from tb_api::stage_retarget_results.
replacestr""A document clip to re-retarget in place: only its BaseAnimation bone curves are rewritten; its other layers, Adjust layer and keys stay.

Delete Retarget Setup

tb.ops.animation.retarget_setup_delete(*, setup: str) -> Result

Remove a locked retarget setup (decode-basis records belong to clip reconciliation and are refused).

  • Operation animation.retarget_setup_delete
  • In Animation
ArgumentTypeDefaultDescription
setupstrrequiredSetup.

Save Retarget Setup

tb.ops.animation.retarget_setup_save(
    *,
    source: str,
    options: Any = ...,
    name: str = "",
) -> Result

Lock a mapping (source skeleton + options) as a retarget setup without baking, or update the setup of the same source skeleton.

  • Operation animation.retarget_setup_save
  • In Animation
ArgumentTypeDefaultDescription
sourcestrrequiredSource.
optionsAny—Options.
namestr""Name.

Retime Clip

tb.ops.animation.retime_clip(
    *,
    clip: str = ...,
    speed: float = 0.0,
    frames: float = 0.0,
    fps: float = 0.0,
    resample: bool = False,
    as_copy: bool = False,
) -> Result

Change how fast a clip plays: by a speed factor or to a target length in frames, and / or convert it to another frame rate (the timing is kept). Resample puts every key on a whole frame. Replaces the clip unless asCopy; one undo step.

  • Operation animation.retime_clip
  • In Previewer, Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
speedfloat0.0Playback speed factor (2 = twice as fast); 0 = unchanged. (0…1000).
framesfloat0.0Target length in frames; 0 = unchanged. (frames; 0…10000000).
fpsfloat0.0Frame rate to convert to; 0 = unchanged. (0…1000).
resampleboolFalseKey every whole frame afterwards.
as_copyboolFalseKeep the original and add the result as a new clip.

Retime Keys

tb.ops.animation.retime_keys(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    pins: Any,
    ease: Any = ...,
    snap: bool = True,
    drag: str = ...,
) -> Result

Retime Pins: move pins on the time axis and every key of the given curves follows — keys between two pins spread across the moved segment (eased by that segment's 'ease', −1 … 1), keys before the first pin or after the last shift with it. Pins on every keyed frame move whole pose columns rigidly. Free tangent slopes follow the stretch; the key selection follows the keys. Pass a stable 'drag' id while dragging a pin.

  • Operation animation.retime_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids to retime (omitted: every curve of 'targets', else of the clip).
targetsAny—Bone / control names or ids whose curves retime.
pinsAnyrequired[{ "from": frame, "to": frame }, …].
easeAny—Per segment between consecutive pins: −1 … 1 (0 linear).
snapboolTrueRound the retimed keys to whole frames.
dragstr—Gesture id for coalescing.

Root Motion → In Place

tb.ops.animation.root_motion_to_in_place(
    *,
    clip: str = ...,
    clips: Any = ...,
    source: str = "",
    axes: str = "xz",
    rotation: Literal["none", "yaw"] = "none",
    trajectory: Literal["linear", "smoothed", "full"] = "linear",
    smoothing: int = 15,
    lock_feet: bool = True,
) -> Result

Remove a clip's travel so it plays on the spot (batch over 'clips'; skeleton and Control Rig clips). The travel is read from the hips (or 'source') on the chosen axes; Linear keeps a constant speed so a character controller moving at the reported speed reproduces the motion with the feet planted. Planted feet of skeleton clips are held first (lockFeet); Control Rig clips keep their IK feet's keys. Replaces the clips; one undo step.

  • Operation animation.root_motion_to_in_place
  • In Previewer, Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
clipsAny—Clip names to convert together (batch); omit to use 'clip'.
sourcestr""Joint the travel is read from (default: the hips).
axesstr"xz"World axes to extract: letters of x, y (up), z.
rotationLiteral["none", "yaw"]"none"Also extract turns about the up axis. (none / yaw).
trajectoryLiteral["linear", "smoothed", "full"]"linear"Trajectory (linear / smoothed / full).
smoothingint15Window of the Smoothed trajectory. (frames; 1…600).
lock_feetboolTrueHold planted feet where they slide.

Scale Keys

tb.ops.animation.scale_keys(
    *,
    clip: str = ...,
    keys: Any,
    time_scale: float = 1.0,
    time_pivot: float = 0.0,
    value_scale: float = 1.0,
    value_pivot: float = 0.0,
    snap: bool = False,
    drag: str = ...,
) -> Result

Scale keys in time about a pivot frame and in value about a pivot value (as the Dope Sheet, Graph Editor and Time Slider region handles do). Free tangent slopes scale with the keys; a negative time scale reverses them. Pinned keys stay. Pass a stable 'drag' id while dragging a handle: the steps coalesce into one undo step.

  • Operation animation.scale_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredKeys at their current positions.
time_scalefloat1.0Time scale factor (negative reverses).
time_pivotfloat0.0Frame the times scale about. (frames).
value_scalefloat1.0Value scale factor.
value_pivotfloat0.0Value the values scale about.
snapboolFalseRound the scaled times to whole frames.
dragstr—Gesture id for coalescing.

Sculpt Keys

tb.ops.animation.sculpt_keys(
    *,
    clip: str = ...,
    hits: Any,
    mode: Literal["value", "smooth", "time"] = "value",
    amount: float,
    auto_tangent: bool = True,
    drag: str = ...,
) -> Result

One brush step of the Sculpt Keys tool: 'hits' lists keys under the brush with their falloff weights (graph-editor hit test; pinned keys are skipped); mode value pushes values by amount × falloff, smooth blends toward the neighbours' average by amount × falloff, time shifts times by amount frames × falloff. Locked layers are skipped. Steps of one stroke coalesce per 'drag'.

  • Operation animation.sculpt_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
hitsAnyrequired[{ "key": "curveId:frame", "falloff": 0..1 }].
modeLiteral["value", "smooth", "time"]"value"Mode (value / smooth / time).
amountfloatrequiredValue delta, smooth strength, or frames.
auto_tangentboolTrueAuto Tangent.
dragstr—Drag.

Select Keys

tb.ops.animation.select_keys(
    *,
    clip: str = ...,
    keys: Any,
    mode: str = "replace",
) -> Result
  • Operation animation.select_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredActual keys to select.
modestr"replace"Mode.

Select Opposite

tb.ops.animation.select_opposite(
    *,
    mode: Literal["replace", "add"] = "replace",
    clip: str = ...,
) -> Result

Select the mirror partners of the selected bones or controls (left/right naming rules shared with Mirror Pose; animBot Select Opposite). mode replace swaps to the opposite side; add keeps the current selection too. Center targets stay selected. Not an undo step.

  • Operation animation.select_opposite
  • In Animation
ArgumentTypeDefaultDescription
modeLiteral["replace", "add"]"replace"Mode (replace / add).
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).

Loop Clip

tb.ops.animation.set_clip_looping(*, clip: str = ..., looping: bool = True) -> Result

Mark a clip as a cycle (its end flows back into its start) or not. Rig physics simulates a seamless loop for a looping clip when it bakes.

  • Operation animation.set_clip_looping
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
loopingboolTrueLooping.

Clip Physics

tb.ops.animation.set_clip_physics(
    *,
    clip: str = ...,
    crossfade: int = ...,
    warmup: int = ...,
    tolerance: float = ...,
    preroll: int = ...,
    open_end: bool = ...,
    gesture: str = ...,
) -> Result

Set how rig physics simulates a clip, saved on the clip: crossfade (frames blended across a looping clip's wrap, 0–60), warmup (most warm-up cycles, 1–20), tolerance (the settle test as a share of the body's size, 0.0001–0.1), preroll (frames a clip that plays once holds its first pose before it starts, 0–240) and openEnd (how an exported looping clip ends: false repeats the first pose on the last frame, true leaves that frame out for engines that wrap from the last frame to the first). Loop Simulation and Bake Physics to Keys read them. Values left out keep the clip's.

  • Operation animation.set_clip_physics
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
crossfadeint—Crossfade.
warmupint—Warmup.
tolerancefloat—Tolerance.
prerollint—Preroll.
open_endbool—Open End.
gesturestr—Coalescing key of one drag.

Set Inbetweens

tb.ops.animation.set_inbetweens(
    *,
    clip: str = ...,
    spacing: int = 2,
    mode: Literal["insert", "remove"] = "insert",
    frame: float = ...,
    targets: Any = ...,
    curves: Any = ...,
    keys: Any = ...,
    pinned: Any = ...,
) -> Result

Frame mode: insert (push keys at/after 'frame' later) or remove (pull keys after 'frame' earlier) 'spacing' frames on 'curves' and/or 'targets' (default all curves). Range mode (with 'keys'): re-space the keys 'spacing' frames apart.

  • Operation animation.set_inbetweens
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
spacingint2Spacing (frames; 1…10000).
modeLiteral["insert", "remove"]"insert"Mode (insert / remove).
framefloat—Frame (frame mode). (frames).
targetsAny—Targets.
curvesAny—Frame mode: curve ids (a graph popup's scope).
keysAny—Range mode: keys to re-space.
pinnedAny—Pinned.

Set Infinity

tb.ops.animation.set_infinity(
    *,
    clip: str = ...,
    curves: Any = ...,
    keys: Any = ...,
    targets: Any = ...,
    pre: Literal["constant", "linear", "cycle", "cycleOffset", "oscillate"] = ...,
    post: Literal["constant", "linear", "cycle", "cycleOffset", "oscillate"] = ...,
) -> Result

Set pre- and/or post-infinity of curves (graph editor ge.preInfinity* / ge.postInfinity*).

  • Operation animation.set_infinity
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curves.
keysAny—Keys whose curves change.
targetsAny—Targets.
preLiteral["constant", "linear", "cycle", "cycleOffset", "oscillate"]—Pre (constant / linear / cycle / cycleOffset / oscillate).
postLiteral["constant", "linear", "cycle", "cycleOffset", "oscillate"]—Post (constant / linear / cycle / cycleOffset / oscillate).

Set Keyframe

tb.ops.animation.set_key(
    *,
    clip: str = ...,
    target: str,
    channels: Any = ...,
    channel: str = ...,
    value: float = ...,
    frame: float,
    tangent: Literal["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"] = "auto",
    layer: str = ...,
    space: Literal["layer", "pose"] = "layer",
    tag: str = ...,
) -> Result

Key channels of one bone, rig control or scene node at a frame. An existing key keeps its tangent shape and takes the new value. Values are layer values; with space = pose they are absolute pose values converted for the destination layer. Channels given without a value key the current evaluated value.

  • Operation animation.set_key
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetstrrequiredBone, rig control or scene node name or id.
channelsAny—{ "rotateX": 10, "tx": 1 } or ["rotateX", …] (current values).
channelstr—Single channel (with 'value').
valuefloat—Value.
framefloatrequiredFrame to key. (frames).
tangentLiteral["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"]"auto"Tangent (auto / linear / step / stepNext / flat / plateau / autoClamped).
layerstr—Destination layer name or id (default: the active layer).
spaceLiteral["layer", "pose"]"layer"Space (layer / pose).
tagstr—'key', 'breakdown' or 'inbetween': the keyed keys take this tag. Omitted: new keys are plain keys and re-keyed keys keep their tag.

Set Key All Channels

tb.ops.animation.set_key_all(
    *,
    clip: str = ...,
    targets: Any,
    frame: float,
    tangent: Literal["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"] = "auto",
) -> Result

Key all nine transform channels of bones, rig controls or scene nodes at their current evaluated pose, converted for the active layer. Rig controls also key their keyable attributes and, once per module, the module's keyable settings (enum / bool stepped).

  • Operation animation.set_key_all
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetsAnyrequiredTarget names or ids.
framefloatrequiredFrame to key. (frames).
tangentLiteral["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"]"auto"Tangent (auto / linear / step / stepNext / flat / plateau / autoClamped).

Edit Tangent Handle

tb.ops.animation.set_tangent(
    *,
    clip: str = ...,
    key: str,
    handle: Literal["in", "out"],
    slope: float,
    weight: float = ...,
    unified: bool = True,
    drag: str = ...,
) -> Result

Set one key's tangent handle slope (and weight) — graph editor handle drag. The edited handle becomes Free; unified tangents move both handles. Coalesces per 'drag'.

  • Operation animation.set_tangent
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keystrrequired"curveId:frame".
handleLiteral["in", "out"]requiredHandle (in / out).
slopefloatrequiredValue units per frame.
weightfloat—Handle weight (weighted tangents). (0…10).
unifiedboolTrueUnified.
dragstr—Drag.

Set Tangent Type

tb.ops.animation.set_tangent_type(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
    type: Literal["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"],
) -> Result

Set the in/out tangent type of keys; slopes re-solve from the type's definition.

  • Operation animation.set_tangent_type
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys (or use 'targets').
targetsAny—Targets.
typeLiteral["auto", "linear", "step", "stepNext", "flat", "plateau", "autoClamped"]requiredType (auto / linear / step / stepNext / flat / plateau / autoClamped).

Weighted Tangents

tb.ops.animation.set_weighted_tangents(
    *,
    clip: str = ...,
    curves: Any = ...,
    keys: Any = ...,
    targets: Any = ...,
    weighted: bool,
) -> Result

Switch curves between weighted and non-weighted tangents (graph editor ge.weightedTangents / ge.nonWeightedTangents); non-weighted resets every weight to 1/3.

  • Operation animation.set_weighted_tangents
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curves.
keysAny—Keys whose curves change.
targetsAny—Targets.
weightedboolrequiredWeighted.

Share Key Times

tb.ops.animation.share_key_times(
    *,
    clip: str = ...,
    targets: Any,
    from_: Any = ...,
    range: Any = ...,
    preserve: Literal["shape", "tangentType"] = "shape",
) -> Result

Key every channel of 'targets' at the union of their key times (animBot Share Key Times), inside 'range' when given. 'from' limits the source times to those targets (Share Key Times From Last Selected). preserve: shape (the curves keep their exact shape) or tangentType (new keys take the neighbouring key's tangent types).

  • Operation animation.share_key_times
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
targetsAnyrequiredTargets.
from_Any—Source targets (default: all 'targets').
rangeAny—[start, end].
preserveLiteral["shape", "tangentType"]"shape"Preserve (shape / tangentType).

Simplify Curves

tb.ops.animation.simplify_curves(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    tolerance: float = 0.01,
    method: Literal["bounded", "chord"] = "bounded",
) -> Result

Remove keys while the simplified curve stays within 'tolerance' of the original (method 'bounded', default); 'chord' tests each key against the line through its neighbouring keys.

  • Operation animation.simplify_curves
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
tolerancefloat0.01Tolerance (0…1000000000).
methodLiteral["bounded", "chord"]"bounded"Method (bounded / chord).

Slide Curve

tb.ops.animation.slide_curves(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    frames: float,
) -> Result

Slide curve shapes through their fixed key times by 'frames' (graph editor ge.slideCurve).

  • Operation animation.slide_curves
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
framesfloatrequiredFrames (frames).

Smooth Curves

tb.ops.animation.smooth_curves(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    sigma: float = 1.0,
    iterations: int = 1,
) -> Result

Gaussian-smooth key values; end keys keep their values.

  • Operation animation.smooth_curves
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
sigmafloat1.0Sigma (0…1000).
iterationsint1Iterations (0…1000).

Snap Keys to Frames

tb.ops.animation.snap_keys(*, clip: str = ..., keys: Any, locked: Any = ...) -> Result

Round key times to whole frames (graph editor ge.snapToFrames); locked curves are skipped.

  • Operation animation.snap_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredKeys to snap.
lockedAny—Locked curve ids.

Buffer Curve Snapshot

tb.ops.animation.snapshot_buffer_curves(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
) -> Result

Snapshot curves' keys into a buffer value (graph editor buffer curves). Returns the buffer; nothing changes.

  • Operation animation.snapshot_buffer_curves
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.

Swap Buffer Curves

tb.ops.animation.swap_buffer_curves(*, clip: str = ..., buffer: Any) -> Result

Swap curves' keys with a buffer value. Returns the new buffer (what the curves held) — swapping again restores.

  • Operation animation.swap_buffer_curves
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
bufferAnyrequiredBuffer.

Switch Enum, Keep Pose

tb.ops.animation.switch_enum(
    *,
    clip: str = ...,
    control: str = ...,
    attr: str,
    value: str,
    frame: float,
    keep: Any = ...,
) -> Result

Set a keyable enum attribute of a rig control (default: the one selected control) to 'value' (label or 0-based index) at 'frame' without the controls moving: their world pose is kept by compensating their channels after the switch. 'keep' lists the controls to hold (default: the control itself). The enum is keyed stepped, the previous value and pose held one frame before. One undo step.

  • Operation animation.switch_enum
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlstr—The control that owns the enum (default: the one selected control).
attrstrrequiredThe enum attribute's name.
valuestrrequiredThe new value: a label or a 0-based index.
framefloatrequiredThe frame the switch happens on. (frames).
keepAny—Control names whose world pose is kept (default: the control).

Switch Space

tb.ops.animation.switch_space(
    *,
    clip: str = ...,
    controls: Any = ...,
    space: str = ...,
    orient_space: str = ...,
    preset: Literal["world", "parent"] = ...,
    scope: Literal["frame", "keys", "range", "all"] = "frame",
    frame: float = ...,
    range: Any = ...,
    step: int = 1,
    channels: Any = ...,
    euler_filter: bool = True,
    staged: str = ...,
) -> Result

Switch controls to another parent space without a pop, keyed into the clip (animBot Space Switcher, Auto-Rig Pro Snap Child Of). scope frame: the switch at 'frame' (previous space and pose held at frame − 1). keys / all: every key of the controls inside 'range' / the clip is re-expressed in the new space. range: baked every 'step' frames, so the world motion is kept exactly. The space attribute is keyed stepped, restored after a range. Channels default to translate + rotate. One undo step.

  • Operation animation.switch_space
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlsAny—Control names (default: selected controls).
spacestr—Space label ('World', 'COG' …) or 0-based index (or pass 'preset').
orient_spacestr—Instead of 'space': the space a control with split spaces (head, IK hand, eye master) turns with.
presetLiteral["world", "parent"]—Instead of 'space': each control to its World space, or to its first non-World (parent) space; default controls: the selection, else every space-switchable control. (world / parent).
scopeLiteral["frame", "keys", "range", "all"]"frame"Scope (frame / keys / range / all).
framefloat—Switch frame (scope frame). (frames).
rangeAny—[start, end] (scopes keys and range; default: the whole clip).
stepint1Bake every N frames (scope range). (1…100).
channelsAny—{t, r, s} channel groups (default translate + rotate).
euler_filterboolTrueEuler Filter.
stagedstr—A result the background bake job computed for these parameters (hosts; scripts leave it out).

Tangent: Auto

tb.ops.animation.tangent_auto(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
) -> Result

Tangent shortcut: same as animation.set_tangent_type with a fixed type.

  • Operation animation.tangent_auto
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys (or use 'targets').
targetsAny—Targets.

Tangent: Flat

tb.ops.animation.tangent_flat(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
) -> Result

Tangent shortcut: same as animation.set_tangent_type with a fixed type.

  • Operation animation.tangent_flat
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys (or use 'targets').
targetsAny—Targets.

Tangent: Linear

tb.ops.animation.tangent_linear(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
) -> Result

Tangent shortcut: same as animation.set_tangent_type with a fixed type.

  • Operation animation.tangent_linear
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys (or use 'targets').
targetsAny—Targets.

Tangent: Plateau

tb.ops.animation.tangent_plateau(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
) -> Result

Tangent shortcut: same as animation.set_tangent_type with a fixed type.

  • Operation animation.tangent_plateau
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys (or use 'targets').
targetsAny—Targets.

Tangent: Step

tb.ops.animation.tangent_step(
    *,
    clip: str = ...,
    keys: Any = ...,
    targets: Any = ...,
) -> Result

Tangent shortcut: same as animation.set_tangent_type with a fixed type.

  • Operation animation.tangent_step
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAny—Keys (or use 'targets').
targetsAny—Targets.

Clear and Bake Temp Controls

tb.ops.animation.temp_controls.clear_and_bake(
    *,
    clip: str = ...,
    names: Any = ...,
) -> Result

Write the motion temp controls give their rig controls back onto the controls' keys over each held range (on the control's and the temp control's key times, or every frame, as made), then remove the temp controls and their curves. One undo step.

  • Operation animation.temp_controls.clear_and_bake
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
namesAny—Temp control or control names (default: all).

Create Temp Controls

tb.ops.animation.temp_controls.create(
    *,
    clip: str = ...,
    controls: Any = ...,
    space: Literal["world", "object", "camera"] = "world",
    object: str = ...,
    camera: Any = ...,
    bake: Literal["keys", "frames"] = "keys",
    range: Any = ...,
) -> Result

Give the selected rig controls (or 'controls') keyable Temp Controls over 'range' (default: the clip): each is a stand-in that carries the control's motion, measured in World, another control's space (space object, 'object') or the view camera's (space camera, 'camera' its 16-number world matrix), keyed on the control's own key times (bake keys) or every frame (bake frames). While a temp control is on, its control follows it every frame; key or move the temp control ({control}_temp) like any target, then animation.temp_controls.clear_and_bake. One undo step.

  • Operation animation.temp_controls.create
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlsAny—Control names (default: the selected controls).
spaceLiteral["world", "object", "camera"]"world"Space (world / object / camera).
objectstr—Space object: the control the temp controls move with.
cameraAny—Space camera: the view camera's world matrix (16 numbers, column-major).
bakeLiteral["keys", "frames"]"keys"Bake (keys / frames).
rangeAny—[start, end] (default: the whole clip).

List Temp Controls

tb.ops.animation.temp_controls.list(*, clip: str = ...) -> Result

The clip's temp controls: name, held control, space, range, bake and whether each is on. Read-only.

  • Operation animation.temp_controls.list
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).

Key Temp Control

tb.ops.animation.temp_controls.set_world(
    *,
    clip: str = ...,
    control: str,
    frame: float,
    world: Any,
) -> Result

Key a temp control's translate / rotate at 'frame' so it (and the control it holds) sits at 'world' (16 numbers, column-major), measured in its space at that frame. The Animation viewport's manipulator calls this when it drags a held control. One undo step.

  • Operation animation.temp_controls.set_world
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlstrrequiredThe temp control's name, or the control it holds.
framefloatrequiredFrame.
worldAnyrequiredWorld.

Toggle Temp Controls

tb.ops.animation.temp_controls.toggle(
    *,
    clip: str = ...,
    names: Any = ...,
    enabled: bool = ...,
) -> Result

Turn temp controls off (their controls play their own keys; nothing is lost) or back on. Without 'enabled' they flip: off when any is on. One undo step.

  • Operation animation.temp_controls.toggle
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
namesAny—Temp control or control names (default: all).
enabledbool—Enabled.

Tidy Channels

tb.ops.animation.tidy_channels(
    *,
    clip: str = ...,
    curves: Any = ...,
    targets: Any = ...,
    keys: Any = ...,
    all: bool = False,
    redundant: bool = True,
    statics: Literal["keep", "collapse", "delete"] = "collapse",
    tolerance: float = 0.001,
) -> Result

Clean up curves: remove keys the curve does not need (the curve stays within 'tolerance'), and treat static curves (the value never changes) by 'statics': keep, collapse to one key (lossless, default) or delete (the channel falls back to its rest value). Scope: 'curves', 'targets' or 'keys', or 'all' for every curve of the clip. Curves on locked layers are skipped. One undo step.

  • Operation animation.tidy_channels
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
curvesAny—Curve ids (or 'targets' / 'keys').
targetsAny—Targets.
keysAny—Keys whose curves are processed.
allboolFalseEvery curve of the clip.
redundantboolTrueRemove keys the curve does not need.
staticsLiteral["keep", "collapse", "delete"]"collapse"Statics (keep / collapse / delete).
tolerancefloat0.001Value tolerance (curve units). (0…1000000000).

Tint Keys

tb.ops.animation.tint_keys(
    *,
    clip: str = ...,
    action: Literal["set", "remove", "resetAll"] = "set",
    tag: Literal["key", "inbetween", "breakdown"] = "key",
    keys: Any = ...,
    targets: Any = ...,
    range: Any = ...,
    frame: float = ...,
) -> Result

Tag keys: action set gives the keys 'tag' (key = red, inbetween = amber, breakdown = green); remove deletes the keys that carry 'tag'; resetAll makes every key of the clip a plain key. Keys: 'keys', else 'targets' + 'range', else 'targets' + 'frame'. Tags never change the motion.

  • Operation animation.tint_keys
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
actionLiteral["set", "remove", "resetAll"]"set"Action (set / remove / resetAll).
tagLiteral["key", "inbetween", "breakdown"]"key"Tag (key / inbetween / breakdown).
keysAny—Keys to tint.
targetsAny—Targets.
rangeAny—Range.
framefloat—Frame (no keys selected). (frames).

Toggle Key Pins

tb.ops.animation.toggle_key_pins(*, clip: str = ..., keys: Any) -> Result
  • Operation animation.toggle_key_pins
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
keysAnyrequiredLive original key references to toggle.

Sculpt Motion Trail

tb.ops.animation.trail.sculpt(
    *,
    clip: str = ...,
    control: str = ...,
    mode: Literal["push", "smooth"] = "push",
    frame: float,
    radius: float = 6.0,
    offset: Vec3Like = ...,
    strength: float = 0.5,
    drag: str = ...,
) -> Result

Brush a rig control's motion trail over the frames within 'radius' of 'frame': Push moves them by 'offset' [x, y, z] (world units) with a smooth falloff, Smooth relaxes each toward its neighbours by 'strength'. The control keeps its rotation; its translate channels are keyed on every frame of the brushed window. One undo step.

  • Operation animation.trail.sculpt
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlstr—Rig control name (default: the one selected control).
modeLiteral["push", "smooth"]"push"Mode (push / smooth).
framefloatrequiredThe brush center. (frames).
radiusfloat6.0Radius (frames; 1…1000).
offsetVec3Like—Push: the world move at the center.
strengthfloat0.5Smooth: how far each frame moves toward its neighbours' average. (factor; 0…1).
dragstr—Drag.

Move Trail Keys

tb.ops.animation.trail.set_positions(
    *,
    clip: str = ...,
    control: str = ...,
    positions: Any,
    drag: str = ...,
) -> Result

Key a rig control (default: the one selected control) so it passes through world positions on frames: 'positions' [[frame, x, y, z], …] (a key handle dragged on its motion trail). It keeps its rotation; its translate channels are keyed on those frames. One undo step.

  • Operation animation.trail.set_positions
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlstr—Rig control name (default: the one selected control).
positionsAnyrequired[[frame, x, y, z], …] in world space.
dragstr—Drag.

Shape Trail Tangent

tb.ops.animation.trail.set_tangent(
    *,
    clip: str = ...,
    control: str = ...,
    frame: float,
    velocity: Vec3Like,
    drag: str = ...,
) -> Result

Shape a rig control's motion trail at a key: the trail leaves (and enters) 'frame' with the world velocity 'velocity' [x, y, z] (world units per frame; a tangent handle dragged on the trail). Sets the key's translate tangents (Free, unified); a translate channel not keyed there is first keyed at its posed value on that frame and on the frames its other translate channels are keyed. One undo step.

  • Operation animation.trail.set_tangent
  • In Animation
ArgumentTypeDefaultDescription
clipstr—Clip id or name (may be omitted when the document holds exactly one clip).
controlstr—Rig control name (default: the one selected control).
framefloatrequiredThe key's frame. (frames).
velocityVec3LikerequiredWorld units per frame.
dragstr—Drag.