Apply Simulation
tb.ops.physics.apply(*, staged: str = ..., cloth: str = ...) -> Result
Apply the current paused and displayed world as one undo step: rigid placements and cloth/soft shapes. Roles stay for the next Play.
Clear Physics Body
tb.ops.physics.body.clear(*, node: str) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Set Physics Body
tb.ops.physics.body.set(
*,
node: ObjectRef,
role: Literal["static", "rigid", "cloth", "soft"],
density: float = 1000.0,
friction: float = 0.5,
restitution: float = 0.1,
ccd: bool = False,
fabric: Literal["silk", "cotton", "denim", "leather", "rubber"] = "cotton",
stiffness: Literal["soft", "default", "firm"] = "default",
pressure: float = 3000.0,
pin_selected: bool = False,
) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Close Physics
tb.ops.physics.close() -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Set Cloth Map
tb.ops.physics.cloth_map(
*,
node: ObjectRef,
kind: Literal["pin", "stiffness"],
weights: Any = ...,
) -> Result
Write or clear a cloth object's painted Pin or Stiffness weight map. Pin 1 holds a vertex where the simulation starts; Stiffness 1 makes its fabric up to 20× stiffer. One undo step.
Paint Cloth Map
tb.ops.physics.cloth_paint(
*,
node: ObjectRef = ...,
kind: Literal["pin", "stiffness"] = "pin",
) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Drag Physics Body
tb.ops.physics.drag(
*,
node: ObjectRef = ...,
point: Vec3Like = ...,
target: Vec3Like = ...,
) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Drape Cloth
tb.ops.physics.drape(
*,
node: ObjectRef = ...,
frames: int = 120,
fabric: Literal["silk", "cotton", "denim", "leather", "rubber"] = "cotton",
source_shape: Literal["current", "base"] = "current",
pin_selected: bool = True,
pins: Any = ...,
gravity: float = -9.81,
over: Sequence[ObjectRef] = ...,
floor: bool = True,
floor_height: float = 0.0,
iterations: int = 12,
staged: str = ...,
targets: Targets = None,
) -> Result
Let one mesh drape under gravity, with selected or explicit pinned vertices and optional floor contact. Preview before baking. Separate targets are independent; use an API batch to group their undo steps.
Add Wind
tb.ops.physics.force.add(
*,
strength: float = ...,
direction: Vec3Like = ...,
gust: float = ...,
) -> Result
Wind of the transient Physics world: a steady, gusty push that blows bodies and cloth. It changes live.
Remove Wind
tb.ops.physics.force.remove(*, index: int) -> Result
Wind of the transient Physics world: a steady, gusty push that blows bodies and cloth. It changes live.
Edit Wind
tb.ops.physics.force.set(
*,
index: int,
strength: float = ...,
direction: Vec3Like = ...,
gust: float = ...,
) -> Result
Wind of the transient Physics world: a steady, gusty push that blows bodies and cloth. It changes live.
Grab Physics Bodies
tb.ops.physics.grab(*, enabled: bool) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Physics Mode
tb.ops.physics.mode(*, mode: Literal["rigid", "soft", "cloth"]) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Physics World
tb.ops.physics.open() -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Pause Physics
tb.ops.physics.pause() -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Play Physics
tb.ops.physics.play() -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Remesh to Quads
tb.ops.physics.remesh_to_quads(
*,
node: ObjectRef = ...,
edge_length: float = 0.02,
) -> Result
Rebuild a cloth panel as even quads for simulation: a quad grid filling its outline, or pure-quad remeshing when that fails. Refuses results with any non-quad face. One undo step.
Reset Physics
tb.ops.physics.reset() -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Settle Rigid Bodies
tb.ops.physics.rigid_settle(
*,
nodes: Sequence[ObjectRef] = ...,
colliders: Sequence[ObjectRef] = ...,
frames: int = 120,
gravity: Vec3Like = [0.0, -9.81, 0.0],
density: float = 1000.0,
friction: float = 0.5,
restitution: float = 0.0,
damping: float = 0.05,
contact_distance: float = 0.002,
iterations: int = 16,
source_shapes: Any = ...,
staged: str = ...,
targets: Targets = None,
) -> Result
Let selected convex rigid bodies settle against static triangle meshes, preview the final poses, then Apply or Cancel. Moving shapes use their convex hulls.
Sew Edges
tb.ops.physics.seam.edges(
*,
node_a: ObjectRef = ...,
edge_a: Sequence[int] = ...,
node_b: ObjectRef = ...,
edge_b: Sequence[int] = ...,
rest_length: float = 0.0,
compliance: float = 0.0,
) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Remove Seam
tb.ops.physics.seam.remove(*, seam_id: str) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Add Seam
tb.ops.physics.seam.stroke(
*,
node_a: ObjectRef,
start_a: Vec3Like,
end_a: Vec3Like = ...,
node_b: ObjectRef,
start_b: Vec3Like,
end_b: Vec3Like = ...,
rest_length: float = 0.0,
compliance: float = 0.0,
) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Cloth Self Collision
tb.ops.physics.self_collision(
*,
enabled: bool = False,
thickness: float = 0.005,
iterations: int = 2,
) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Physics Settings
tb.ops.physics.settings(
*,
gravity: Vec3Like = [0.0, -9.81, 0.0],
air_drag: float = 0.0,
ground: bool = True,
ground_height: float = 0.0,
iterations: int = 16,
contact_distance: float = 0.002,
damping: float = 0.05,
bounce_threshold: float = 1.0,
quality: Literal["fast", "default", "quality"] = "default",
sleep_delay: float = 0.5,
penetration_slop: float = 0.0,
error_correction: float = 0.05,
) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Physics State
tb.ops.physics.state() -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Step Physics
tb.ops.physics.step(*, frames: int = 1) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.
Move Physics Bodies
tb.ops.physics.transform(*, transforms: Any) -> Result
Control the transient Physics world of static, rigid, cloth and soft bodies. Only Apply writes the Model document. Hosted work reports pending until its accepted frame arrives.