Set Keyframe
set_keyframeSet or update a keyframe on any animatable parameter of a C4D entity. Supports scalar and vector values, with automatic track creation.
Instructions
Create or update a single keyframe on a resolved entity's parameter. Supports scalar (real/long/bool) and vector (x/y/z component) parameters; the bridge infers the dtype from the entity's description, or you can override it explicitly. Creates the CTrack automatically on first use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Time base override (default: doc fps). | |
| dtype | No | Override the dtype when description lookup fails (rare). | |
| frame | Yes | Frame number. | |
| value | Yes | Value at this frame (rotations in radians; bools coerce to 0/1). | |
| handle | Yes | Entity whose parameter gets the keyframe. | |
| interp | No | Key interpolation (default "spline"). | |
| param_id | Yes | Top-level description id (e.g. c4d.ID_BASEOBJECT_REL_ROTATION = 904). | |
| component | No | Sub-component for Vector params. For C4D rotation (HPB) use "x" for H, "y" for P, "z" for B. |