Measure Angle
tb.ops.measurement.create_angle(*, first: Any, second: Any) -> Result
A live angle between two directions: face normals ({"node", "face"}: the face's stable id) and / or curve tangents ({"node", "spline"?, "parameter"}). It follows the objects as they move or are edited. One undo step.
Measure Arc Length
tb.ops.measurement.create_arc_length(
*,
parameter: float,
spline: int = ...,
node: ObjectRef,
) -> Result
A live dimension showing the length along a curve from its start to a draggable point. One undo step.
Measure Distance
tb.ops.measurement.create_distance(
*,
start: Vec3Like = ...,
start_locator: ObjectRef = ...,
end: Vec3Like = ...,
end_locator: ObjectRef = ...,
) -> Result
Bind a live distance dimension to two locators, creating a locator at each clicked point unless an existing locator is given. Moving either locator updates the value. The locators and the dimension are one undo step.
Measure Curve Parameter
tb.ops.measurement.create_parameter(
*,
parameter: float,
spline: int = ...,
node: ObjectRef,
) -> Result
A live dimension showing the normalized parameter of a draggable point on a curve. One undo step.
Delete Measurement
tb.ops.measurement.delete(*, annotation: str) -> Result
Delete a measurement annotation. Locators bound to a distance dimension stay in the scene.
Rebind Distance
tb.ops.measurement.rebind_locators(
*,
annotation: str,
expected_version: str,
start: Vec3Like = ...,
start_locator: ObjectRef = ...,
end: Vec3Like = ...,
end_locator: ObjectRef = ...,
) -> Result
Rebind a distance dimension's start and/or end to another locator or to a new locator at a point; an end not given keeps its binding. The new locators and the rebinding are one undo step.
Move Curve Dimension Point
tb.ops.measurement.set_curve_point(
*,
annotation: str,
expected_version: str,
parameter: float = ...,
spline: int = ...,
node: ObjectRef = ...,
) -> Result
Move the point of an arc length or parameter dimension along its curve, or bind it to another curve (node) — the Rebind of a dimension whose curve was deleted. Drags preview and accept as one undo step.