Command · Set Keyframe Interpolation
keyframes.setInterpolation
Sets the interpolation (hold, linear, bezier, easeIn, easeOut, easeInOut) of several keyframes of one parameter at once.
- v1
- Capability EditSequence
- Tool
keyframes_setInterpolation
Request
{
"command": "keyframes.setInterpolation",
"params": {
"clip": 42,
"interpolation": "easeInOut",
"param": "motion.scale"
}
}Parameters
clipinteger | object (1..)Required- The clip. A clip id, or {"track", "time"} for the clip there.
effectinteger (1..)- For an effect parameter: The effect instance id (clip.details lists them).
interpolation`hold` | `linear` | `bezier` | `easeIn` | `easeOut` | `easeInOut`Required- The new interpolation.
keys(integer (0..))[]- The keys. Default: all of them.
paramstringRequired- The parameter: a clip parameter (motion.position.x, motion.position.y, motion.scale, motion.rotation, motion.anchor.x, motion.anchor.y, opacity.opacity, volume.level, panner.balance), or with "effect" a parameter key of that effect (see effect.list).
sequenceinteger (1..)- Sequence id; only needed when the project has several.
Discussion
Sets the interpolation (hold, linear, bezier, easeIn, easeOut, easeInOut) of several keyframes of one parameter at once.
Run it with wabcut-cli cmd <project> --json, from an MCP client as keyframes_setInterpolation, or from an extension. See Edit commands for requests, references and results.
See also
keyframes.*
- keyframes.move
Move Keyframes. Moves several keyframes of one parameter together by a timeline distance, keeping their spacing.