animation_createCycle
Builds multi-channel animation cycles across a frame range by ensuring boundary keys and setting Cycle interpolation to the next frame, preventing double-frame stutter in Moho Studio projects.
Instructions
Build a seamless multi-channel animation cycle across [startFrame, endFrame]: ensures boundary keys at start/end, copies startFrame to endFrame when needed, and sets Cycle interpolation targeting startFrame + 1 (Frame 2 when starting at Frame 1) to avoid the double-frame stutter.
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": {
"endFrame": "<endFrame>"
},
"name": "animation_createCycle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boneId | No | Zero-based bone index inside the BoneLayer | |
| channel | No | ||
| 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 | |
| targets | No | Optional explicit list of { layerName/Id, channel, boneName/Id, dimension, ... } targets | |
| boneName | No | Exact bone name | |
| channels | No | Optional list of channel names or channel selector objects to cycle together | |
| colorTag | No | ||
| endFrame | Yes | Cycle end frame where Cycle interpolation is applied | |
| interval | No | ||
| cycleMode | No | Default: 'relative' | |
| dimension | No | Separate Dimension axis for vector channels (x, y, z) | |
| groupName | No | Vitruvian group name for vitruvian_active_bone | |
| 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 | |
| startFrame | No | Cycle start frame (default: 1) | |
| additiveCycle | No | ||
| copyStartToEnd | No | Copy startFrame value to endFrame if endFrame has no key (default: true) | |
| ensureStartKey | No | Key startFrame if no key exists yet (default: true) | |
| splitDimensions | No | Split vector channel dimensions automatically if not already split | |
| cycleTargetFrame | No | Loop target frame (default: startFrame + 1) | |
| forceCopyStartToEnd | No | Always overwrite endFrame value with startFrame value (default: false) | |
| interpolationAtStart | No | Optional interpolation mode for startFrame (e.g. 'linear') |