Curves(ID)#

base classes — bpy_struct, ID

class bpy.types.Curves(ID)#

Hair data-block for hair curves

animation_data#

Animation data for this data-block

Type:

AnimData, (readonly)

attributes#

Geometry attributes

Type:

AttributeGroupCurves bpy_prop_collection of Attribute, (readonly)

color_attributes#

Geometry color attributes

Type:

AttributeGroupCurves bpy_prop_collection of Attribute, (readonly)

curve_offset_data#
Type:

bpy_prop_collection of IntAttributeValue, (readonly)

curves#

All curves in the data-block

Type:

bpy_prop_collection of CurveSlice, (readonly)

materials#
Type:

IDMaterials bpy_prop_collection of Material, (readonly)

normals#

The curve normal value at each of the curve’s control points

Type:

bpy_prop_collection of FloatVectorValueReadOnly, (readonly)

points#

Control points of all curves

Type:

bpy_prop_collection of CurvePoint, (readonly)

position_data#
Type:

bpy_prop_collection of FloatVectorAttributeValue, (readonly)

selection_domain#
Type:

enum in Attribute Curves Domain Items, default ‘POINT’

surface#

Mesh object that the curves can be attached to

Type:

Object

surface_uv_map#

The name of the attribute on the surface mesh used to define the attachment of each curve

Type:

string, default “”, (never None)

use_mirror_x#

Enable symmetry in the X axis

Type:

boolean, default False

use_mirror_y#

Enable symmetry in the Y axis

Type:

boolean, default False

use_mirror_z#

Enable symmetry in the Z axis

Type:

boolean, default False

use_sculpt_collision#

Enable collision with the surface while sculpting

Type:

boolean, default False

add_curves(sizes)#

add_curves

Parameters:

sizes (int array of 1 items in [0, inf]) – Sizes, The number of points in each curve

remove_curves(indices=(0,))#

Remove all curves. If indices are provided, remove only the curves with the given indices.

Parameters:

indices (int array of 1 items in [0, inf], (optional)) – Indices, The indices of the curves to remove

resize_curves(sizes, indices=(0,))#

Resize all existing curves. If indices are provided, resize only the curves with the given indices. If the new size for a curve is smaller, the curve is trimmed. If the new size for a curve is larger, the new end values are default initialized.

Parameters:
  • sizes (int array of 1 items in [1, inf]) – Sizes, The number of points in each curve

  • indices (int array of 1 items in [0, inf], (optional)) – Indices, The indices of the curves to resize

classmethod bl_rna_get_subclass(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)#
Parameters:

id (string) – The RNA type identifier.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties#

Inherited Functions#

References#