Set Keyframe
set_keyframeCreate or update a keyframe for any parameter at a specified frame, handling scalar and vector channels with automatic track creation.
Instructions
Create or update one keyframe. Use a full DescID path (including user data) or legacy param_id/component. Supports real/long/bool scalar channels and individual vector components. Creates the CTrack on first use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Time base override (default: doc fps). | |
| path | No | Full DescID as [[id,dtype,creator],...], from list_user_data desc_id or list_tracks path. For a vector append a REAL x/y/z DescLevel. Exclusive with param_id/component/dtype. | |
| dtype | No | Legacy param_id dtype override; omit with full path. | |
| frame | Yes | Frame number. | |
| value | Yes | Value at this frame (rotations in radians). | |
| handle | Yes | Entity whose parameter gets the keyframe. | |
| interp | No | Key interpolation (default "spline"). | |
| param_id | No | Legacy top-level parameter id; exclusive with path. | |
| component | No | Legacy vector component with param_id; HPB rotation maps to x/y/z. Omit with path. |