generate_motion_sequence
Generate animation timeline frames from keyframes, presets, or math expressions by computing joint rotation changes and injecting the resulting sequence into the document model.
Instructions
Accepts keyframes or mathematical expressions (e.g., sine waves for walking/running loops) to automatically compute absolute/relative joint rotation changes across a specified number of frames. Returns an array of calculated timeline frames injected into the document model state.
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": {
"mode": "<mode>"
},
"name": "generate_motion_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Generation mode: "preset" (pre-programmed loop), "expression" (math formulas), or "keyframes" (in-between interpolation) | |
| easing | No | Default easing method between keyframes (default: "ease_in_out") | |
| preset | No | Built-in motion preset: walk_loop, run_loop, idle_breathe, wave_hand, jumping_jacks, punch_combo, sword_slash, spin_kick, backflip, dash_dodge | |
| keyframes | No | Keyframes to interpolate between (used when mode is "keyframes") | |
| frameCount | No | Number of frames to generate (default: 24) | |
| expressions | No | Mathematical motion expressions (used when mode is "expression") | |
| targetFigureId | No | Target figure_type_id to animate (default: first figure in project) | |
| durationPerFrame | No | Hold duration per keyframe in ticks (default: 1) | |
| injectIntoDocument | No | Whether to replace current project keyframes with the generated sequence (default: true) |