FCurveKeyframePoints(bpy_prop_collection)

base classes — bpy_prop, bpy_prop_collection

class bpy.types.FCurveKeyframePoints(bpy_prop_collection)

Collection of keyframe points

insert(frame, value, *, options=set(), keyframe_type='KEYFRAME')

Add a keyframe point to a F-Curve

Parameters:
  • frame (float) – X Value of this keyframe point (in [-inf, inf])

  • value (float) – Y Value of this keyframe point (in [-inf, inf])

  • options (set[Literal['REPLACE', 'NEEDED', 'FAST']]) –

    Keyframe options (optional)

    • REPLACE Replace – Don’t add any new keyframes, but just replace existing ones.

    • NEEDED Needed – Only adds keyframes that are needed.

    • FAST Fast – Fast keyframe insertion to avoid recalculating the curve each time.

  • keyframe_type (Literal[Beztriple Keyframe Type Items]) – Type of keyframe to insert (optional)

Returns:

Newly created keyframe

Return type:

Keyframe

add(count)

Add a keyframe point to a F-Curve

Parameters:

count (int) – Number, Number of points to add to the spline (in [0, inf])

remove(keyframe, *, fast=False)

Remove keyframe from an F-Curve

Parameters:
  • keyframe (Keyframe) – Keyframe to remove (never None)

  • fast (bool) – Fast, Fast keyframe removal to avoid recalculating the curve each time (optional)

clear()

Remove all keyframes from an F-Curve

sort()

Ensure all keyframe points are chronologically sorted

deduplicate()

Ensure there are no duplicate keys. Assumes that the points have already been sorted

handles_recalc()

Update handles after modifications to the keyframe points, to update things like auto-clamping

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