A Bezier describes an instance of a single geometry Bezier primitive (containing a set of connected Bezier curves). It is an instance of a Prim Class. It can be created from either a Model SOP or Script SOP. Each curve is described by a set of segments, where each segment is a list of vertices. The first and last vertex of each segment is an anchor position, while its neighboring vertices describe tangent handles.
The members and methods below allow modification of the Bezier in a modelling context, however the Bezier can also be modified by direction manipulation of its vertices. See Prim Class for more details.
anchors → (Read Only):
Returns the list of anchor vertices.
basis → (Read Only):
Return the bezier basis as a list of float values.
closed → (Read Only):
Controls whether the curve is closed or open.
order → (Read Only):
Return the bezier order. The order is one more than the degree.
segments → (Read Only):
Returns a list of segments, where each segment is a list of vertices.
tangents → (Read Only):
Returns the tangents as a list of vertex pairs.
inserts anchor at given position (u from 0..1) and returns anchor vertex.
updateAnchor(anchorIndex, targetPosition, tangents=True)→
Modify the anchor vertex to the new position. If tangents is True, modify neighboring tangent vertices as well. Returns resulting position.
Appends a set of vertices, creating a new segment on the curve, ending with the targetPosition.
Returns final anchor vertex.
- preserveShape - (Keyword, Optional) Specifies whether the new tangent will align with the previous segment or not.
updateTangent(tangentIndex, targetPosition, rotate=True, scale=True, rotateLock=True, scaleLock=True)→
Modify the vertex vertex to the new position, constraining either rotation or scale. Locked controls matching tangent. Returns resulting position.
Deletes the anchor and its neighbouring tangents.