Arch
tb.ops.create.arch(
*,
outer_radius: float = 0.5,
inner_radius: float = 0.35,
depth: float = 0.3,
arch_angle: float = 180.0,
segments: int = 16,
include_legs: bool = True,
leg_height: float = 0.3,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create an arch with rectangular cross-section. Lengths are in 'unit'; the new object is named pArch<n> unless 'name' is given.
Boundary Fill
tb.ops.create.boundary_fill(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
curves: Sequence[ObjectRef] = ...,
loops: Any = ...,
reverse_winding: bool = False,
) -> Result
Fill closed boundaries with one n-gon each: explicit point loops, or the picked closed curves as displayed (each spline one loop, in world space; open splines are refused). The curves are kept.
Capsule
tb.ops.create.capsule(
*,
radius: float = 0.3,
length: float = 1.0,
radial_segments: int = 32,
cap_segments: int = 8,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a capsule (pill) primitive. Lengths are in 'unit'; the new object is named pCapsule<n> unless 'name' is given.
Cone
tb.ops.create.cone(
*,
radius: float = 0.5,
height: float = 1.0,
radial_segments: int = 32,
height_segments: int = 1,
open_ended: bool = False,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a cone primitive. Lengths are in 'unit'; the new object is named pCone<n> unless 'name' is given.
Cube
tb.ops.create.cube(
*,
width: float = 1.0,
height: float = 1.0,
depth: float = 1.0,
subdivisions_x: int = 1,
subdivisions_y: int = 1,
subdivisions_z: int = 1,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a cube primitive. Lengths are in 'unit'; the new object is named pCube<n> unless 'name' is given.
Cylinder
tb.ops.create.cylinder(
*,
radius_top: float = 0.5,
radius_bottom: float = 0.5,
height: float = 1.0,
radial_segments: int = 32,
height_segments: int = 1,
open_ended: bool = False,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a cylinder primitive. Lengths are in 'unit'; the new object is named pCylinder<n> unless 'name' is given.
Draw Polygon Profile
tb.ops.create.draw_profile(
*,
shape: Literal["circle", "ellipse", "arc", "rectangle", "regularPolygon"] = "circle",
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
frame: Any,
anchor: Literal["center", "corner"] = "center",
fill: Literal["none", "ngon", "triangles"] = "ngon",
radius: float = 1.0,
radius_x: float = 1.0,
radius_y: float = 1.0,
width: float = 1.0,
height: float = 1.0,
start_angle: float = 0.0,
sweep_angle: float = 3.141592653589793,
arc_closure: Literal["chord", "sector"] = "chord",
angle: float = 0.0,
sides: int = 5,
circle_segments: int = 32,
width_segments: int = 1,
height_segments: int = 1,
cast_tolerance: float,
name: str = ...,
) -> Result
Create an editable polygon profile on a captured precise frame. Fill and subdivision topology are explicit. Local and world f32 casting must stay within castTolerance; no hidden curve or solid is created.
Hemisphere
tb.ops.create.hemisphere(
*,
radius: float = 0.5,
width_segments: int = 32,
height_segments: int = 8,
flat_base: bool = True,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a hemisphere (half sphere) primitive. Lengths are in 'unit'; the new object is named pHemisphere<n> unless 'name' is given.
Image to Mesh
tb.ops.create.image_mesh(
*,
image: str = ...,
mode: Literal["auto", "alpha", "luminance", "colors"] = "auto",
colors: int = 4,
layers: Any = ...,
threshold: float = 0.5,
invert: bool = False,
smoothing: float = 0.5,
size: float = 1.0,
depth: float = 0.1,
layer_step: float = 0.0,
bevel: float = 0.0,
bevel_segments: int = 3,
bevel_shape: float = 0.5,
bevel_sides: Literal["both", "front", "back"] = "both",
keep_background: bool = False,
despeckle: float = 12.0,
denoise: int = 1,
corner_angle: float = 60.0,
outline: Literal["smooth", "polygon"] = "smooth",
diagonals: Literal["connect", "separate"] = "connect",
tolerance: float = 0.75,
trace_resolution: int = 2048,
fill: Literal["auto", "triangles", "even", "quads", "ngon"] = "auto",
fill_density: int = 32,
orientation: Literal["upright", "flat"] = "upright",
origin: Literal["center", "ground"] = "center",
smooth_angle: float = 30.0,
separate: Literal["single", "layers", "pieces"] = "layers",
output: Literal["mesh", "curves", "meshAndCurves", "outline"] = "mesh",
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
staged: str = ...,
) -> Result
Trace an image (PNG, JPEG or WebP) into a mesh, editable curves, both together, or a loose-edge outline: logos, signs, pixel art, silhouettes and layered color logos. Lengths are in 'unit'. One undo step.
Loft
tb.ops.create.loft(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
profiles: Any,
caps: bool = True,
) -> Result
Create a mesh through two or more closed profiles with the same point count, stitched with quad strips; Caps close the first and last profile.
Create Mesh from Data
tb.ops.create.mesh_from_data(
*,
positions: Any,
faces: Any,
uvs: Any = ...,
name: str = ...,
) -> Result
Create a mesh object from vertex positions and faces in one undo step (scripts build their arrays first, then call this once). Positions are local scene units, flat [x0, y0, z0, …] or [x, y, z] rows; faces are lists of vertex indices; optional uvs give one [u, v] per face corner in face order.
Plane
tb.ops.create.plane(
*,
width: float = 1.0,
height: float = 1.0,
width_segments: int = 1,
height_segments: int = 1,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a flat plane primitive. Lengths are in 'unit'; the new object is named pPlane<n> unless 'name' is given.
Pyramid
tb.ops.create.pyramid(
*,
base_radius: float = 0.5,
height: float = 1.0,
sides: int = 4,
truncation: float = 0.0,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create an N-sided pyramid primitive. Lengths are in 'unit'; the new object is named pPyramid<n> unless 'name' is given.
Ring
tb.ops.create.ring(
*,
outer_radius: float = 0.5,
inner_radius: float = 0.3,
height: float = 0.1,
radial_segments: int = 32,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a flat hollow disc (ring) primitive. Lengths are in 'unit'; the new object is named pRing<n> unless 'name' is given.
Rounded Box
tb.ops.create.rounded_box(
*,
width: float = 1.0,
height: float = 1.0,
depth: float = 1.0,
corner_radius: float = 0.1,
corner_segments: int = 4,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a box with rounded vertical edges. Lengths are in 'unit'; the new object is named pRoundedBox<n> unless 'name' is given.
Sphere
tb.ops.create.sphere(
*,
radius: float = 0.5,
width_segments: int = 32,
height_segments: int = 16,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a sphere primitive. Lengths are in 'unit'; the new object is named pSphere<n> unless 'name' is given.
Model Stamp
tb.ops.create.stamp(
*,
input: ObjectRef,
position: Vec3Like,
normal: Vec3Like,
roll: float = 0.0,
pitch: float = 0.0,
yaw: float = 0.0,
flip: bool = False,
) -> Result
Stand a copy of an input mesh on a surface point: its +Y along 'normal', its lowest point on 'position', its world scale kept. Roll, pitch and yaw turn the input first; Flip turns it upside down. One undo step.
Text
tb.ops.create.text(
*,
text: str = "Text",
font_id: str = "inter",
weight: int = 400,
italic: bool = False,
underline: bool = False,
size: float = 1.0,
letter_spacing: float = 0.0,
line_height: float = 1.2,
align: Literal["left", "center", "right"] = "left",
mode: Literal["flat", "extruded", "bevelled", "outline"] = "bevelled",
depth: float = 0.2,
bevel_thickness: float = 0.02,
bevel_size: float = 0.02,
bevel_segments: int = 3,
cap_fill: Literal["ngon", "quads", "triangles"] = "ngon",
curve_angle: float = 12.0,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a text primitive - extruded 3D glyphs. Lengths are in 'unit'; the new object is named pText<n> unless 'name' is given.
Torus
tb.ops.create.torus(
*,
radius: float = 0.5,
tube: float = 0.2,
radial_segments: int = 16,
tubular_segments: int = 48,
arc: float = 6.283185307179586,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a donut-shaped torus primitive. Lengths are in 'unit'; the new object is named pTorus<n> unless 'name' is given.
Tube
tb.ops.create.tube(
*,
outer_radius: float = 0.5,
inner_radius: float = 0.3,
height: float = 1.0,
radial_segments: int = 32,
open_ended: bool = False,
cap_bottom: bool = False,
floor_thickness: float = 0.1,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a hollow cylinder (tube) primitive. Lengths are in 'unit'; the new object is named pTube<n> unless 'name' is given.
Tube From Polyline
tb.ops.create.tube_from_polyline(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
points: Any,
thickness: float,
segments: int = 8,
closed: bool = False,
caps: bool = True,
) -> Result
Create a round tube along a polyline: one ring of points per polyline point, framed with minimum twist (a closed loop spreads its seam rotation evenly) and mitred at corners, stitched with quad strips.
Wedge
tb.ops.create.wedge(
*,
width: float = 1.0,
height: float = 1.0,
depth: float = 1.0,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
up_axis: Literal["y", "z"] = "y",
name: str = ...,
placement: Literal["origin", "selection", "surface"] = "origin",
position: Vec3Like = ...,
normal: Vec3Like = ...,
) -> Result
Create a triangular prism (wedge) primitive. Lengths are in 'unit'; the new object is named pWedge<n> unless 'name' is given.