Spline(bpy_struct)

base class — bpy_struct

class bpy.types.Spline(bpy_struct)

Element of a curve, either NURBS, Bézier or Polyline or a character with text objects

bezier_points

Collection of points for Bézier curves only (default None, readonly)

Type:

SplineBezierPoints[BezierSplinePoint]

character_index

Location of this character in the text data (only for text curves) (in [0, inf], default 0, readonly)

Type:

int

hide

Hide this curve in Edit mode (default False)

Type:

bool

material_index

Material slot index of this curve (in [0, 32767], default 0)

Type:

int

order_u

NURBS order in the U direction. Higher values make each point influence a greater area, but have worse performance. (in [2, 64], default 0)

Type:

int

order_v

NURBS order in the V direction. Higher values make each point influence a greater area, but have worse performance. (in [2, 64], default 0)

Type:

int

point_count_u

Total number points for the curve or surface in the U direction (in [0, inf], default 0, readonly)

Type:

int

point_count_v

Total number points for the surface on the V direction (in [0, inf], default 0, readonly)

Type:

int

points

Collection of points that make up this poly or nurbs spline (default None, readonly)

Type:

SplinePoints[SplinePoint]

radius_interpolation

The type of radius interpolation for Bézier curves (default 'LINEAR')

Type:

Literal[‘LINEAR’, ‘CARDINAL’, ‘BSPLINE’, ‘EASE’]

resolution_u

Curve or Surface subdivisions per segment (in [1, 1024], default 0)

Type:

int

resolution_v

Surface subdivisions per segment (in [1, 1024], default 0)

Type:

int

tilt_interpolation

The type of tilt interpolation for 3D, Bézier curves (default 'LINEAR')

Type:

Literal[‘LINEAR’, ‘CARDINAL’, ‘BSPLINE’, ‘EASE’]

type

The interpolation type for this curve element (default 'POLY')

Type:

Literal[‘POLY’, ‘BEZIER’, ‘NURBS’]

use_bezier_u

Make this nurbs curve or surface act like a Bézier spline in the U direction (default False)

Type:

bool

use_bezier_v

Make this nurbs surface act like a Bézier spline in the V direction (default False)

Type:

bool

use_cyclic_u

Make this curve or surface a closed loop in the U direction (default False)

Type:

bool

use_cyclic_v

Make this surface a closed loop in the V direction (default False)

Type:

bool

use_endpoint_u

Make this nurbs curve or surface meet the endpoints in the U direction (default False)

Type:

bool

use_endpoint_v

Make this nurbs surface meet the endpoints in the V direction (default False)

Type:

bool

use_smooth

Smooth the normals of the surface or beveled curve (default False)

Type:

bool

calc_length(*, resolution=0)

Calculate spline length

Parameters:

resolution (int) – Resolution, Spline resolution to be used, 0 defaults to the resolution_u (in [0, 1024], optional)

Returns:

Length, Length of the polygonaly approximated spline (in [0, inf])

Return type:

float

valid_message(direction)

Return the message

Parameters:

direction (int) – Direction, The direction where 0-1 maps to U-V (in [0, 1])

Returns:

Return value, The message or an empty string when there is no error

Return type:

str

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References