mmm_replace_keys
Replaces keyframes in a frame range by clearing existing bone keys and inserting supplied keys, then returns deleted/inserted counts and undo status.
Instructions
範囲のキーを差し替える。消した数・入れた数・元に戻すに載ったかを返す。範囲の端のキーを残したい時は、渡す側に含める。
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": {
"frame_range": "<frame_range>",
"bones": "<bones>"
},
"name": "mmm_replace_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | MMM の元に戻す(Ctrl+Z)に 1 段で載せる。アクティブなモデルの時だけ載る | |
| bones | Yes | ボーン名 → キーの一覧。キーは {frame, position: [x,y,z], quaternion: [x,y,z,w], interp: {x|y|z|r: [ax,ay,bx,by]}}。position・quaternion を省くと 0・回転なし、interp を省くと直線(20,20,107,107)。frame は frame_range の中に限る | |
| layer | No | モーションレイヤの番号(0 が基本) | |
| model | No | モデルの番号(mmm_list_models の index)。省くと MMM で選択中(アクティブ)のモデル | |
| frame_range | Yes | [始め, 終わり](両端を含む)。各ボーンでこの範囲のキーを全部消してから、渡したキーを入れる |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||