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.
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).
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.
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.
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.
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).
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.
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.
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).
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Delete Cache Key
tb.ops.animation.cache.key.remove(*, clip: str = ..., key: str) -> Result
Delete a sculpt key and its blend curve.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
Clear Selected Keys
tb.ops.animation.clear_keys() -> Result
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.
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).
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.
Copy Control Animation
tb.ops.animation.copy_control(*, clip: str = ..., target: str) -> Result
Copy every curve of a target. Returns the clipboard.
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.
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.
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.
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.
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.
Delete Clip
tb.ops.animation.delete_clip(*, clip: str = ...) -> Result
Delete a 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').
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.
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.
Flatten Tangents
tb.ops.animation.flatten_tangents(
*,
clip: str = ...,
keys: Any = ...,
targets: Any = ...,
) -> Result
Flat tangents with zero slope.
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.
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.
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.
Remove Image Constraint
tb.ops.animation.image_constraint.remove(*, track: str) -> Result
Stop a track driving its control (the track stays). One undo step.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
Animation Key State
tb.ops.animation.key_state(*, clip: str = ...) -> Result
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).
Duplicate Animation Layer
tb.ops.animation.layer.duplicate(*, clip: str = ..., layer: str) -> Result
Copy a layer with all its curves directly above it.
Flatten Layers
tb.ops.animation.layer.flatten(*, clip: str = ...) -> Result
Flatten the whole layer stack into BaseAnimation, keeping the played animation.
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.
Move Curves to Layer
tb.ops.animation.layer.move_curves(
*,
clip: str = ...,
curves: Any,
layer: str,
) -> Result
Move curves to another layer, keys unchanged.
Delete Animation Layer
tb.ops.animation.layer.remove(*, clip: str = ..., layer: str) -> Result
Delete a layer; its curves move to BaseAnimation.
Rename Animation Layer
tb.ops.animation.layer.rename(*, clip: str = ..., layer: str, name: str) -> Result
Rename a layer (BaseAnimation keeps its name).
Reorder Animation Layers
tb.ops.animation.layer.reorder(*, clip: str = ..., order: Any) -> Result
Set the full layer order bottom to top; BaseAnimation stays 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.
Set Active Layer
tb.ops.animation.layer.set_active(*, clip: str = ..., layer: str) -> Result
Choose the layer that receives new keys.
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.
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).
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.
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.
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.
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.
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).
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).
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).
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.
Delete Mix
tb.ops.animation.mixer.delete(*, mix: str = ...) -> Result
Delete a mix sequence (its clips and baked clips stay).
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).
Duplicate Strips
tb.ops.animation.mixer.duplicate_strips(*, mix: str = ..., strips: Any) -> Result
Duplicate strips right after themselves on their tracks.
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.
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.
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.
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'.
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).
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).
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).
Delete Track
tb.ops.animation.mixer.remove_track(*, mix: str = ..., track: str) -> Result
Delete a track and its strips.
Rename Mix
tb.ops.animation.mixer.rename(*, mix: str = ..., name: str) -> Result
Rename a mix sequence.
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).
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).
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.
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.
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'.
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'.
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).
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.
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.
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.
Nudge Keys
tb.ops.animation.nudge_keys(*, clip: str = ..., keys: Any, frames: int = 1) -> Result
Shift keys by whole frames (graph editor ge.nudgeKeyframe).
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).
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
Delete Picker Cells
tb.ops.animation.picker.delete_cells(*, tab: str = ..., cells: Any) -> Result
Delete cells of a tab. One undo step.
Delete Picker Tab
tb.ops.animation.picker.delete_tab(*, tab: str = ...) -> Result
Delete a tab and its cells. The last tab cannot be deleted.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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.
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.
Rename Picker Tab
tb.ops.animation.picker.rename_tab(*, tab: str = ..., name: str) -> Result
Rename a tab (trimmed; an empty name is refused).
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.
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.
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.
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.
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.
Delete Pose
tb.ops.animation.pose_library.delete(*, pose: str) -> Result
Remove a pose from the library. One undo step.
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.
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.
Rename Pose
tb.ops.animation.pose_library.rename(*, pose: str, name: str) -> Result
Rename a library pose; the id is kept.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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'.
Select Keys
tb.ops.animation.select_keys(
*,
clip: str = ...,
keys: Any,
mode: str = "replace",
) -> Result
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.
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.
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.
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.
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*).
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.
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).
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'.
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.
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.
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).
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Toggle Key Pins
tb.ops.animation.toggle_key_pins(*, clip: str = ..., keys: Any) -> Result
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.
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.
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.