AnnotationStrokePoints(bpy_prop_collection)

base classes — bpy_prop, bpy_prop_collection

class bpy.types.AnnotationStrokePoints(bpy_prop_collection)

Collection of annotation stroke points

add(count, *, pressure=1.0, strength=1.0)

Add point(s) to the stroke

Parameters:
  • count (int) – Count, Number of points to add (in [1, inf])

  • pressure (float) – Pressure, Pressure/radius for new points (in [0, inf], optional)

  • strength (float) – Strength, Color strength/opacity for new points (in [0, 1], optional)

remove(index)

Remove a point from the stroke

Parameters:

index (int) – Index, Index of point to remove (in [0, inf])

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

id (str) – The RNA type identifier.

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.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References