Add Image Plane
tb.ops.scene.add_image_plane(
*,
staged: str = ...,
texture: str = ...,
opacity: float = 0.699999988079071,
) -> Result
Add a reference image to the viewport: a plane at the origin named after the image, scaled to its aspect ratio, drawn translucent. The image comes from the file picker (staged) or from a texture already in the library. The image and the plane are one undo step.
Clear Parent Inverse
tb.ops.scene.clear_parent_inverse(
*,
nodes: Sequence[ObjectRef] = ...,
targets: Targets = None,
) -> Result
Reset objects' parent inverse to identity so their local channels apply directly in the parent's frame. Objects whose parenting kept a different frame move to where their channels place them.
Closest Surface Point
tb.ops.scene.closest_point(
*,
nodes: Sequence[ObjectRef] = ...,
mesh: MeshRef = ...,
include_hidden: bool = False,
max_distance: float = ...,
point: Vec3Like,
) -> Result
The surface point nearest to 'point': the object, its mesh, the point and face normal, the distance and the face index; null when nothing is in range. Meshes are read as stored (before modifiers and deformation). Read-only.
Create Locator
tb.ops.scene.create_locator() -> Result
Add a locator: a transform-only crosshair at the origin, used as an anchor, reference target or attachment point. One undo step.
Delete
tb.ops.scene.delete(
*,
nodes: Sequence[ObjectRef] = ...,
targets: Targets = None,
) -> Result
Delete objects and everything below them. Meshes and curves no other object uses are removed with them.
Scene Digest
tb.ops.scene.digest(
*,
mode: Literal["quick", "deep"] = "quick",
object: ObjectRef = ...,
) -> Result
A read-only summary of the scene: objects (name, path, kind, transform), counts, materials, clips and the selection. mode 'deep' adds per-mesh topology, bounds and content hashes, the skeleton's bones and clip details. Pass object to describe one object.
Duplicate
tb.ops.scene.duplicate(
*,
nodes: Sequence[ObjectRef] = ...,
translate: Vec3Like = ...,
rotate: Vec3Like = ...,
scale: Vec3Like = ...,
targets: Targets = None,
) -> Result
Duplicate objects with everything below them, in place (zero offset), right after each original. Meshes and curves are copied so the duplicates edit independently; the duplicates become the selection.
Group
tb.ops.scene.group(
*,
nodes: Sequence[ObjectRef] = ...,
name: str = "Group",
targets: Targets = None,
) -> Result
Create a group node at the scene root, optionally containing the selected objects (their world placement is kept).
Hide
tb.ops.scene.hide(
*,
nodes: Sequence[ObjectRef] = ...,
visible: bool = False,
targets: Targets = None,
) -> Result
Hide objects (visible=true shows them).
Hide Unselected
tb.ops.scene.hide_unselected(
*,
nodes: Sequence[ObjectRef] = ...,
material: str = ...,
) -> Result
Hide every object except the kept ones: the given objects (default: the selected ones), or every object that draws material (a material id or name). Their parents and children stay visible; Show All brings the rest back. One undo step.
Lock
tb.ops.scene.lock(
*,
nodes: Sequence[ObjectRef] = ...,
locked: bool = True,
targets: Targets = None,
) -> Result
Lock objects so viewport and outliner clicks ignore them (locked=false unlocks).
Ray Cast
tb.ops.scene.ray_cast(
*,
nodes: Sequence[ObjectRef] = ...,
mesh: MeshRef = ...,
include_hidden: bool = False,
max_distance: float = ...,
origin: Vec3Like,
direction: Vec3Like,
) -> Result
The nearest surface hit along a ray from 'origin' in 'direction' (both sides of every face): the object, its mesh, the world point and face normal, the distance and the face index; null on a miss. Meshes are read as stored (before modifiers and deformation). Read-only.
Rename
tb.ops.scene.rename(
*,
node: ObjectRef = ...,
name: str,
targets: Targets = None,
) -> Result
Rename one object. Names are unique among siblings and cannot contain path separators ('/', '|', ''); clip curves that animate the object follow.
Reparent
tb.ops.scene.reparent(
*,
nodes: Sequence[ObjectRef] = ...,
parent: ObjectRef | None = None,
index: int = ...,
keep_world: bool = True,
targets: Targets = None,
) -> Result
Move objects under a new parent (or to the root) at a sibling position, keeping their world placement by default.
Rotate
tb.ops.scene.rotate(
*,
nodes: Sequence[ObjectRef] = ...,
axis: Vec3Like,
angle: float,
pivot: Vec3Like = ...,
targets: Targets = None,
) -> Result
Rotate objects about a world axis by an angle. With a pivot every object also orbits that point (gizmo behavior); without one each object turns about its own origin.
Scale
tb.ops.scene.scale(
*,
nodes: Sequence[ObjectRef] = ...,
factor: Vec3Like,
pivot: Vec3Like = ...,
orientation: Literal["world", "local"] = "world",
reference: ObjectRef = ...,
snap: float = 0.0,
targets: Targets = None,
) -> Result
Multiply objects' local scale channels by per-axis factors. With a pivot each object's origin also moves away from or towards that point along the chosen axes (gizmo behavior).
Set Channel
tb.ops.scene.set_channel(
*,
nodes: Sequence[ObjectRef] = ...,
channels: Any,
value: float,
targets: Targets = None,
) -> Result
Set one or more transform channels (translateX … scaleZ, or tx … sz) of objects to one value, keeping every other channel exactly — the channel-box edit. Rotation channels are XYZ Euler degrees; the other rotation channels keep the values the object displays.
Display as Wire
tb.ops.scene.set_display_wire(
*,
nodes: Sequence[ObjectRef] = ...,
wire: bool = True,
targets: Targets = None,
) -> Result
Draw objects as their wire only, as live boolean cutters are; they stay selectable and editable (wire=false draws the surface again).
Set Exportable
tb.ops.scene.set_exportable(
*,
nodes: Sequence[ObjectRef] = ...,
exportable: bool = True,
targets: Targets = None,
) -> Result
Write objects to interchange exports (exportable=false keeps an object and everything below it out of glTF, FBX, OBJ, USD and the other export formats, e.g. rigging helper meshes; native saves keep it).
Set Image Plane Opacity
tb.ops.scene.set_image_plane_opacity(
*,
node: ObjectRef = ...,
opacity: float,
targets: Targets = None,
) -> Result
Set how opaque an image plane is drawn (0 invisible, 1 opaque).
Set Renderable
tb.ops.scene.set_renderable(
*,
nodes: Sequence[ObjectRef] = ...,
renderable: bool = True,
targets: Targets = None,
) -> Result
Include objects in rendered output (renderable=false leaves them out of Save Viewport Screenshot; the viewport still draws them).
Set Studio Tint
tb.ops.scene.set_studio_tint(
*,
nodes: Sequence[ObjectRef] = ...,
preset: Literal["warm-gray", "cool-gray", "light-gray", "dark-gray", "terracotta", "olive", "slate", "cream", "charcoal"] = ...,
color: str = ...,
clear: bool = False,
gesture: str = ...,
targets: Targets = None,
) -> Result
Tint the selected objects in MatCap shading with a studio preset or a custom color; clear=true shows the MatCap's own color again. Display only: materials and exports are unchanged. Groups tint the geometry inside them.
Set Template
tb.ops.scene.set_template(
*,
nodes: Sequence[ObjectRef] = ...,
template: bool = True,
targets: Targets = None,
) -> Result
Template objects: drawn grayed and never picked by viewport clicks or marquee (template=false restores them).
Set Transform
tb.ops.scene.set_transform(
*,
nodes: Sequence[ObjectRef] = ...,
translation: Vec3Like = ...,
rotation: Vec3Like = ...,
scale: Vec3Like = ...,
rotation_order: Literal["XYZ", "YZX", "ZXY", "XZY", "YXZ", "ZYX"] = ...,
targets: Targets = None,
) -> Result
Set translation, rotation, scale channels and/or the rotation order of objects. Channels not given keep their exact values.
Set Transform Axis
tb.ops.scene.set_transform_axis(
*,
nodes: Sequence[ObjectRef] = ...,
channel: Literal["translation", "rotation", "scale"],
axis: Literal["x", "y", "z"],
value: float,
relative: bool = False,
targets: Targets = None,
) -> Result
Set or offset one axis of the translation, rotation (Euler degrees) or scale of objects. Absolute moves several objects together so their mean takes the value; relative adds it to each.
Show All
tb.ops.scene.show_all() -> Result
Show every hidden object.
Translate
tb.ops.scene.translate(
*,
nodes: Sequence[ObjectRef] = ...,
offset: Vec3Like,
align_normal: Vec3Like = ...,
align_pivot: Vec3Like = ...,
targets: Targets = None,
) -> Result
Move objects by a world-space offset. Only the top-most selected objects move; their descendants follow.
Ungroup
tb.ops.scene.ungroup(
*,
nodes: Sequence[ObjectRef] = ...,
targets: Targets = None,
) -> Result
Dissolve groups: their children take the group's place under its parent, keeping their world placement, and the groups are deleted. With no group selected, the groups of the selected objects are dissolved.