Add Point
tb.ops.curve.add_cv(
*,
node: ObjectRef = ...,
position: Vec3Like,
spline_id: int = ...,
end: Literal["end", "start"] = "end",
) -> Result
Continue a spline from an end: add a control point at a world position. With a selected end point (Point mode) that end is extended; otherwise splineId + end (default: the last spline's end). Previewable, so the Pen tool shows the new point live.
Cable
tb.ops.curve.cable(
*,
input_mesh: Sequence[ObjectRef] = ...,
curves: Sequence[ObjectRef] = ...,
paths: Any = ...,
handles: Any = ...,
style: Literal["pipe", "rope", "chain", "custom"] = "pipe",
cross_section: Literal["round", "flat", "curve"] = "round",
radius: float = 0.02,
width: float = 0.08,
profile_curve: ObjectRef = ...,
strands: int = 3,
twist_pitch: float = 0.12,
link_length: float = 0.06,
link_width: float = 0.04,
wire: float = 0.006,
piece: ObjectRef = ...,
join: Literal["links", "welded"] = "links",
gap: float = 0.0,
alternate_twist: bool = False,
weld_distance: float = 0.001,
piece_axis: Literal["auto", "X", "Y", "Z"] = "auto",
slack: float = 0.15,
departure: float = 0.0,
cable_count: int = 1,
spacing: float = 0.06,
sides: int = 12,
resolution: int = 16,
points_per_span: int = 7,
cap_ends: bool = True,
cap_fill: Literal["grid", "ngon"] = "grid",
adaptive_rings: bool = True,
connector: ObjectRef = ...,
connector_ends: Literal["both", "start", "end"] = "both",
connector_axis: Literal["X", "Y", "Z", "-X", "-Y", "-Z"] = "X",
clamp: ObjectRef = ...,
clamp_spacing: float = 0.5,
clamp_axis: Literal["X", "Y", "Z", "-X", "-Y", "-Z"] = "X",
end_radius: float = 0.0,
slack_variation: float = 0.25,
seed: int = 1,
gravity: Vec3Like = [0.0, -1.0, 0.0],
twist_hand: Literal["right", "left"] = "right",
live: bool = True,
name: str = ...,
) -> Result
Hang a cable through clicked points (curve, mesh or grid), or turn existing curves into cables. The cable is an editable curve with Pipe / Sweep and Instance Along Curve modifiers for its look, connectors and clamps; input curves keep their modifier stack.
Clear Tilt
tb.ops.curve.clear_tilt(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
) -> Result
Reset the imported per-point tilt of the selected points (or of every point) to zero. Kept for scripts and parity; the tools that use a curve own its framing.
Create Arc
tb.ops.curve.create_arc(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
frame: Any = {"origin": [0.0, 0.0, 0.0],
"u": [1.0, 0.0, 0.0],
"v": [0.0, 0.0, 1.0]},
radius_x: float = 1.0,
radius_y: float = 1.0,
start_angle: float = 0.0,
sweep_angle: float = 1.5707963267948966,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create Bézier
tb.ops.curve.create_bezier(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
points: Any,
closed: bool = False,
handle_policy: Literal["auto", "vector", "explicit"] = "auto",
left_handles: Any = ...,
right_handles: Any = ...,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create Catmull-Rom
tb.ops.curve.create_catmull_rom(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
points: Any,
closed: bool = False,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create Circle
tb.ops.curve.create_circle(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
frame: Any = {"origin": [0.0, 0.0, 0.0],
"u": [1.0, 0.0, 0.0],
"v": [0.0, 0.0, 1.0]},
radius: float = 1.0,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create Ellipse
tb.ops.curve.create_ellipse(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
frame: Any = {"origin": [0.0, 0.0, 0.0],
"u": [1.0, 0.0, 0.0],
"v": [0.0, 0.0, 1.0]},
radius_x: float = 1.0,
radius_y: float = 1.0,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create NURBS
tb.ops.curve.create_nurbs(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
points: Any,
closed: bool = False,
order: int = 4,
knot_mode: Literal["normal", "endpoint", "bezier", "endpointBezier", "custom"] = "endpoint",
weights: Any = ...,
knots: Any = ...,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create Polygon
tb.ops.curve.create_polygon(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
frame: Any = {"origin": [0.0, 0.0, 0.0],
"u": [1.0, 0.0, 0.0],
"v": [0.0, 0.0, 1.0]},
radius: float = 1.0,
sides: int = 5,
angle: float = 0.0,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create Polyline
tb.ops.curve.create_polyline(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
points: Any,
closed: bool = False,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Create Rectangle
tb.ops.curve.create_rectangle(
*,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
frame: Any = {"origin": [0.0, 0.0, 0.0],
"u": [1.0, 0.0, 0.0],
"v": [0.0, 0.0, 1.0]},
width: float = 1.0,
height: float = 1.0,
) -> Result
Create a native precise curve. Lengths and position arrays are in 'unit'; angles are radians. Display samples never replace the authored definition.
Decimate
tb.ops.curve.decimate(
*,
node: ObjectRef = ...,
spline_ids: Sequence[int] = ...,
point_ids: Sequence[int] = ...,
ratio: float = 0.5,
) -> Result
Refit the selected splines (or splines with selected points) with fewer control points, keeping their shape as closely as the ratio allows. Previewable (live ratio).
Delete Points
tb.ops.curve.delete(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
domain: Literal["points", "splines", "segments"] = "points",
) -> Result
Delete the selected control points, the whole splines that contain them, or the segments between selected points. Deleting every point leaves an empty curve object.
Dissolve Points
tb.ops.curve.dissolve(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
) -> Result
Delete the selected control points while refitting the neighbouring Bézier handles so the curve keeps its shape.
Duplicate Points
tb.ops.curve.duplicate(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
) -> Result
Copy the selected control-point runs into new splines in the same curve and select the copies (Shift+D).
Edit Curve Points
tb.ops.curve.edit_mode(*, node: ObjectRef = ..., enter: bool = True) -> Result
Enter Point mode on a curve (Tab) to select and edit its control points and handles, or leave it (enter = false). One undo step.
Extrude Points
tb.ops.curve.extrude(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
offset: Vec3Like = [0.0, 0.0, 0.0],
) -> Result
Extrude the selected control points (E): end points grow the spline, interior runs duplicate their boundary points; the new points move by the world offset. Previewable, so one drag is one undo step.
Curve from Mesh Edges
tb.ops.curve.from_mesh_edges(
*,
node: ObjectRef,
mode: Literal["edges", "faceBoundary", "meshBoundary"] = "edges",
edge_ids: Sequence[int] = ...,
face_ids: Sequence[int] = ...,
fit: Literal["exact", "fitted"] = "exact",
fit_tolerance: float = 0.001,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
name: str = ...,
view_tolerance: float = 0.0001,
max_samples: int = 4096,
) -> Result
Copy actual mesh edges into curves without changing the mesh. Exact keeps every edge as a precise piecewise-linear curve (native stored f32 positions keep their precision label). Fitted lays one smooth cubic NURBS through each chain within the fit tolerance and reports its measured maximum and RMS deviation; a chain that cannot be fitted is refused, never kept exact silently. Unbranched components create separate curves in one undo step, preserving the selected node's local transform and parent.
Insert Point
tb.ops.curve.insert_point(
*,
node: ObjectRef = ...,
position: Vec3Like = ...,
spline_id: int = ...,
segment: int = ...,
t: float = 0.5,
point_ids: Sequence[int] = ...,
) -> Result
Insert a control point without changing the curve's shape: at the nearest curve position to a world position, at an explicit splineId + segment + t, or between two selected neighbouring points. Previewable for live placement.
Join Curves
tb.ops.curve.join(
*,
nodes: Sequence[ObjectRef] = ...,
into: ObjectRef = ...,
targets: Targets = None,
) -> Result
Join the selected curve objects into the active one (Ctrl+J): their splines move into the active curve at their current world positions and the other objects are removed.
Make Mesh From Curve
tb.ops.curve.make_mesh(
*,
nodes: Sequence[ObjectRef] = ...,
kind: Literal["curvePipe", "curveBevel", "curveSweep", "curveExtrude", "curveFill", "curveInstance", "curveRevolve"] = "curvePipe",
settings: Any = ...,
name: str = ...,
) -> Result
Create a mesh object driven by the selected curves: its generator modifier re-evaluates live whenever the curves change. Use Convert to Mesh (or Apply) to make it static.
Join Ends
tb.ops.curve.make_segment(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
) -> Result
Connect the selected ends of two open splines into one spline (F), or close a spline whose two ends are selected.
Move Points
tb.ops.curve.move_cv(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
left_handle_ids: Sequence[int] = ...,
right_handle_ids: Sequence[int] = ...,
offset: Vec3Like,
) -> Result
Move the selected control points (with their handles) and individually selected handles by a world-space offset.
Randomize Points
tb.ops.curve.randomize_cv(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
left_handle_ids: Sequence[int] = ...,
right_handle_ids: Sequence[int] = ...,
amount: float = 0.1,
seed: int = 0,
) -> Result
Offset each selected point (with its handles) by a random amount up to amount. The same seed gives the same result; previewable.
Switch Direction
tb.ops.curve.reverse(
*,
node: ObjectRef = ...,
spline_ids: Sequence[int] = ...,
point_ids: Sequence[int] = ...,
) -> Result
Reverse the direction of the selected splines (or of the splines containing selected points); the shape is unchanged.
Rotate Points
tb.ops.curve.rotate_cv(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
left_handle_ids: Sequence[int] = ...,
right_handle_ids: Sequence[int] = ...,
axis: Vec3Like,
angle: float,
pivot: Vec3Like = ...,
) -> Result
Rotate the selected control points and handles about a world axis through a pivot (default: their center).
Scale Points
tb.ops.curve.scale_cv(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
left_handle_ids: Sequence[int] = ...,
right_handle_ids: Sequence[int] = ...,
factor: Vec3Like,
pivot: Vec3Like = ...,
basis: Any = ...,
) -> Result
Scale the selected control points and handles about a world pivot (default: their center).
Select Curve Points
tb.ops.curve.select(
*,
point_ids: Sequence[int] = ...,
left_handle_ids: Sequence[int] = ...,
right_handle_ids: Sequence[int] = ...,
op: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result
Select control points and individual Bézier handles of the curve in Point mode by stable id. Replace with no ids clears the selection.
Select All Points
tb.ops.curve.select_all() -> Result
Select every control point of the curve in Point mode (A).
Checker Deselect
tb.ops.curve.select_checker(
*,
deselected: int = 1,
selected: int = 1,
offset: int = 0,
) -> Result
Along each spline's selected points, keep selected points and deselect the next deselected, repeating.
Select Ends
tb.ops.curve.select_ends(*, amount_start: int = 1, amount_end: int = 1) -> Result
Keep (or, with nothing selected, select) the first and last control points of each spline.
Invert Point Selection
tb.ops.curve.select_invert() -> Result
Select exactly the control points that are not selected (Ctrl+I).
Select Less
tb.ops.curve.select_less() -> Result
Shrink the selection by one point along each spline (Ctrl+Numpad −).
Select Linked
tb.ops.curve.select_linked() -> Result
Select every point of each spline that has a selected point (L).
Select More
tb.ops.curve.select_more() -> Result
Grow the selection by one point along each spline (Ctrl+Numpad +).
Select Next
tb.ops.curve.select_next() -> Result
Add the point after each selected point along its spline.
Select Previous
tb.ops.curve.select_previous() -> Result
Add the point before each selected point along its spline.
Select Random
tb.ops.curve.select_random(
*,
ratio: float = 0.5,
seed: int = 0,
action: Literal["select", "deselect"] = "select",
) -> Result
Select (or deselect) a random fraction of the control points; the same seed gives the same result.
Select Shortest Path
tb.ops.curve.select_shortest_path() -> Result
Select every point on the shorter path between two selected points of one spline (also Ctrl+click).
Select Similar
tb.ops.curve.select_similar(
*,
type: Literal["type", "radius", "weight", "tilt", "direction"] = "radius",
compare: Literal["equal", "greater", "less"] = "equal",
threshold: float = 0.1,
) -> Result
Add control points whose spline type, radius, weight, tilt or direction matches the selected points (Shift+G).
Separate to New Curve
tb.ops.curve.separate(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
name: str = ...,
) -> Result
Move the selected control-point runs into a new curve object at the same placement (P).
Set Point Coordinate
tb.ops.curve.set_component_axis(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
left_handle_ids: Sequence[int] = ...,
right_handle_ids: Sequence[int] = ...,
axis: Literal["X", "Y", "Z"],
value: float,
relative: bool = False,
) -> Result
Set one world axis of the selected points and handles to a value (their center lands there, so a multi-selection moves rigidly), or offset it when relative.
Set Degree
tb.ops.curve.set_degree(
*,
node: ObjectRef = ...,
spline_ids: Sequence[int] = ...,
point_ids: Sequence[int] = ...,
degree: int = 3,
) -> Result
Set the polynomial degree. NURBS splines take order degree + 1; other splines: 1 = Poly, 3 = smooth Bézier, 2/4/5 = NURBS of that degree.
Set Handle Type
tb.ops.curve.set_handle_type(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
left_handle_ids: Sequence[int] = ...,
right_handle_ids: Sequence[int] = ...,
mode: Literal["AUTO", "VECTOR", "ALIGN", "FREE", "TOGGLE"] = "AUTO",
side: Literal["both", "left", "right"] = "both",
) -> Result
Set the Bézier handle type of the selected points (both sides, or one side) and of individually selected handles: Automatic, Vector, Aligned, Free, or Toggle Free/Aligned (V).
Set Point Position
tb.ops.curve.set_point(
*,
node: ObjectRef = ...,
point_id: int,
position: Vec3Like,
) -> Result
Set one control point to an exact position in the curve's local coordinates; its handles move with it.
Set Radius / Weight
tb.ops.curve.set_point_value(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
attribute: Literal["radius", "nurbs_weight", "tilt"],
value: float,
) -> Result
Set the radius (scales Bevel, Sweep and Pipe) or NURBS weight of the selected points, or of every point of the selected curve. tilt (radians) is kept for imported data and scripts; framing is controlled by the tools that use the curve.
Set Spline Type
tb.ops.curve.set_spline_type(
*,
node: ObjectRef = ...,
spline_ids: Sequence[int] = ...,
point_ids: Sequence[int] = ...,
type: Literal["poly", "bezier", "nurbs", "catmullRom"],
use_handles: bool = False,
bezier_handles: Literal["VECTOR", "AUTO"] = "VECTOR",
) -> Result
Convert the selected splines (or splines with selected points) to Poly, Bézier, NURBS or Catmull-Rom.
Smooth Points
tb.ops.curve.smooth(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
factor: float = 0.1666666716337204,
iterations: int = 1,
) -> Result
Relax the selected control points toward their neighbours; open end points stay fixed and Bézier handles follow. Previewable (live Strength/Iterations).
Smooth Radius / Weight
tb.ops.curve.smooth_point_value(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
attribute: Literal["radius", "nurbs_weight", "tilt"],
) -> Result
Blend the radius, weight or imported tilt of the selected points between the values on either side.
Split
tb.ops.curve.split(*, node: ObjectRef = ..., point_ids: Sequence[int] = ...) -> Result
Split the selected control-point runs off into their own splines inside the same curve (Y).
Subdivide
tb.ops.curve.subdivide(
*,
node: ObjectRef = ...,
point_ids: Sequence[int] = ...,
cuts: int = 1,
) -> Result
Insert evenly spaced control points into every segment whose two end points are selected; Bézier shape is preserved. Previewable (live Cuts).
Sweep Along Path
tb.ops.curve.sweep_along_path(
*,
profile: ObjectRef = ...,
path: ObjectRef = ...,
scale: float = 1.0,
rotation: float = 0.0,
cap_ends: bool = True,
) -> Result
Sweep the Profile curve (its own XY shape, at its real size) along the Path curve into a new mesh object that follows both curves live. Defaults: the first and second selected curves.
Curve → Polygon Mesh
tb.ops.curve.to_mesh(
*,
nodes: Sequence[ObjectRef],
mode: Literal["evaluated", "wire", "filled"] = "evaluated",
thickness: float = 0.0,
spline_ids: Sequence[int] = ...,
regions: Any = ...,
frame: Any = ...,
unit: Literal["m", "cm", "mm", "inch", "foot"] = "m",
chord_tolerance: float = 0.0001,
accepted_error: float = 0.001,
planarity_tolerance: float = 1e-8,
intersection_tolerance: float = 1e-8,
max_samples: int = 4096,
name: str = ...,
material: MaterialRef = ...,
) -> Result
Create an independent editable polygon mesh per curve placement, retaining every source curve. Evaluated converts the displayed generator result; a plain curve becomes loose edges. Wire converts the source edges. Filled creates planar faces, closing open paths in the output only; optional Thickness gives the profile a closed polygon shell. All outputs preview and undo together. Static approximation and f32 loss must fit the accepted world error budget. This does not create an analytic solid.
Close / Open
tb.ops.curve.toggle_closed(
*,
node: ObjectRef = ...,
spline_ids: Sequence[int] = ...,
point_ids: Sequence[int] = ...,
cyclic: Literal["toggle", "close", "open"] = "toggle",
) -> Result
Toggle whether the selected splines are closed (Alt+C), or set it explicitly.