Add Attribute
tb.ops.controlrig.add_attribute(
*,
control: str,
name: str,
nice_name: str = "",
type: Literal["float", "bool", "enum"] = "float",
default: float = 0.0,
min: float = ...,
max: float = ...,
enum_names: Any = ...,
keyable: bool = True,
) -> Result
Add a custom attribute to a control: Float (optional minimum / maximum), Boolean or Enum (option names). It shows in the channel box, is set with controlrig.set_attribute, keys in Animation when keyable, and is saved with the rig. One undo step.
Add In-between
tb.ops.controlrig.add_inbetween(*, pose: str, name: str = ...) -> Result
A pose between the bind pose and an extreme, at the joints' current pose: it holds a sculpt of its own, and the extreme's weight drives it piecewise along bind → in-between → extreme. One undo step.
Add Offset Control
tb.ops.controlrig.add_offset_control(*, controls: Any) -> Result
Give controls an offset control: an animator control around each (1.2× its size, a lighter color) that moves it and everything under it on top of its own animation, for offsets and constraints that layer over a performance. Animator controls only; one undo step.
Add Pose Space
tb.ops.controlrig.add_pose_space(*, drivers: Any, name: str = ...) -> Result
A set of poses that share driver joints and one RBF solver, named after the joints unless a name is given. One undo step.
Add Poses from Template
tb.ops.controlrig.add_pose_template(
*,
region: Literal["leg", "arm", "frontLeg", "hindLeg"],
joint: str = ...,
) -> Result
A region's extremes, on both sides, as new pose spaces: per leg forward_90, back_45, out_90, out_90_twist, knee_bend_90, knee_bend_140; per arm up_90, forward_90, back_45, elbow_90, elbow_140, wrist_twist_90. The joints are found from the skeleton; adjust the poses, then sculpt them. One undo step.
Add Space Target
tb.ops.controlrig.add_space_target(
*,
control: str,
kind: Literal["control", "joint", "object"],
target: str,
label: str = ...,
) -> Result
Give a control another parent space it can switch to: another control (kind 'control'), a skeleton joint ('joint') or a scene object ('object', pinned where it is now — scene objects are not driven by the rig). The space keeps the offset the control has at the bind pose, so nothing moves when it is added. Refused when the target follows this control (a cycle), is already a space, or the name is taken. Guide or control mode; one undo step.
Add Ring
tb.ops.controlrig.add_surface_ring(*, module: str, after: int = ...) -> Result
Add a ring to a Surface Chains module, halfway between two rings: the chains run through every ring, so it shapes the cloth there.
Add Tech Joint
tb.ops.controlrig.add_tech_joint(
*,
kind: Literal["twistChain", "stretchChain", "poseReader", "volumeJoint"] = "twistChain",
source_bone: str = ...,
end_bone: str = ...,
joint_count: int = 3,
mode: Literal["follow", "counter"] = "follow",
twist_axis: Vec3Like = [1.0, 0.0, 0.0],
weights: Any = ...,
auto_weights: bool = True,
name: str = ...,
driven_bones: Any = ...,
end_control: str = ...,
stretch_blend: float = 1.0,
min_stretch: float = 1.0,
max_stretch: float = 1.5,
volume_preservation: float = 0.5,
driver_bones: Any = ...,
push: float = ...,
in_blend_amount: float = 0.5,
in_blend_tangent: float = 1.5,
world_scale: float = 1.0,
key_poses: Any = ...,
rbf_opts: Any = ...,
) -> Result
Add a tech joint to the built rig. Twist chain: jointCount joints <source>_twist_NN between a segment's joints share the source joint's twist (follow: the distal joint, e.g. the wrist, on its parent's segment; counter: the proximal joint on its segment to its child), and with autoWeights the segment joint's skin weights move onto them by position along the bone. Stretch chain: existing joints stretch toward an end control. Pose reader: per-key activations of driver joint rotations (RBF) for correctives. The rig is rebuilt in the same undo step.
Align Guides
tb.ops.controlrig.align_guides(
*,
guides: Any = ...,
to: Literal["line", "plane"] = "line",
mirror: bool = False,
) -> Result
Line up three or more guides: 'line' puts the middle ones on the line through the first and last (in chain order); 'plane' puts them all on the plane through the first, the last and the one farthest off that line (a finger's knuckles in one bend plane). The first and last stay put. With mirror the opposite-side twins follow. Guide mode only; one undo step.
Apply Library Pose
tb.ops.controlrig.apply_pose(
*,
pose: str,
controls: Any = ...,
mirrored: bool = False,
) -> Result
Pose the rig with a pose from the pose library: every control the pose holds takes its channels; 'controls' limits it to those controls; 'mirrored' puts each control's pose on its opposite-side partner (center controls mirror in place). Changes the rig's posed state, keys nothing. Undoable.
Apply T-Pose
tb.ops.controlrig.apply_t_pose() -> Result
Set T-Pose: store the posed skeleton as the character's T-Pose. The guides follow the posed skeleton and the Control Rig builds at the T-Pose (a skeleton without rig modules stays in Skeleton mode showing it); the skeleton keeps its Bind Pose (skinning binds to it), and retargeting starts from the T-Pose. One undo step.
Bake Deformation to Skin
tb.ops.controlrig.bake_deformation(
*,
meshes: Sequence[MeshRef] = ...,
corpus: Any = ...,
correctives: bool = True,
modifiers: bool = True,
rom_samples: int = 3,
random_poses: int = 20,
seed: int = 1,
preserve_original: float = 0.4,
max_influences: int = 4,
auto_revert_worse_regions: bool = True,
locked: Any = ...,
) -> Result
Bake the rig's whole deformation — skin, correctives and the meshes' modifier stacks — into plain skin weights over a pose corpus, for game engines that only play skinning. Per vertex, the weights that best reproduce the deformation over every pose: non-negative, normalized, at most Max Influences, locked joints kept. Preserve Original keeps them close to the current weights (Faithful 0.85, Balanced 0.4, Free 0); vertices the fit would make worse keep theirs. One undo step.
Bake Pose Shape
tb.ops.controlrig.bake_pose_shape(
*,
pose: str,
mesh: str = ...,
indices: Any,
offsets: Any,
gesture: str = ...,
) -> Result
Stores a sculpt of the posed mesh as a pose's shape corrective: offsets[i] moves vertex indices[i] in the posed mesh's space at the pose (replacing its previous sculpt on that mesh); they are inverted through the skinning there into bind-space deltas, so at that pose the mesh shows the sculpt exactly and the RBF fades it in and out. One undo step per stroke.
Blast Skeleton & Skin
tb.ops.controlrig.blast_skeleton() -> Result
Remove the skeleton, every skin weight and the control rig; the meshes stay at rest. Clips that animate them are reconciled when you leave the editor (control-rig clips can be baked first). One undo step.
Cancel Pose Edit
tb.ops.controlrig.cancel_finger_pose_edit() -> Result
Leaves Pose Edit without saving: the hand gets back the pose it had before Pose Edit. One undo step.
Cancel Set T-Pose
tb.ops.controlrig.cancel_t_pose_edit() -> Result
Leave Set T-Pose without storing: the stored T-Pose and the guides stay as they were. One undo step.
Clear Joint Offset
tb.ops.controlrig.clear_joint_offset(*, pose: str, joint: str) -> Result
Removes a joint's offset from a pose. One undo step.
Commit Helper Joints
tb.ops.controlrig.commit_helper_joints() -> Result
Add the trained helper joints to the rig in one undo step: the joints join the skeleton under their anchor joints, the mesh gets the solved weights, the model and the helper set are saved on the rig and drive the joints live.
Compare Deformation
tb.ops.controlrig.compare_deformation(
*,
meshes: Sequence[MeshRef] = ...,
corpus: Any = ...,
correctives: bool = True,
modifiers: bool = True,
rom_samples: int = 3,
random_poses: int = 20,
seed: int = 1,
) -> Result
Bake the rig's deformation (skin, correctives, modifier stacks) over a pose corpus and measure how far plain skinning is from it: RMS and max distance per pose and per joint (model units). Nothing changes.
Skin the Face
tb.ops.controlrig.compute_face_weights(
*,
module: str = ...,
mesh: MeshRef = ...,
max_influences: int = ...,
lip_split_softness: int = ...,
lid_split_softness: int = ...,
lip_falloff: int = ...,
lid_falloff: int = ...,
brow_falloff: int = ...,
lock_edited: bool = True,
neck_feather: int = ...,
regions: Any = ...,
) -> Result
Compute the face's skin weights on the built Face module's mesh: the face region (grown from the picked loops over the head, above the neck, feathered into the body over the Neck Feather rings) is split over the lip, lid, crease and brow joints (hat functions along each row, smooth falloff over edge rings: lips 4, lids 3, brows 5 by default), the upper and lower lips and lids never share joints, the rest goes to the head and, under the mouth, the jaw. Weights outside the face region never change. Unset parameters take the Face module's Regions settings. One undo step; the weights stay ordinary skin weights for every skin tool.
Compute Surface Weights
tb.ops.controlrig.compute_surface_weights(
*,
module: str,
mesh: MeshRef = ...,
max_influences: int = ...,
lock_edited: bool = True,
) -> Result
Skin a skirt, cape or other cloth from its built Surface Chains grid: each cloth vertex shares its weight among the joints round its place on the grid, and the waistband follows the carrier joint. The Vertex Set {module}.region limits it when the mesh has one; otherwise a separate cloth mesh is taken whole, and on a body mesh only the vertices at the surface change. Everything outside is untouched.
Inspect Constraint Links
tb.ops.controlrig.constraint_links(*, target: Any) -> Result
Read direct constraints and evaluated target weights for a typed control, bone or scene object; no document mutation.
Create Arm
tb.ops.controlrig.create_arm(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Arm module with default guides on the mesh, in guide mode (same as controlrig.create_module type arm). One undo step.
Create Arthropod Leg
tb.ops.controlrig.create_arthropod_leg(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Arthropod Leg module with default guides on the mesh, in guide mode (same as controlrig.create_module type arthropodLeg). One undo step.
Create Constraint
tb.ops.controlrig.create_constraint(
*,
expected_asset_revision: int = ...,
expected_rig: Any = ...,
expected_revision: int = ...,
aim_vector: Any = ...,
up_vector: Any = ...,
world_up_type: Literal["scene", "object", "objectRotation", "vector", "none"] = ...,
world_up_vector: Any = ...,
world_up_object: Any = ...,
aim_offset: Any = ...,
name: str = ...,
targets: Any = ...,
skip: Any = [],
skip_rotate: Any = [],
maintain_offset: bool = False,
rest_translation: Any = ...,
rest_rotation: Any = ...,
rest_scale: Any = ...,
kind: Literal["point", "orient", "scale", "parent", "aim", "poleVector"] = "point",
driven: str,
id: str = ...,
) -> Result
Create Digitigrade Leg
tb.ops.controlrig.create_digitigrade_leg(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Digitigrade Leg module with default guides on the mesh, in guide mode (same as controlrig.create_module type digitigradeLeg). One undo step.
Create Fin
tb.ops.controlrig.create_fin(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Fin module with default guides on the mesh, in guide mode (same as controlrig.create_module type fin). One undo step.
Create FK Chain
tb.ops.controlrig.create_fk_chain(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a FK Chain module with default guides on the mesh, in guide mode (same as controlrig.create_module type fkChain). One undo step.
Create Rig From Existing Joints
tb.ops.controlrig.create_from_joints(
*,
detector: Literal["auto", "biped", "quad", "centaur", "fullBodyIk"] = "auto",
include_feet: bool = True,
include_hands: bool = True,
name_prefix: str = "",
replace: bool = False,
max_influences: int = ...,
mapping: Any = ...,
skip_root: bool = False,
joint_orient_mode: Literal["fromJoints", "guides"] = "fromJoints",
) -> Result
Read the scene's skeleton as a biped or a quadruped (bone names first, then the hierarchy) and create the matching modules with their guides on its joints. Building drives the skeleton's own joints: skin and clips stay bound; unmapped joints are kept; by default the joints keep their orientations, so the bind pose is unchanged. One undo step.
Create Global Control
tb.ops.controlrig.create_global(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a Global Control module with default guides on the mesh, in guide mode (same as controlrig.create_module type globalControl). One undo step.
Create Hand
tb.ops.controlrig.create_hand(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Hand module with default guides on the mesh, in guide mode (same as controlrig.create_module type hand). One undo step.
Create Insect Wing
tb.ops.controlrig.create_insect_wing(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Insect Wing module with default guides on the mesh, in guide mode (same as controlrig.create_module type insectWing). One undo step.
Add Module
tb.ops.controlrig.create_module(
*,
type: Literal["globalControl", "singleControl", "fkChain", "splineChain", "surfaceChains", "stretchyAim", "spine", "neckHead", "plantigradeLeg", "digitigradeLeg", "foot", "face", "arm", "hand", "sphereRoll", "squash", "squashSides", "uiSlider", "uiPanel", "vehicle", "wing", "arthropodLeg", "insectWing", "fin", "fullBodyIk", "custom"],
preset: Literal["tail", "ear", "finger", "tentacle", "whip", "rope", "cable", "chainLink", "skirt", "longSkirt", "cape", "tabard", "hairStrip"] = ...,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "C",
) -> Result
Add a rig module (spine, leg, arm, FK chain, spline chain, surface chains, squash, UI slider, …) with default guides on the mesh, in guide mode. With mirror, the opposite side is created too. A chain preset (tail, ear, finger, tentacle, whip, rope, cable, chainLink, and the surfaceChains skirt, longSkirt, cape and hairStrip) starts from its name, guide count and settings; explicit name, count and settings win. One undo step.
Create Neck & Head
tb.ops.controlrig.create_neck_head(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a Neck & Head module with default guides on the mesh, in guide mode (same as controlrig.create_module type neckHead). One undo step.
Create Plantigrade Leg
tb.ops.controlrig.create_plantigrade_leg(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Plantigrade Leg module with default guides on the mesh, in guide mode (same as controlrig.create_module type plantigradeLeg). One undo step.
Create Pose
tb.ops.controlrig.create_pose(
*,
space: str = ...,
drivers: Any = ...,
name: str = ...,
reads: Literal["rotate", "translate", "both"] = ...,
twist: bool = ...,
) -> Result
A new pose of a space from the joints' current pose (Create from Pose): an extreme, or a twist pose that reads the twist alone and adds on top of the others. One undo step.
Create Single Control
tb.ops.controlrig.create_single(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a Single Control module with default guides on the mesh, in guide mode (same as controlrig.create_module type singleControl). One undo step.
Create Sphere Roll
tb.ops.controlrig.create_sphere_roll(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a Sphere Roll module with default guides on the mesh, in guide mode (same as controlrig.create_module type sphereRoll). One undo step.
Create Spine
tb.ops.controlrig.create_spine(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a Spine module with default guides on the mesh, in guide mode (same as controlrig.create_module type spine). One undo step.
Create Stretchy Aim
tb.ops.controlrig.create_stretchy_aim(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a Stretchy Aim module with default guides on the mesh, in guide mode (same as controlrig.create_module type stretchyAim). One undo step.
Create Rig From Template
tb.ops.controlrig.create_template(
*,
template: Literal["human", "gorilla", "dogCat", "horseDeer", "centaur", "bear", "elephant", "mouseSquirrel", "kangaroo", "lizard", "frog", "turtle", "bird", "dinosaur", "dragon", "vehicle"],
options: Any = ...,
global_scale: float = 1.0,
name_prefix: str = "",
overrides: Any = ...,
forward_axis: Literal["+Z", "-Z", "+X", "-X"] = ...,
replace: bool = False,
max_influences: int = ...,
) -> Result
Create a complete rig from a template (Human, Dog & Cat, Horse & Deer, …): every module with its guides at the template's proportions scaled to the mesh, ready to position in guide mode and build. One undo step. From existing joints: see controlrig.create_from_joints.
Create Vehicle
tb.ops.controlrig.create_vehicle(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
) -> Result
Add a Vehicle module with default guides on the mesh, in guide mode (same as controlrig.create_module type vehicle). One undo step.
Create Wing
tb.ops.controlrig.create_wing(
*,
name: str = ...,
parent: str = ...,
attach_joint: str = ...,
settings: Any = ...,
position: Vec3Like = ...,
count: int = ...,
mirror: bool = False,
from_joints: Any = ...,
side: Literal["L", "R", "C"] = "L",
) -> Result
Add a Wing module with default guides on the mesh, in guide mode (same as controlrig.create_module type wing). One undo step.
Delete Attribute
tb.ops.controlrig.delete_attribute(*, control: str, attr: str) -> Result
Remove a custom attribute added on a control (and its posed value). Keys a clip holds for it stay in the clip, unbound. One undo step.
Delete Constraint
tb.ops.controlrig.delete_constraint(
*,
expected_asset_revision: int = ...,
expected_rig: Any = ...,
expected_revision: int = ...,
constraint: str,
) -> Result
Delete Driven Keys
tb.ops.controlrig.delete_driven_keys(*, curves: Any = ..., control: str = ...) -> Result
Remove driven key curves: by id, or every curve driving a control. The control returns to its own channels. One undo step.
Delete Module
tb.ops.controlrig.delete_module(*, module: str) -> Result
Delete a module and its guides. Child modules move to its parent and follow its attach joint. In control mode the rig is rebuilt in the same step: the module's joints leave the skeleton and their skin weights move to the nearest remaining joint. Clips that animate it are reconciled at the next editor switch. Undoable.
Delete Pose
tb.ops.controlrig.delete_pose(*, pose: str) -> Result
Removes a pose with its in-betweens, sculpts and joint offsets. One undo step.
Delete Pose Space
tb.ops.controlrig.delete_pose_space(*, space: str) -> Result
Removes a pose space with its poses, sculpts and joint offsets. One undo step.
Delete Control Rig
tb.ops.controlrig.delete_rig() -> Result
Remove every module, guide and control of the control rig. The joints it built stay as a plain skeleton with their skin weights. Clips that animate the rig are offered a bake to skeleton clips when you leave the editor. One undo step.
Duplicate Pose
tb.ops.controlrig.duplicate_pose(*, pose: str, name: str = ...) -> Result
A new pose with a pose's settings and joint offsets (not its sculpts) at the joints' current pose: move the joints off the original first. One undo step.
Edit Attribute
tb.ops.controlrig.edit_attribute(
*,
control: str,
attr: str,
nice_name: str = ...,
default: float = ...,
min: float = ...,
max: float = ...,
has_min: bool = ...,
has_max: bool = ...,
enum_names: Any = ...,
keyable: bool = ...,
) -> Result
Change a custom attribute added on a control: label, default, minimum / maximum (hasMin / hasMax false removes one), enum option names, keyable. Parameters left out keep their value; the type stays. One undo step.
Edit Driven Key
tb.ops.controlrig.edit_driven_key(
*,
curve: str,
keys: Any = ...,
tangent: Literal["linear", "smooth", "flat", "step"] = ...,
pre: Literal["constant", "linear"] = ...,
post: Literal["constant", "linear"] = ...,
) -> Result
Edit one curve: replace its keys ([[driver value, driven value], …], distinct driver values), its tangents or its infinity. One undo step.
Edit Finger Pose
tb.ops.controlrig.edit_finger_pose(
*,
module: str,
pose: Literal["spread", "cup", "thumbAcross", "fist", "curl", "relax"],
) -> Result
Pose Edit of a hand's finger pose: the hand shows the pose at full weight (the other poses at zero) with its finger controls at rest; pose the finger controls, then Save Finger Pose. Control mode. One undo step.
Edit Space Target
tb.ops.controlrig.edit_space_target(
*,
control: str,
space: str,
label: str = ...,
index: int = ...,
make_default: bool = ...,
make_orient_default: bool = ...,
) -> Result
Rename a control's space, move it in the Space list (index 1 = first after World) or make it the space the control starts in (makeDefault; World included). A split space also takes makeOrientDefault, the space it starts turning with. Clip keys follow their space by name at the next editor switch. One undo step.
Set T-Pose
tb.ops.controlrig.edit_t_pose() -> Result
Open Set T-Pose: Skeleton mode on the raw skeleton, showing the stored T-Pose (the Bind Pose when there is none), so the joints can be turned into a T-pose (controlrig.pose_joints, snap_t_pose, mirror_t_pose, reset_t_pose) and applied with controlrig.apply_t_pose. Guides waiting in guide mode build first. A skinned mesh follows. One undo step.
Edit Guides
tb.ops.controlrig.enter_guide_mode(*, module: str = ...) -> Result
Return to guide placement. Controls hide (and leave the selection) and the skin shows the rest pose; the skeleton stays until the next build (Build Rig, or leaving the Control Rig editor). One undo step.
Build Rig
tb.ops.controlrig.exit_guide_mode() -> Result
Construct every module from its guides and return to posing controls. The skeleton follows the guides; skinned meshes stay bound at rest. Clips that animate changed joints are reconciled at the next editor switch. Leaving the Control Rig editor in guide mode runs it first. One undo step.
Export Rig Configuration
tb.ops.controlrig.export_rig() -> Result
The rig configuration as a .tbrig file (modules, guides, spaces, tech joints, control edits) to reuse on another character: the result's 'data' is the file text, 'fileName' a suggested name. Changes nothing.
Face Test Pose
tb.ops.controlrig.face_test_pose(
*,
pose: Literal["neutral", "blink", "smile", "jawOpen", "brows", "zip"],
module: str = ...,
amount: float = 1.0,
) -> Result
Pose the built face in a generated test pose to check its skin and controls: Blink (the upper lids close onto the lower), Smile (the lip corners up and out), Jaw Open (the Jaw module's Open, else the lower lip down), Brows (raised), Zip (the mouth's Zip L and Zip R: the lips seal from the corners), scaled by 'amount'; Neutral puts the face back. The pose is the rig's live, unkeyed pose: it is never saved into a clip. Control mode only; not an undo step.
Fit Controls to Mesh
tb.ops.controlrig.fit_controls(*, controls: Any = ..., margin: float = 0.1) -> Result
Size controls to the body: each control's shape grows or shrinks until it sits just outside the mesh around it at the bind pose, plus a margin. Picked controls drop the size you gave them so the fit shows; with none picked every control's default is re-fitted and the sizes you set stay. Controls outside the body keep their size. One undo step.
Generate Helper Joints
tb.ops.controlrig.generate_helper_joints(
*,
meshes: Sequence[MeshRef] = ...,
corpus: Any = ...,
correctives: bool = True,
modifiers: bool = True,
rom_samples: int = 3,
random_poses: int = 20,
seed: int = 1,
helpers: int = 8,
helper_seed: int = 316,
iterations: int = 40,
max_influences: int = 8,
) -> Result
Solve helper joints so plain skinning reproduces what correctives and modifier stacks add: the corpus is baked, vertices skinning already fits keep their weights, and up to N joints are seeded where it misses and solved (Dem Bones). The result is kept uncommitted — train, then commit. Changes nothing yet.
Generate Pose Corpus
tb.ops.controlrig.generate_pose_corpus(
*,
rom_samples: int = 3,
random_poses: int = 20,
seed: int = 1,
) -> Result
Poses for the Deformation Baker: ROM sweeps (one control and rotate channel at a time, within its limits or a range by its name) plus seeded random combinations. Returns the poses; nothing changes (save them with Save Pose Corpus).
Read Scene Constraints
tb.ops.controlrig.get_constraints() -> Result
Go to Pose
tb.ops.controlrig.go_to_corrective_pose(*, pose: str, fraction: float = ...) -> Result
Poses the joints at a pose, or part of the way there from the bind pose (the Test slider). Keys nothing. One undo step; slider drags coalesce.
Go to Pose
tb.ops.controlrig.go_to_pose(*, pose: Literal["bind", "tPose"]) -> Result
Go to Bind Pose (bind: Skeleton mode with the joints at the Bind Pose, the pose skinning binds to) or Go to T-Pose (tPose: the built Control Rig at rest, which stands at the T-Pose; without a built rig, Skeleton mode showing the T-Pose). One undo step.
IK/FK Match
tb.ops.controlrig.ik_fk_match(
*,
module: str = ...,
control: str = ...,
direction: Literal["toggle", "toIK", "toFK"] = "toggle",
) -> Result
Switch an IK/FK limb without a pop: the controls of the target mode are posed on the current pose, then the blend switches. toggle (default) switches to the other mode. Control mode only; one undo step.
Import Rig Configuration
tb.ops.controlrig.import_rig(*, data: str) -> Result
Replace the rig's modules with a rig configuration file (.tbrig): modules, guides, spaces, tech joints and control edits, in guide mode, ready to build. Bones the configuration's guides are matched to must exist in the scene's skeleton. One undo step.
Import Skeleton
tb.ops.controlrig.import_skeleton(*, staged: str) -> Result
Use the skeleton of a parsed .tbskeleton / FBX / glTF / GLB file on an unrigged model (the target must have no skeleton, skin or rig).
List Controls
tb.ops.controlrig.list_controls(
*,
module: str = ...,
tier: Literal["primary", "secondary", "tertiary"] = ...,
port: str = ...,
contains: Any = ...,
) -> Result
The rig's animator controls as the outliner groups them: id, name, module (outliner name, arm_L), tier (primary, secondary or tertiary), logical parent, the port its module publishes it as (fingerPose.index.1, settings) and its world position now. Filter by module (id or outliner name, arm_L), tier, port and name texts, then pass the ids to controlrig.select_controls.
List Driven Keys
tb.ops.controlrig.list_driven_keys(*, control: str = ...) -> Result
The rig's set driven key curves: driver, driven channel, keys [driver value, driven value], tangents and infinity. With control, only the curves it drives or is driven by.
List Pose Spaces
tb.ops.controlrig.list_pose_spaces() -> Result
The rig's pose spaces and poses: drivers, kernel; per pose what it reads, its kind (and an in-between's extreme and place), settings, sculpted shapes, offset joints and activation at the current pose. Empty without a rig.
List Tech Joints
tb.ops.controlrig.list_tech_joints() -> Result
The rig's tech joints: id, kind, name, source joint, driven joints, enabled; twist chains their joint count and mode, helper joints their mode (mlp, baked or off); pose readers also give their activations at the current pose (one per key pose). Empty without a rig.
List Unassigned Joints
tb.ops.controlrig.list_unassigned_joints() -> Result
The skeleton's joint chains no rig module drives yet (a second pair of arms, a tail, extra legs): each with its start and end joint, joint count, side and a suggested module type and preset. Each chain's create holds the controlrig.create_module parameters that make its suggested module on those joints.
Mirror Pose
tb.ops.controlrig.mirror_corrective_pose(*, pose: str) -> Result
The pose on the other side, with its in-betweens, sculpts and joint offsets: the drivers map to their partners (in the space that reads them, added when missing), rotations reflect across the X plane and each sculpt reflects across the mesh's symmetry and is inverted at the mirrored pose; midline and unmatched vertices are dropped. A pose of that name there is replaced. One undo step.
Mirror Driven Keys
tb.ops.controlrig.mirror_driven_keys(*, from_: Literal["L", "R"] = "L") -> Result
Copy the driven key curves of one side onto the other: the driven control and a sided driver map to their mirror partners, and the values reflect through the controls' rest frames (never a name swap). Curves already on the other side are replaced. One undo step.
Mirror Finger Poses
tb.ops.controlrig.mirror_finger_poses(*, module: str) -> Result
Copies a hand's Finger Poses onto the hand of the other side (the module with the same name), reflected across X: edited poses are mirrored, generated ones stay generated on both. One undo step.
Mirror Pose
tb.ops.controlrig.mirror_pose(
*,
controls: Any = ...,
mode: Literal["toOpposite", "swap"] = "toOpposite",
) -> Result
Mirror the pose of controls (Auto-Rig Pro Mirror Pose): mode toOpposite copies each control's pose onto its opposite-side partner, its own attributes too (a foot's Toes Curl, Spread and Splay, a toe's Tap: the whole toe pose); swap exchanges the two sides and mirrors center controls in place (a flipped pose). Default: the selected controls. Changes the rig's posed state. Undoable.
Mirror T-Pose
tb.ops.controlrig.mirror_t_pose(*, from_: Literal["left", "right"] = ...) -> Result
Set T-Pose: pose the other side like this one, mirrored through the body's middle (from left: the character's left poses its right). Joints without a partner keep their pose. One undo step.
Mirror Tech Joint
tb.ops.controlrig.mirror_tech_joint(*, joint: str) -> Result
Create the opposite-side copy of a twist chain, stretch chain or volume joint: every joint maps to its left / right partner by name (the end control too when it is sided), with the same parameters, weights moved like Add Tech Joint. A volume joint's per-row values mirror with it, and mirroring onto a side that already has one replaces its values. The rig is rebuilt in the same undo step.
Move Guides
tb.ops.controlrig.move_guides(
*,
guides: Any,
mirror: bool = False,
soft_radius: float = 0.0,
gesture: str = ...,
) -> Result
Set guide world positions / rotations (the guide gizmo). With mirror, each moved guide's opposite-side twin (L ↔ R) takes the mirrored position. With softRadius (Soft Select), the other guides of a moved guide's module chain follow with a smooth falloff over that many guides; the chain's first and last guides stay put. A hand follows its arm: moving the elbow or wrist moves and turns the hand's guides that were not moved themselves. The moved modules re-orient their guides (aim at the child, limb bend plane). Guide mode only. Drags coalesce into one undo step.
Paint Face Region
tb.ops.controlrig.paint_face_region(
*,
region: Literal["mouth", "jaw", "eyes", "brows", "face"],
module: str = ...,
indices: Any = ...,
values: Any = ...,
clear: bool = False,
grow: int = ...,
node: str = ...,
drag: int = ...,
) -> Result
Paint a Face module region map (mouth, jaw, eyes, brows, face): set 'values' (0-1) at vertex 'indices' of the face mesh; a painted value replaces the region's automatic falloff there when the face is skinned (controlrig.compute_face_weights). The face map is the face region itself: 0 leaves a vertex to the body's weights, between feathers into them; 'grow' moves its edge by that many edge rings (negative shrinks). 'clear' forgets the map's paint. Equal 'drag' values coalesce into one undo step (a brush stroke).
Bake Physics to Pose
tb.ops.controlrig.physics_bake(*, module: str = ...) -> Result
Keep what the simulation shows: each simulated control of the module (every module with physics when omitted) takes the channels that put it where it is now, and the simulation resets onto that pose. One undo step.
Collide with Body
tb.ops.controlrig.physics_collide_body(*, module: str, enabled: bool = True) -> Result
Keep a module's simulated chain out of the character: capsules are fitted to the mesh around every bone outside the module (the skinned meshes at their bind pose, else every mesh). Turning it on again refits them; off removes them.
Turn On Physics
tb.ops.controlrig.physics_enable(*, module: str, enabled: bool = True) -> Result
Turn physics on or off for a module (single controls and chains: tails, ears, ropes, skirts, capes, hair). On, every animator control of the module gets a physics group that adds a simulated offset on top of its animation; it starts at the Tail preset and runs live while you pose. One undo step.
Play / Pause Physics
tb.ops.controlrig.physics_live(*, live: bool = ...) -> Result
Live runs the rig's physics while you pose; Paused holds the simulated offsets where they are. A session setting, not saved and not an undo step.
Reset Physics
tb.ops.controlrig.physics_reset() -> Result
Snap the rig's simulation back onto the animation, at rest. Reset to Bind Pose, switching guide or editor mode and rebuilding reset it too. Not an undo step.
Physics Settings
tb.ops.controlrig.physics_settings(
*,
module: str,
settings: Any = ...,
colliders: Any = ...,
excluded: Any = ...,
gesture: str = ...,
) -> Result
Change a module's physics: preset (Tail, Ponytail, Cape, Skirt, Ears, Antenna, Rope: each sets every setting and the ramp), ramp (the blend from animation into physics along the chain, root to tip: [[x, y], …], 2–16 points), stiffness, damping, gravity, strength, drag, maxDeviation ([root, tip] degrees), wind, windDirection, gusts, floor, floorHeight, jiggle (Translate, Rotate, Both) and iterations; colliders replaces the extra capsule and sphere colliders. Scrubs coalesce into one undo step.
Physics State
tb.ops.controlrig.physics_state() -> Result
Read the rig's physics: Live or Paused, each module with physics and its settings, the simulated controls and whether the simulation has settled.
Step Physics
tb.ops.controlrig.physics_step(*, frames: int = 1, fps: float = 30.0) -> Result
Advance the rig's simulation by whole animation frames on the current pose, as live playback would (scripts, MCP and tests; it runs Paused too). Not an undo step.
Place Guide
tb.ops.controlrig.place_guides(
*,
guide: str = ...,
target: Literal["vertex", "edgeMid", "edgePoint", "faceCentre", "loopCentre", "circleCentre", "sphereCentre", "selectionCentre", "point"],
mesh: MeshRef = ...,
vertices: Any = ...,
edge: Any = ...,
face: int = ...,
point: Any = ...,
mirror: bool = False,
aim: bool = False,
) -> Result
Put a guide exactly on the mesh where guide mode shows it (world space; a skinned mesh T-posed when the rig has a T-Pose; a pick on a mesh without a skin, the Bind Pose ghost, carries into the T-Pose by the guide's joint): on a vertex or the center of several (vertices), an edge's midpoint (edgeMid) or the point on it nearest 'point' (edgePoint), the center of the edge loop through an edge (loopCentre: a wrist, a wheel hub), the center of the circle through a round edge's loop or three or more rim vertices (circleCentre: a hinge, part of a rim), a face's center (faceCentre), the center of a sphere fitted to an eyeball — the picked face's part or four or more vertices (sphereCentre) — the center of the component selection (selectionCentre), or an exact point. With mirror the opposite-side twin follows. Guide mode only; one undo step.
Pose Joints
tb.ops.controlrig.pose_joints(*, joints: Any, gesture: str = ...) -> Result
Skeleton mode: set joints' translate / rotate (degrees, XYZ) / scale relative to their bind pose, so the skin follows. Absent channels keep their value. Gizmo drags coalesce into one undo step per gesture.
Pose Status
tb.ops.controlrig.pose_status() -> Result
The pose the Control Rig editor shows (bind, tPose, posed or settingTPose), whether a T-Pose is stored, Set T-Pose open, the Bind Pose's arm angle below level and leg angle off straight down (degrees), whether Set T-Pose is suggested (an A-posed model without a T-Pose) and the next rig step (newRig, placeGuides, setTPose or ready).
Quick Position Guides
tb.ops.controlrig.quick_position_guides(
*,
guides: Any = ...,
eye: Any = ...,
direction: Any = ...,
mirror: bool = False,
) -> Result
Move guides into the middle of the mesh along the view: each guide goes to the center of the inside span, nearest to it, of the line through it along the view — a guide in front of a leg lands inside that leg. With eye (perspective) the line runs from the camera through the guide; with direction (orthographic) it runs along the view. A guide with no mesh along the view but near the mesh (within a tenth of its size) goes to the center of the span toward its nearest mesh point; guides farther off stay put. A selected arm whose wrist has no mesh along the view swings onto the body (shoulder, elbow, wrist on the arm's center line, the hand turned and sized with it). A guide whose bone runs along the view stays put, a left or right guide stays on its side of the mirror plane, the foot pivots go to the sole under their foot (the heel to its back, the banks to its edges) and the root is left alone. With mirror the opposite-side twins follow; spine COG guides re-center between their first and last guides. Guide mode only; one undo step.
Rebalance Skin Weights
tb.ops.controlrig.rebalance_skin_weights(
*,
meshes: Sequence[MeshRef] = ...,
preserve_original: float = 0.4,
max_influences: int = 4,
poses: int = 24,
max_angle: float = 45.0,
smooth_iterations: int = 30,
seed: int = 11,
auto_revert_worse_regions: bool = True,
) -> Result
Refit the skin weights so plain linear-blend skinning reproduces smooth, volume-keeping deformation (the Delta Mush of the current skin) over a corpus of poses. Preserve Original keeps the result close to the current weights (Faithful 0.85, Balanced 0.4, Free 0); regions the refit would make worse keep their weights. One undo step; Revert Skin Rebalance restores the previous weights.
Re-derive Pose Shapes
tb.ops.controlrig.rederive_pose(*, pose: str = ...) -> Result
Recomputes bind-space deltas from the stored sculpts at the current skin weights (after painting or rebinding), so the posed result stays the sculpt; one pose, or all without one. One undo step.
Remove Helper Joints
tb.ops.controlrig.remove_helper_joints() -> Result
Remove the committed helper joints: their weights fold back onto their parent joints, the joints, the model and the helper set are deleted. One undo step.
Remove Offset Control
tb.ops.controlrig.remove_offset_control(*, controls: Any) -> Result
Take controls' offset controls away (pass the control or its offset control); the offset control's pose goes with it. One undo step.
Remove Space Target
tb.ops.controlrig.remove_space_target(*, control: str, space: str) -> Result
Remove one of a control's parent spaces (World always stays). A control posed in that space, or using it as its default, returns to World. Clip keys on it fall back to World at the next editor switch (offered a bake first). One undo step.
Remove Ring
tb.ops.controlrig.remove_surface_ring(*, module: str, ring: int) -> Result
Remove a ring between Top and Hem from a Surface Chains module.
Remove Tech Joint
tb.ops.controlrig.remove_tech_joint(*, joint: str) -> Result
Remove a tech joint. A twist chain's skin weights return in full to its segment joint and its joints leave the skeleton; chains that drive existing joints delete nothing. The rig is rebuilt in the same undo step.
Rename Module
tb.ops.controlrig.rename_module(*, module: str, name: str) -> Result
Rename a module: its guides, controls and joints take the new name, and set driven keys, custom attributes, control edits, constraints and the pose follow them (the Control Picker follows when you leave the Control Rig editor). Joints keep their identity, so skin weights stay; clips follow at the next editor switch. In control mode the rig is rebuilt in the same step. One undo step.
Reset Finger Pose
tb.ops.controlrig.reset_finger_pose(
*,
module: str,
pose: Literal["spread", "cup", "thumbAcross", "fist", "curl", "relax"] = ...,
) -> Result
Returns a hand's pose (or every pose) to the default generated from its fingers. One undo step.
Reset Guides
tb.ops.controlrig.reset_guides(*, guides: Any = ..., mirror: bool = False) -> Result
Return guides to where their module placed them when it was created (position, and rotation for guides you turned by hand). Resetting a surface's Top or Hem also resets the rings between them. With mirror the opposite-side twins follow. Guide mode only; one undo step.
Reset to Bind Pose
tb.ops.controlrig.reset_pose(*, controls: Any = ..., attributes: bool = False) -> Result
Return controls to their bind pose (all controls, or the listed ones); without a list, Skeleton mode's posed joints and Skeleton Rig mode's posed goals return to bind too. Attribute values are kept unless attributes is set. Undoable.
Reset T-Pose
tb.ops.controlrig.reset_t_pose() -> Result
Set T-Pose: every joint back at the Bind Pose (applying then stores no T-Pose: the T-Pose is the Bind Pose). One undo step.
Revert Skin Rebalance
tb.ops.controlrig.revert_skin_rebalance(*, meshes: Sequence[MeshRef] = ...) -> Result
Restore the weights from before the last Rebalance Skin Weights of each mesh, while its skin is unchanged since (otherwise use Undo). One undo step.
Ring from Edge Loop
tb.ops.controlrig.ring_from_edge_loop(
*,
module: str,
ring: int,
mesh: MeshRef,
edge: Any,
) -> Result
Place a ring on an edge loop of the mesh (a waistband, a hem): the ring takes the loop's center, its plane and its shape.
Save Finger Pose
tb.ops.controlrig.save_finger_pose(
*,
module: str = ...,
pose: Literal["spread", "cup", "thumbAcross", "fist", "curl", "relax"] = ...,
) -> Result
Saves the finger controls posed in Pose Edit as the pose (their rotations on top of the pose; moves and scales are not part of a pose), leaves Pose Edit: the hand gets back the pose it had before. The rig is rebuilt in the same step. One undo step.
Save Pose Corpus
tb.ops.controlrig.save_pose_corpus(*, corpus: Any) -> Result
Store a pose corpus on the rig (the Deformation Baker opens with it). One undo step.
Select Controls
tb.ops.controlrig.select_controls(
*,
controls: Any,
mode: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result
Select rig controls by name or id (an empty list with replace clears). One undo step.
Select Driver
tb.ops.controlrig.select_driver(*, control: str) -> Result
Select the controls that drive a control through set driven keys.
Select Guides
tb.ops.controlrig.select_guides(
*,
guides: Any,
mode: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result
Select module guides by name or id in guide mode (an empty list with replace clears). The last one is the gizmo and channel-box subject. One undo step.
Select Modules
tb.ops.controlrig.select_modules(
*,
modules: Any,
mode: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result
Highlight rig modules by id or display name. An empty list with replace clears. One undo step per changed selection.
Select Opposite
tb.ops.controlrig.select_opposite(
*,
mode: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result
Mirror the control selection to the other side (L ↔ R). With add, the opposite controls join the selection. Center controls stay selected. One undo step.
Set Attribute
tb.ops.controlrig.set_attribute(
*,
control: str = ...,
module: str = ...,
attr: str,
value: float,
gesture: str = ...,
) -> Result
Set an animator attribute: a control's custom attribute (twist, roll, curl, spaceSwitch …) or a module setting attribute (ikFkBlend, showSecondary …). Enumerations take the option index. Space switches set here do not keep the control in place — use controlrig.switch_space for that. Control mode only; scrubs coalesce.
Set Channel Locks
tb.ops.controlrig.set_channel_locks(
*,
control: str,
channels: Any,
locked: bool = True,
) -> Result
Lock or unlock transform channels on a control (tx … sz, or 'all'). Locked channels cannot be posed from the gizmo or channel box; the rig can still move them. Undoable.
Edit Constraint
tb.ops.controlrig.set_constraint(
*,
expected_asset_revision: int = ...,
expected_rig: Any = ...,
expected_revision: int = ...,
aim_vector: Any = ...,
up_vector: Any = ...,
world_up_type: Literal["scene", "object", "objectRotation", "vector", "none"] = ...,
world_up_vector: Any = ...,
world_up_object: Any = ...,
aim_offset: Any = ...,
name: str = ...,
targets: Any = ...,
skip: Any = ...,
skip_rotate: Any = ...,
maintain_offset: bool = ...,
rest_translation: Any = ...,
rest_rotation: Any = ...,
rest_scale: Any = ...,
driven: str = ...,
constraint: str,
) -> Result
Edit Control Shape
tb.ops.controlrig.set_control_appearance(
*,
controls: Any,
shape: Literal["circle", "circleX", "circleY", "circleZ", "square", "cube", "diamond", "arrow", "fourArrow", "doubleArrow", "cylinder", "cylinderX", "cross", "sphere", "pin", "cog", "dome"] = ...,
size: float = ...,
color: Color3 = ...,
offset: Any = ...,
reset: bool = False,
gesture: str = ...,
) -> Result
Change how controls are drawn: shape, size, color and the shape offset (tx/ty/tz, rx/ry/rz degrees, sx/sy/sz). Display only — the rig and animation are unchanged. Kept across rebuilds. Drags coalesce.
Pose Controls
tb.ops.controlrig.set_control_channels(*, controls: Any, gesture: str = ...) -> Result
Set controls' local translate / rotate (degrees, in the control's rotation order) / scale. Locked channels keep their value (reported), limits clamp. Control mode only. Gizmo drags coalesce into one undo step per gesture.
Set Pivot Control
tb.ops.controlrig.set_control_pivot(*, controls: Any, pivot: bool = True) -> Result
Give controls a Pivot control (pivot true) or take it away (false): a small sphere in the Pivot tier that the animator moves and keys to change where the control turns and scales; turning one on shows its module's Pivot tier. At rest it sits on the control, so nothing moves. Saved with the rig; one undo step that rebuilds the rig.
Set Mirror Naming
tb.ops.controlrig.set_corrective_mirror_rules(*, rules: Any) -> Result
The naming rules Mirror Pose pairs sides by, tried in order: each swaps a left piece of a name for its right piece and back, anywhere in the name, at its start or at its end. The first swap that names an existing joint wins; with none, the automatic side words are used. An empty list (or reset) restores the defaults (_L_ / _R_ anywhere, _L / _R at the end, L_ / R_ at the start, Left / Right, left / right). One undo step.
Set Display Switch
tb.ops.controlrig.set_display_switch(*, control: str, attr: str, value: float) -> Result
Set an imported rig's display switch to a value, as the attribute in Maya (e.g. control options_CTRL, attr proxyMode, value 1 for on; an enum switch takes its field's value): the objects that state shows are shown and the switch's others hidden. Only visibility changes, so it works in Reference documents. One undo step.
Set Driven Key
tb.ops.controlrig.set_driven_key(
*,
driver: Any,
driven: Any,
tangent: Literal["linear", "smooth", "flat", "step"] = ...,
infinity: Literal["constant", "linear"] = ...,
rest: bool = False,
) -> Result
Key the driven controls' channels at the driver's current value. Pose the driver (a slider, a control's channel or attribute) and the driven controls, then key: each driven channel's pose moves into its curve, so nothing jumps, and the curve drives the control from now on (its own channels stay free on top). A new curve starts from a rest key (the driver at rest, the channel at rest), so one key makes a working driven key. rest keys the rest values at the driver's rest. One undo step.
Set Editor Mode
tb.ops.controlrig.set_editor_mode(
*,
mode: Literal["skeleton", "controlRig", "skeletonRig", "correctives"],
) -> Result
Choose what drives the joints in the Control Rig editor: skeleton (the joints alone, posed directly), controlRig (the control rig) or skeletonRig (the full-body IK rig, posed through its goals with bodyrig.goal_set). The pose snaps back to the bind pose and the selection follows (controls become the joints they drive, joints the controls that drive them or the goals on them, goals their joints). One undo step; refused, with the reason and its fix, for a mode the scene cannot use.
Face Separate Meshes
tb.ops.controlrig.set_face_parts(
*,
module: str = ...,
eyes: Any = ...,
teeth: Any = ...,
tongue: Any = ...,
lashes: Any = ...,
) -> Result
Name the face's separate meshes for controlrig.compute_face_weights: eyes (rigid to the nearest eye joint), teeth (upper or lower teeth joint by height; Build Rig also fits the lips' teeth collider to the front of these meshes), tongue (along the tongue chain), lashes (and eyebrow hair: each vertex takes the closest point of the face's skinned surface). Each takes a list of mesh ids; an empty list clears it; omitted parts keep theirs. One undo step.
Face Pick
tb.ops.controlrig.set_face_pick(
*,
region: Literal["lips", "lidL", "lidR", "creaseL", "creaseR", "browL", "browR", "eyeL", "eyeR"],
module: str = ...,
mesh: str = ...,
edges: Any = ...,
line: Literal["upper", "lower"] = ...,
clear: bool = False,
mirror: bool = True,
) -> Result
Pick a face region's loop on the mesh for the Face module: the lip seal, a lid or crease loop (one edge walks the whole ring), a brow line (one edge walks it to its ends), or an eyeball (one edge picks its whole connected piece; the lids slide over the sphere fitted to it). Takes 'mesh' and 'edges' (edge indices), else the selected edges; 'clear' forgets the pick. A left or right pick also fills the other side, mirrored across X, while that side has no pick of its own ('mirror', on by default). A lid's pick also places its crease a quarter of the lid's width out from the lid, until a crease is picked. Guide mode only; one undo step; the region builds from it when the rig builds.
Set Guide Attributes
tb.ops.controlrig.set_guide_attributes(
*,
guide: str,
twist: float = ...,
auto_orient: bool = ...,
auto_plane: bool = ...,
shared_orient: bool = ...,
gesture: str = ...,
) -> Result
Set a guide's twist (degrees about its aim axis, while auto-orient is on), auto-orient (aim at its child automatically; not on single-guide modules), auto-plane (keep a mid-chain guide on its chain's plane) or, on hand modules, shared orient (one up direction per finger). The module re-orients. Guide mode only; a twist drag is one undo step.
Set Helper Mode
tb.ops.controlrig.set_helper_mode(*, mode: Literal["learned", "baked", "off"]) -> Result
How the committed helper joints move: Learned (the trained network drives them from the driver joints), Baked or Off (they hold their bind). Undoable.
Hinge Axis
tb.ops.controlrig.set_hinge_axis(
*,
guide: str = ...,
axis: Any = ...,
reset: bool = False,
) -> Result
A Mechanical limb joint's hinge, from the mesh: the axis of the circle through the selected edge loop (a joint's round housing), or along one selected edge (its pin); 'axis' sets it exactly, 'reset' goes back to the hinge from the guides. Guide mode only; one undo step; the joint's FK control turns about it and its range closes the joint the way it bends.
Set Joint Offset
tb.ops.controlrig.set_joint_offset(
*,
pose: str,
joint: str,
translate: Any = ...,
rotate: Any = ...,
scale: Any = ...,
gesture: str = ...,
) -> Result
A joint corrective: moves a tech joint at a pose, on the offset group above the joint, in its bind frame, so its driver keeps writing the joint and nothing fights. Weighted by the pose's RBF weight, summed over poses. One undo step; drags coalesce.
Set Max Influences
tb.ops.controlrig.set_max_influences(*, max_influences: int) -> Result
Set the rig's skin influence limit (1-8 joints per vertex): the default of Bind Skin, Compute Weights and face skinning. Existing weights are not changed (Limit Influences does that). One undo step.
Set Module Parent
tb.ops.controlrig.set_module_parent(
*,
module: str,
parent: str = ...,
attach_joint: str = ...,
) -> Result
Parent Setup: change the module a module follows and the skeleton joint it attaches to. A new parent attaches the module to that parent's joint nearest it unless attachJoint is given; an empty parent makes it a root module. Refused for the Global Control, for the module itself or one below it (a loop) and for its own joints. In control mode the rig is rebuilt in the same step. One undo step.
Set Module Visibility
tb.ops.controlrig.set_module_visibility(*, module: str, visible: bool = ...) -> Result
Show or hide a module's controls and joints in the viewport (display only, undoable).
Set Pose
tb.ops.controlrig.set_pose(
*,
pose: str,
name: str = ...,
reads: Literal["rotate", "translate", "both"] = ...,
radius: float = ...,
enabled: bool = ...,
gain: float = ...,
curve: Literal["linear", "smooth", "easeIn", "easeOut"] = ...,
) -> Result
A pose's settings: name, what it reads, radius, on or off, gain and weight curve. One undo step; drags coalesce.
Set Pose Space
tb.ops.controlrig.set_pose_space(
*,
space: str,
name: str = ...,
kernel: Literal["gaussian", "thinPlate"] = ...,
export_form: Literal["blendshapes", "jointsAndSkinning"] = ...,
smoothing: float = ...,
) -> Result
A pose space's name, solver kernel and smoothing. One undo step; drags coalesce.
Set Blendshape Weight
tb.ops.controlrig.set_shape_weight(
*,
mesh: str,
target: str,
weight: float,
gesture: str = ...,
) -> Result
Pose a blendshape target's weight in the Control Rig, on top of its default weight and its set driven keys. Set Driven Key then keys it at the driver's value. One undo step; drags coalesce.
Split Spaces
tb.ops.controlrig.set_space_kind(
*,
control: str,
kind: Literal["parent", "split"],
) -> Result
Choose whether a control moves and turns with one space (parent) or with two (split): its Space switch then picks what it moves with and its Orient Space switch what it turns with, over the same spaces. The head, IK hands and eye master start split. One undo step.
Shrink-wrap Ring
tb.ops.controlrig.shrink_wrap_ring(
*,
module: str,
ring: int,
mesh: MeshRef = ...,
) -> Result
Snap one ring onto the mesh: each of its points casts a ray outward from the ring's center and lands just outside what it hits. Points that hit nothing stay.
Skirt Leg Radii
tb.ops.controlrig.skirt_leg_radii(
*,
module: str,
radii: Any = ...,
refit: bool = False,
gesture: str = ...,
) -> Result
Set a Surface Chains skirt's leg collision radii by hand: radii is the thigh, shin and foot capsules' start and end radii, left leg then right (12 numbers, metres; 0 keeps the module's own guess). Build Rig then keeps them instead of measuring the leg skin again. refit: true hands them back to Build Rig's fit (the next Build Rig measures the legs). Scrubs coalesce into one undo step.
Slide Guides
tb.ops.controlrig.slide_guides(
*,
guides: Any = ...,
position: float,
mirror: bool = False,
gesture: str = ...,
) -> Result
Slide guides along their chain: 'position' is where each sits between the guide before it (0) and the guide after it (1); its offset off that line stays, so a bent elbow stays bent. With mirror the opposite-side twins follow. Guide mode only; scrubs coalesce into one undo step.
Snap to T-Pose
tb.ops.controlrig.snap_t_pose(*, part: Literal["arms", "legs"]) -> Result
Set T-Pose: turn each arm at the shoulder straight out to its side, level (part arms), or each leg at the hip straight down (part legs), keeping the elbow or knee bend. One undo step.
Sculpt Pose Shape
tb.ops.controlrig.stroke_pose_shape(
*,
pose: str,
mesh: str = ...,
brush_type: Literal["clay", "brush", "move", "drag", "smooth", "inflate", "nudge", "flatten", "planar", "crease", "pinch", "layer"] = "move",
points: Any,
radius: float = ...,
strength: float = 0.5,
view_direction: Vec3Like = ...,
sub: bool = False,
smooth: bool = False,
symmetry: bool = False,
) -> Result
Sculpts a pose's shape with a sculpt brush: the stroke runs on the mesh as it shows at the pose (skinned, with this pose's sculpt so far) along mesh-space points, and the result becomes the pose's sculpt. One undo step.
Surface Test Pose
tb.ops.controlrig.surface_test_pose(
*,
module: str,
pose: Literal["neutral", "walk", "stride", "sit", "kneel", "highKick", "turn", "shrug"],
amount: float = 1.0,
) -> Result
Pose the body round a built Surface Chains module to check the cloth: Walk, Stride, Sit, Kneel and Kick (a high kick) move the rig's feet and hips, Turn twists the hips, Shrug raises the clavicles, all scaled by 'amount'; Neutral puts the body back. The pose is the rig's live, unkeyed pose: it is never saved into a clip. Control mode only; not an undo step.
Switch Module Version
tb.ops.controlrig.switch_module_version(*, module: str, to_version: int = ...) -> Result
Switch a module to another registered version of its family (default: the latest). Guides and identity are kept; settings the new version declares keep their value. In control mode the rig is rebuilt; clips re-link by stable control id at the next switch. Undoable.
Switch Space
tb.ops.controlrig.switch_space(
*,
control: str,
space: str = ...,
orient_space: str = ...,
keep_world: bool = True,
) -> Result
Switch a control's space (by label, e.g. 'World', 'COG', or index). A control with split spaces (head, IK hand, eye master) also takes orientSpace, the space it turns with; space then picks the one it moves with. With keepWorld (default) the control stays where it is: its channels are re-solved in the new space. Control mode only; one undo step.
Train Helper Joints
tb.ops.controlrig.train_helper_joints(
*,
epochs: int = 300,
hidden: int = 128,
seed: int = 316,
) -> Result
Train the network that drives the generated helper joints from the driver joints' rotations, on the corpus poses (best held-out error kept, 120 s cap). Changes nothing yet — commit next.
Transfer Rig to Target Mesh
tb.ops.controlrig.transfer_to_mesh(
*,
target: str,
cage: str = ...,
matching: Literal["auto", "index", "uv", "closest"] = "auto",
dry_run: bool = False,
) -> Result
Move the rig onto another character mesh: the guides are wrapped from the mesh the rig was made on (the cage; default: the best-skinned mesh) onto the target, joints and bind matrices follow, and a built rig is rebuilt. One undo step. dryRun returns the report (guides moved, confidence, old and new guide positions) without changing anything. To refit after editing the cage mesh itself, edit it in Model: the editor switch offers the wrap.
Update Module Settings
tb.ops.controlrig.update_module_settings(*, module: str, settings: Any) -> Result
Change module settings (validated against the module's schema; settings fixed at creation are refused with the reason). Axis changes re-orient the module's guides. In control mode the rig is rebuilt in the same step. Slider drags coalesce into one undo step.
Update Pose
tb.ops.controlrig.update_pose(*, pose: str) -> Result
Stores the joints' current pose into a pose. Its sculpts stay, re-inverted at the new pose. One undo step.
Update Tech Joint
tb.ops.controlrig.update_tech_joint(
*,
joint: str,
params: Any = ...,
enabled: bool = ...,
name: str = ...,
) -> Result
Change a tech joint: only the parameters given change (validated); enabled turns it on or off (a disabled chain keeps its joints at bind); name renames it. A twist chain whose count, mode or segment changes is regenerated: its weights return to the segment joint and move onto the new joints. The rig is rebuilt in the same undo step.