animation_setKeyframes
Batch-write multiple keyframes with Smooth, Linear, Ease, Step, Bezier, Cycle, Bounce, Elastic, or Stagger interpolation onto any supported Moho 14.4 animation channel, including separate dimensions.
Instructions
Batch-write multiple keyframes with Smooth/Linear/Ease/Step/Bezier (with handles)/Cycle/Bounce/Elastic/Stagger/Hold/ColorTag interpolation onto any supported Moho 14.4 animation channel (including Separate Dimensions).
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": {
"channel": "<channel>",
"keyframes": "<keyframes>"
},
"name": "animation_setKeyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hold | No | Frames to hold prior value before interpolating | |
| val1 | No | InterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param) | |
| val2 | No | InterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative) | |
| boneId | No | Zero-based bone index inside the BoneLayer | |
| channel | Yes | ||
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| pointId | No | Zero-based point index for point_pos/point_width/point_curvature | |
| shapeId | No | Zero-based shape index for shape_* / combo_blend channels | |
| stagger | No | ||
| boneName | No | Exact bone name | |
| colorTag | No | Keyframe color tag index (InterpSetting.tags) | |
| interval | No | Step interval in frames (1 = ones, 2 = twos, 3 = threes) | |
| cycleBack | No | Relative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2) | |
| cycleMode | No | Cycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame) | |
| dimension | No | Separate Dimension axis for vector channels (x, y, z) | |
| groupName | No | Vitruvian group name for vitruvian_active_bone | |
| keyframes | Yes | ||
| layerName | No | Exact layer name | |
| layerUuid | No | Layer UUID | |
| shapeName | No | Shape name for shape_* / combo_blend channels | |
| curveIndex | No | Curve index on point for point_curvature (default: 0) | |
| groupIndex | No | Vitruvian group index for vitruvian_active_bone | |
| additiveCycle | No | Enable additive cycle accumulation | |
| bezierInAngle | No | Bezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle) | |
| interpolation | No | ||
| bezierOutAngle | No | Bezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle) | |
| bezierInPercent | No | Bezier incoming handle percentage (InterpSetting:SetBezierInPercentage) | |
| splitDimensions | No | Split vector channel dimensions automatically if not already split | |
| bezierOutPercent | No | Bezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage) | |
| cycleTargetFrame | No | Target loop frame when using Cycle interpolation |