Set keyframe interpolation
set_keyframe_interpolationControl how an effect parameter changes between keyframes by setting interpolation to linear, hold, bezier, or ease types for one or all keyframes in Premiere Pro.
Instructions
Set the interpolation of one keyframe (at time) or of all keyframes (all=true) of an effect parameter: linear, hold, bezier, ease_in, ease_out or ease_in_out. The interpolation governs the segment from that keyframe to the next one. Premiere cannot report interpolation back; check the effect with get_parameter_value_at_time. Fails with NOT_FOUND when no keyframe matches. Returns changed and the times of the changed keyframes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"interpolation": "<interpolation>"
},
"name": "set_keyframe_interpolation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Apply to every keyframe of the parameter; time is then ignored. Default false. | |
| time | No | Time of the keyframe, in seconds (see time_base). Required unless all is true. | |
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| time_base | No | How times are measured. "sequence" (default): sequence time, seconds from the start of the timeline. "clip": clip source time, seconds from the start of the source media (the unit Premiere stores keyframes in). Times in the result use the same base. The sequence-to-source conversion ignores clip speed: on a speed-changed or reversed clip use "clip". | |
| tolerance | No | How far from `time` the keyframe may be, in seconds. Default half a frame of the sequence. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| param_name | No | Parameter display name, case-insensitive, e.g. "Blurriness". The first match is used. Ignored when param_index is given. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| effect_name | No | Effect display name or match name, case-insensitive, e.g. "Gaussian Blur" or "Motion". The first match is used. Ignored when effect_index is given. | |
| param_index | No | 0-based parameter index (from get_effect_parameters). Required for parameters with an empty display name. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| effect_index | No | 0-based index of the effect in the clip's effect list (from list_clip_effects). Use it when the clip has two effects with the same name. | |
| interpolation | Yes | Interpolation of the segment that starts at the keyframe: "linear", "hold" (value stays until the next keyframe), "ease_in" (fast start, slows into the next keyframe), "ease_out" (slow start, then faster), "ease_in_out" (slow at both ends) or "bezier" (marks the keyframe as Bezier; scripts cannot set its handles, so a keyframe that was linear keeps a straight segment: use the ease types for a curve). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |