Skip to content
AlphaToolBox3D is in early alpha: features are incomplete and things can break. Use it at your own risk and keep copies of your files. Report a problem
ToolBox3D

Docs · Python API

tb.ops.curve

55 operations. Without targets=, an operation works on the current selection, like its button in the editor.

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.

  • Operation curve.add_cv
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
positionVec3LikerequiredWorld-space position of the new point. (scene units).
spline_idint—Stable spline id (default: the spline of the selected end point, else the last spline). (1…4294967295).
endLiteral["end", "start"]"end"Which end of the spline to extend. (end / start).

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.

  • Operation curve.cable
  • In Model
ArgumentTypeDefaultDescription
input_meshSequence[ObjectRef]—Meshes the cable points stick to; a cable end on one of them leaves its surface straight (Departure). Empty: every visible mesh.
curvesSequence[ObjectRef]—Existing curves that become cables (they stay editable and the cable follows them).
pathsAny—Click points in the viewport: on a curve, a mesh or the grid. API: world-space chains [[x,y,z],…] in metres; each chain is one continuous cable.
handlesAny—Tangent handles per point, aligned with Points: null hangs automatically; [[in], [out]] (offsets in metres) aims the cable into and out of that point, and Slack still hangs it between.
styleLiteral["pipe", "rope", "chain", "custom"]"pipe"What the cable is made of: a tube, twisted rope strands, chain links or your own repeating piece. (pipe / rope / chain / custom).
cross_sectionLiteral["round", "flat", "curve"]"round"The tube's section: round, a flat strap, or the shape of a curve you pick. (round / flat / curve).
radiusfloat0.02Cable radius (the rope's outer radius; half a flat strap's thickness). (scene units; 0…1000).
widthfloat0.08Flat strap: full width. (scene units; 0…1000).
profile_curveObjectRef—A curve whose local XY shape is the tube's section.
strandsint3Strands twisted around the cable; 1 makes a coil (phone cord). (count; 1…64).
twist_pitchfloat0.12Length of one full twist of the strands (0 lays them straight: a bundle). (scene units; 0…1000).
link_lengthfloat0.06Outer length of one chain link. (scene units; 0…1000).
link_widthfloat0.04Outer width of one chain link. (scene units; 0…1000).
wirefloat0.006Radius of the wire the links are bent from. (scene units; 0…1000).
pieceObjectRef—Your mesh repeated along the cable (a bead, link, tie or hose segment). Its long side follows the cable; it repeats every piece length.
joinLiteral["links", "welded"]"links"Links: separate pieces end to end (chains, beads, ties). Welded: pieces bend along the cable and touching ends merge (hoses, zippers, tracks; pieces open at both ends weld cleanest). (links / welded).
gapfloat0.0Space between links or pieces; negative pulls them into each other (interlocking). (scene units; -100…100).
alternate_twistboolFalseLinks: turn every other piece 90° around the cable (interlocking links).
weld_distancefloat0.001Welded: piece ends closer than this merge into one surface. (scene units; 0…1000).
piece_axisLiteral["auto", "X", "Y", "Z"]"auto"The piece's axis that runs along the cable. (auto / X / Y / Z).
slackfloat0.15How much the cable sags: how much longer than the straight distance it is (0 = taut). (0…2).
departurefloat0.0Straight run out of the surface at a cable end before it hangs (ends on an input mesh). (scene units; 0…1000).
cable_countint1Parallel cables side by side. (count; 1…64).
spacingfloat0.06Sideways distance between parallel cables. (scene units; 0…1000).
sidesint12Segments around the tube: more is rounder. (count; 3…64).
resolutionint16Tube rings between two control points: more is smoother along the cable. (count; 2…64).
points_per_spanint7Editable curve points along each hanging span (Control Point mode edits them after creation). (count; 3…64).
cap_endsboolTrueClose the tube ends.
cap_fillLiteral["grid", "ngon"]"grid"Grid closes each end with clean quads (when Sides is a multiple of 4); N-gon uses one face. (grid / ngon).
adaptive_ringsboolTruePlace rings where the cable bends: straight runs get few rings, bends keep them (fewer polygons, same silhouette).
connectorObjectRef—Your plug or connector object, copied onto the cable ends (its pivot on the end). Empty: no connectors.
connector_endsLiteral["both", "start", "end"]"both"Which cable ends get a connector. (both / start / end).
connector_axisLiteral["X", "Y", "Z", "-X", "-Y", "-Z"]"X"The connector's own axis that points out along the cable. (X / Y / Z / -X / -Y / -Z).
clampObjectRef—Your clamp or bracket object, repeated along the cable. Empty: no clamps.
clamp_spacingfloat0.5Distance between clamps along the cable. (scene units; 0…1000).
clamp_axisLiteral["X", "Y", "Z", "-X", "-Y", "-Z"]"X"The clamp's own axis that runs along the cable. (X / Y / Z / -X / -Y / -Z).
end_radiusfloat0.0Taper to this radius at the end (0 = uniform). (scene units; 0…1000).
slack_variationfloat0.25Parallel cables: randomly varies each cable's sag (0 = identical). (0…1).
seedint1Parallel cables: another random sag pattern. (0…2147483646).
gravityVec3Like[0.0, -1.0, 0.0]Direction the cable sags towards.
twist_handLiteral["right", "left"]"right"Rope and coil: twist direction. (right / left).
liveboolTrueKeep the cable editable: editing its curve updates the cable, connectors and clamps. Off bakes them into a mesh.
namestr—Name.

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.

  • Operation curve.clear_tilt
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).

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.

  • Operation curve.create_arc
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
frameAny{"origin": [0.0, 0.0, 0.0], "u": [1.0, 0.0, 0.0], "v": [0.0, 0.0, 1.0]}f64 frame object: origin[3] in 'unit', u[3] and v[3] as nonzero orthogonal direction vectors. The frame is normalized and validated.
radius_xfloat1.0Strictly positive radius along frame u, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
radius_yfloat1.0Strictly positive radius along frame v, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
start_anglefloat0.0Where the arc begins, measured from the frame's first axis. (radians).
sweep_anglefloat1.5707963267948966Nonzero signed sweep in radians, at most one complete turn. (radians; -6.283185307179586…6.283185307179586).

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.

  • Operation curve.create_bezier
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
pointsAnyrequiredf64 control coordinates [[x,y,z],...] in 'unit'; at most 65536. Closed inputs omit a repeated last copy of the first point.
closedboolFalseJoins the last point back to the first, making a closed loop.
handle_policyLiteral["auto", "vector", "explicit"]"auto"Declared drawing construction policy; explicit requires both handle arrays. (auto / vector / explicit).
left_handlesAny—One f64 left handle position per control, in 'unit'; only for explicit policy.
right_handlesAny—One f64 right handle position per control, in 'unit'; only for explicit policy.

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.

  • Operation curve.create_catmull_rom
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
pointsAnyrequiredf64 control coordinates [[x,y,z],...] in 'unit'; at most 65536. Closed inputs omit a repeated last copy of the first point.
closedboolFalseJoins the last point back to the first, making a closed loop.

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.

  • Operation curve.create_circle
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
frameAny{"origin": [0.0, 0.0, 0.0], "u": [1.0, 0.0, 0.0], "v": [0.0, 0.0, 1.0]}f64 frame object: origin[3] in 'unit', u[3] and v[3] as nonzero orthogonal direction vectors. The frame is normalized and validated.
radiusfloat1.0Strictly positive radius in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).

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.

  • Operation curve.create_ellipse
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
frameAny{"origin": [0.0, 0.0, 0.0], "u": [1.0, 0.0, 0.0], "v": [0.0, 0.0, 1.0]}f64 frame object: origin[3] in 'unit', u[3] and v[3] as nonzero orthogonal direction vectors. The frame is normalized and validated.
radius_xfloat1.0Strictly positive radius along frame u, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
radius_yfloat1.0Strictly positive radius along frame v, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).

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.

  • Operation curve.create_nurbs
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
pointsAnyrequiredf64 control coordinates [[x,y,z],...] in 'unit'; at most 65536. Closed inputs omit a repeated last copy of the first point.
closedboolFalseJoins the last point back to the first, making a closed loop.
orderint4Degree plus one; controls must support the requested order. (count; 2…64).
knot_modeLiteral["normal", "endpoint", "bezier", "endpointBezier", "custom"]"endpoint"Knot Mode (normal / endpoint / bezier / endpointBezier / custom).
weightsAny—Optional matching positive finite f64 weights; absent means unit weights.
knotsAny—Exact f64 knot vector, required for custom mode and refused for other modes.

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.

  • Operation curve.create_polygon
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
frameAny{"origin": [0.0, 0.0, 0.0], "u": [1.0, 0.0, 0.0], "v": [0.0, 0.0, 1.0]}f64 frame object: origin[3] in 'unit', u[3] and v[3] as nonzero orthogonal direction vectors. The frame is normalized and validated.
radiusfloat1.0Positive circumradius in 'unit'; inradius tools convert before dispatch. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
sidesint5How many sides the polygon has; more sides make it rounder. (count; 3…4096).
anglefloat0.0Angle of the first vertex around frame normal, in radians. (radians).

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.

  • Operation curve.create_polyline
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
pointsAnyrequiredf64 control coordinates [[x,y,z],...] in 'unit'; at most 65536. Closed inputs omit a repeated last copy of the first point.
closedboolFalseJoins the last point back to the first, making a closed loop.

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.

  • Operation curve.create_rectangle
  • In Model
ArgumentTypeDefaultDescription
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit (m / cm / mm / inch / foot).
namestr—Name, or the next free curve name in this scene. For pointer previews the host may freeze one name at activation.
view_tolerancefloat0.0001Positive chord-error budget for the derived display curve only, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived-view sample budget. Insufficient budget is an error; it never changes the exact curve. (count; 2…1000000).
frameAny{"origin": [0.0, 0.0, 0.0], "u": [1.0, 0.0, 0.0], "v": [0.0, 0.0, 1.0]}f64 frame object: origin[3] in 'unit', u[3] and v[3] as nonzero orthogonal direction vectors. The frame is normalized and validated.
widthfloat1.0Positive width along frame u, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
heightfloat1.0Positive height along frame v, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).

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).

  • Operation curve.decimate
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
spline_idsSequence[int]—Stable spline ids (default: splines with selected points, else all splines). (1…4294967295).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
ratiofloat0.5Fraction of the control points to keep. (0…1).

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.

  • Operation curve.delete
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
domainLiteral["points", "splines", "segments"]"points"What to delete: the selected points, the whole splines they belong to, or only the segments between selected points. (points / splines / segments).

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.

  • Operation curve.dissolve
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).

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).

  • Operation curve.duplicate
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).

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.

  • Operation curve.edit_mode
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
enterboolTrueOn enters curve point editing on the selected curve; off returns to object editing.

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.

  • Operation curve.extrude
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
offsetVec3Like[0.0, 0.0, 0.0]World-space offset of the extruded points. (scene units).

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.

  • Operation curve.from_mesh_edges
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRefrequiredExplicit mesh placement to copy; required even for linked instances.
modeLiteral["edges", "faceBoundary", "meshBoundary"]"edges"Which edges become curves: the selected edges, the outline of the selected faces, or every open border of the mesh. (edges / faceBoundary / meshBoundary).
edge_idsSequence[int]—Stable mesh edge IDs for edges mode; absent uses the current edge selection on this mesh. Never dense indices. (0…4294967295).
face_idsSequence[int]—Stable mesh face IDs for faceBoundary mode; absent uses current face selection. Internal selected-face edges are excluded. (0…4294967295).
fitLiteral["exact", "fitted"]"exact"Exact copies the edges as straight segments; Fitted lays a smooth curve through them. (exact / fitted).
fit_tolerancefloat0.001Fitted: the largest distance allowed between the edges and the curve, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit for fitTolerance and viewTolerance. Existing mesh positions are already in scene metres and are never rescaled. (m / cm / mm / inch / foot).
namestr—Name of the first output curve (default: the mesh's name + "Curve"). Further components are numbered: "Ring Curve 2", "Ring Curve 3".
view_tolerancefloat0.0001Positive derived display chord-error budget, in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Derived sample budget per output component; insufficient budget refuses the operation. (count; 2…1000000).

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.

  • Operation curve.insert_point
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
positionVec3Like—World position; the nearest point on the curve is used. (scene units).
spline_idint—The spline that gets the new point. (1…4294967295).
segmentint—Spline-local index of the segment's first point. (0…4294967295).
tfloat0.5Parameter along the segment, strictly between 0 and 1. (0…1).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).

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.

  • Operation curve.join
  • Works on selected objects (at least 2)
  • In Model
ArgumentTypeDefaultDescription
nodesSequence[ObjectRef]—Curve objects to join (default: the selected objects).
intoObjectRef—The curve that receives the splines (default: the active object).

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.

  • Operation curve.make_mesh
  • In Model
ArgumentTypeDefaultDescription
nodesSequence[ObjectRef]—Curve objects that drive the mesh (default: the selected curves).
kindLiteral["curvePipe", "curveBevel", "curveSweep", "curveExtrude", "curveFill", "curveInstance", "curveRevolve"]"curvePipe"Kind (curvePipe / curveBevel / curveSweep / curveExtrude / curveFill / curveInstance / curveRevolve).
settingsAny—Settings.
namestr—Name.

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.

  • Operation curve.make_segment
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).

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.

  • Operation curve.move_cv
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
left_handle_idsSequence[int]—Left handles to move on their own (anchor point ids). (1…4294967295).
right_handle_idsSequence[int]—Right handles to move on their own (anchor point ids). (1…4294967295).
offsetVec3LikerequiredWorld-space offset. (scene units).

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.

  • Operation curve.randomize_cv
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
left_handle_idsSequence[int]—Left handles to move on their own (anchor point ids). (1…4294967295).
right_handle_idsSequence[int]—Right handles to move on their own (anchor point ids). (1…4294967295).
amountfloat0.1The largest distance a point may move; larger values scatter the points further. (scene units; 0…1000).
seedint0Changes the random pattern; the same seed always gives the same result. (0…1000000).

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.

  • Operation curve.reverse
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
spline_idsSequence[int]—Stable spline ids (default: splines with selected points, else all splines). (1…4294967295).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).

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).

  • Operation curve.rotate_cv
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
left_handle_idsSequence[int]—Left handles to move on their own (anchor point ids). (1…4294967295).
right_handle_idsSequence[int]—Right handles to move on their own (anchor point ids). (1…4294967295).
axisVec3LikerequiredWorld-space rotation axis.
anglefloatrequiredAngle (degrees).
pivotVec3Like—World pivot (default: the selection center). (scene units).

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).

  • Operation curve.scale_cv
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
left_handle_idsSequence[int]—Left handles to move on their own (anchor point ids). (1…4294967295).
right_handle_idsSequence[int]—Right handles to move on their own (anchor point ids). (1…4294967295).
factorVec3LikerequiredPer-axis scale factor (along the basis axes).
pivotVec3Like—The point the selection scales around. (scene units).
basisAny—Optional [[x],[y],[z]] world axes the factor applies along (default: world axes).

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.

  • Operation curve.select
  • In Model
ArgumentTypeDefaultDescription
point_idsSequence[int]—Point Ids (1…4294967295).
left_handle_idsSequence[int]—Left Handle Ids (1…4294967295).
right_handle_idsSequence[int]—Right Handle Ids (1…4294967295).
opLiteral["replace", "add", "remove", "toggle"]"replace"Op (replace / add / remove / toggle).

Select All Points

tb.ops.curve.select_all() -> Result

Select every control point of the curve in Point mode (A).

  • Operation curve.select_all
  • In Model

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.

  • Operation curve.select_checker
  • In Model
ArgumentTypeDefaultDescription
deselectedint1How many points to skip after each selected run. (1…1000).
selectedint1How many points in a row to select before skipping. (1…1000).
offsetint0Shifts where the pattern starts along each spline. (0…1000).

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.

  • Operation curve.select_ends
  • In Model
ArgumentTypeDefaultDescription
amount_startint1How many points to select from the start of each spline. (0…1000000).
amount_endint1How many points to select from the end of each spline. (0…1000000).

Invert Point Selection

tb.ops.curve.select_invert() -> Result

Select exactly the control points that are not selected (Ctrl+I).

  • Operation curve.select_invert
  • In Model

Select Less

tb.ops.curve.select_less() -> Result

Shrink the selection by one point along each spline (Ctrl+Numpad −).

  • Operation curve.select_less
  • In Model

Select Linked

tb.ops.curve.select_linked() -> Result

Select every point of each spline that has a selected point (L).

  • Operation curve.select_linked
  • In Model

Select More

tb.ops.curve.select_more() -> Result

Grow the selection by one point along each spline (Ctrl+Numpad +).

  • Operation curve.select_more
  • In Model

Select Next

tb.ops.curve.select_next() -> Result

Add the point after each selected point along its spline.

  • Operation curve.select_next
  • In Model

Select Previous

tb.ops.curve.select_previous() -> Result

Add the point before each selected point along its spline.

  • Operation curve.select_previous
  • In Model

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.

  • Operation curve.select_random
  • In Model
ArgumentTypeDefaultDescription
ratiofloat0.5The share of points picked; 0.5 picks about half. (0…1).
seedint0Changes which points are picked; the same seed always picks the same points. (0…2147483646).
actionLiteral["select", "deselect"]"select"Whether the picked points are added to the selection or taken out of it. (select / deselect).

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).

  • Operation curve.select_shortest_path
  • In Model

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).

  • Operation curve.select_similar
  • In Model
ArgumentTypeDefaultDescription
typeLiteral["type", "radius", "weight", "tilt", "direction"]"radius"The property points must share with the selection to be selected. (type / radius / weight / tilt / direction).
compareLiteral["equal", "greater", "less"]"equal"Selects points whose value is equal to, greater than or less than the selected points' value. (equal / greater / less).
thresholdfloat0.1How far a value may differ and still count as similar; larger values select more. (0…100000).

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).

  • Operation curve.separate
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
namestr—Name of the new curve (default: '<name>_part').

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.

  • Operation curve.set_component_axis
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
left_handle_idsSequence[int]—Left handles to move on their own (anchor point ids). (1…4294967295).
right_handle_idsSequence[int]—Right handles to move on their own (anchor point ids). (1…4294967295).
axisLiteral["X", "Y", "Z"]requiredAxis (X / Y / Z).
valuefloatrequiredValue (scene units).
relativeboolFalseRelative.

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.

  • Operation curve.set_degree
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
spline_idsSequence[int]—Stable spline ids (default: splines with selected points, else all splines). (1…4294967295).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
degreeint3The smoothness of the spline: 1 gives straight segments, higher degrees give smoother curves. (1…5).

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).

  • Operation curve.set_handle_type
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
left_handle_idsSequence[int]—Left Handle Ids (1…4294967295).
right_handle_idsSequence[int]—Right Handle Ids (1…4294967295).
modeLiteral["AUTO", "VECTOR", "ALIGN", "FREE", "TOGGLE"]"AUTO"The handle type: Automatic keeps the curve smooth, Vector points at the neighbours for sharp corners, Aligned keeps both handles in line, Free moves each handle on its own. (AUTO / VECTOR / ALIGN / FREE / TOGGLE).
sideLiteral["both", "left", "right"]"both"Which handles of the selected points change: both, or only the incoming or outgoing one. (both / left / right).

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.

  • Operation curve.set_point
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idintrequiredPoint Id (1…4294967295).
positionVec3LikerequiredLocal position. (scene units).

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.

  • Operation curve.set_point_value
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
attributeLiteral["radius", "nurbs_weight", "tilt"]requiredThe point value to set: radius (scales the bevel, sweep and pipe thickness), NURBS weight (pulls the curve towards the point) or tilt. (radius / nurbs_weight / tilt).
valuefloatrequiredThe value given to every selected point.

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.

  • Operation curve.set_spline_type
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
spline_idsSequence[int]—Stable spline ids (default: splines with selected points, else all splines). (1…4294967295).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
typeLiteral["poly", "bezier", "nurbs", "catmullRom"]requiredThe spline type to convert to: Poly (straight segments), Bézier (handles), NURBS (weighted control points) or Catmull-Rom (passes through every point). (poly / bezier / nurbs / catmullRom).
use_handlesboolFalseBézier → Poly/Catmull-Rom: keep the handles as points.
bezier_handlesLiteral["VECTOR", "AUTO"]"VECTOR"The handles new Bézier points get: Vector keeps the current straight shape, Auto rounds it. (VECTOR / AUTO).

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).

  • Operation curve.smooth
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
factorfloat0.1666666716337204Strength of each pass. (0…1).
iterationsint1How many smoothing passes run; more passes give a smoother curve. (count; 1…100).

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.

  • Operation curve.smooth_point_value
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
attributeLiteral["radius", "nurbs_weight", "tilt"]requiredThe point value to even out between neighbours: radius, NURBS weight or tilt. (radius / nurbs_weight / tilt).

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).

  • Operation curve.split
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).

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).

  • Operation curve.subdivide
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
cutsint1How many points are added between each pair of selected points. (count; 1…1000).

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.

  • Operation curve.sweep_along_path
  • In Model
ArgumentTypeDefaultDescription
profileObjectRef—The cross-section curve (default: the first selected curve).
pathObjectRef—The curve to sweep along (default: the second selected curve).
scalefloat1.0Size of the section relative to the profile curve. (0…1000).
rotationfloat0.0Turn the section around the path. (degrees; -360…360).
cap_endsboolTrueClose both ends of an open path when the profile is closed.

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.

  • Operation curve.to_mesh
  • In Model
ArgumentTypeDefaultDescription
nodesSequence[ObjectRef]requiredCurve placements to convert. Repeated picks normalize to one input; distinct linked placements each produce a mesh.
modeLiteral["evaluated", "wire", "filled"]"evaluated"What the mesh is made from: the curve as drawn (with its bevel), its edges only as a wire, or its closed outline filled with faces. (evaluated / wire / filled).
thicknessfloat0.0Filled Profile only: depth in source-local scene metres, displayed in the working unit. Zero keeps a flat surface; positive depth retains the base and adds the cap and walls. The copied placement applies its scale afterwards. (scene units; 0…340282346638528860000000000000000000000).
spline_idsSequence[int]—Existing stable spline IDs, never dense indices. Absent selects all splines; incompatible with explicit regions. (1…4294967295).
regionsAny—Filled mode only: [{outer:stableSplineId,holes:[stableSplineIds]}]. Explicit hole ownership; no loop is guessed or silently discarded.
frameAny—Filled mode only: {origin:[x,y,z],u:[x,y,z],v:[x,y,z]} in source-local scene metres (directions unit-free). Absent derives an actual source plane; nonplanar inputs are refused, never projected.
unitLiteral["m", "cm", "mm", "inch", "foot"]"m"Unit for quality tolerances only. Existing source positions and frame origin are already scene metres and are not rescaled. (m / cm / mm / inch / foot).
chord_tolerancefloat0.0001Positive conservative curve-to-polyline chord budget in world 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
accepted_errorfloat0.001Positive accepted total world error including conservative sampling and measured f32 cast loss; insufficient precision is refused. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
planarity_tolerancefloat1e-8Allowed source-local planarity residual in 'unit'; this operation performs no projection. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
intersection_tolerancefloat1e-8Declared source-local polygon intersection/short-edge tolerance in 'unit'. (scene units; 0…179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000).
max_samplesint4096Total sample budget across the chosen splines. Refuse excess; never truncate or relax quality. (count; 2…65536).
namestr—Output name; absent uses the next free pCurveMesh<n> name.
materialMaterialRef—Optional output material (ID or name). Absent preserves each curve placement's material bindings and overrides.

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.

  • Operation curve.toggle_closed
  • In Model
ArgumentTypeDefaultDescription
nodeObjectRef—Curve placement to edit (default: the curve in Point mode, else the selected curve object).
spline_idsSequence[int]—Stable spline ids (default: splines with selected points, else all splines). (1…4294967295).
point_idsSequence[int]—Stable control-point ids (default: the Point-mode selection). (1…4294967295).
cyclicLiteral["toggle", "close", "open"]"toggle"Whether the selected splines are closed into loops, opened, or switched between the two. (toggle / close / open).