Blockbench 動畫製作 是做什麼的?
使用 Blockbench MCP 工具為 3D 模型建立動畫。
可用工具
| 工具 | 用途 |
|---|---|
create_animation | 為骨骼建立包含關鍵影格的動畫 |
manage_keyframes | 依骨骼與通道建立/編輯/刪除關鍵影格 |
animation_graph_editor | 精細調整動畫曲線(平滑、線性、緩動) |
bone_rigging | 建立/修改用於動畫的骨骼結構 |
animation_timeline | 控制播放、時間、FPS、循環設定 |
batch_keyframe_operations | 批次操作:偏移、縮放、反轉、鏡像 |
animation_copy_paste | 在骨骼/動畫之間複製動畫資料 |
快速開始
建立簡單動畫
1. create_animation: name="walk", animation_length=1.0, loop=true
2. manage_keyframes: bone_name="leg_left", channel="rotation",
keyframes=[{time: 0, values: [30, 0, 0]}, {time: 0.5, values: [-30, 0, 0]}]
3. animation_timeline: action="play"
動畫通道
position- [x, y, z] 偏移量rotation- [x, y, z] 角度scale- [x, y, z] 或統一的數值
插值類型
linear- 恆定速率catmullrom- 平滑樣條bezier- 自訂曲線step- 瞬間變化
常見工作流程
走路循環(1 秒)
create_animation: name="walk", animation_length=1.0, loop=true, bones={
"leg_left": [
{time: 0, rotation: [30, 0, 0]},
{time: 0.5, rotation: [-30, 0, 0]},
{time: 1.0, rotation: [30, 0, 0]}
],
"leg_right": [
{time: 0, rotation: [-30, 0, 0]},
{time: 0.5, rotation: [30, 0, 0]},
{time: 1.0, rotation: [-30, 0, 0]}
]
}
平滑曲線
animation_graph_editor: bone_name="arm", channel="rotation", action="smooth"
複製動畫到鏡像骨骼
animation_copy_paste: action="copy", source={bone: "arm_left"}
animation_copy_paste: action="mirror_paste", target={bone: "arm_right", mirror_axis: "x"}
批次時間調整
batch_keyframe_operations: operation="scale", selection="all",
parameters={scale_factor: 2.0} # 將動畫時長加倍
骨骼骨架設定
建立骨骼結構
bone_rigging: action="create", bone_data={name: "spine", origin: [0, 12, 0]}
bone_rigging: action="create", bone_data={name: "head", origin: [0, 24, 0], parent: "spine"}
設定樞紐點
bone_rigging: action="set_pivot", bone_data={name: "arm_left", origin: [4, 22, 0]}
時間軸控制
animation_timeline: action="set_fps", fps=60
animation_timeline: action="set_length", length=2.5
animation_timeline: action="loop", loop_mode="loop" # 或 "once", "hold"
animation_timeline: action="set_time", time=0.5
animation_timeline: action="play"
小技巧
- 使用
list_outline查看可用的骨骼,再開始動畫 - 先用
bone_rigging建立骨骼階層,再加入關鍵影格 - 使用
catmullrom插值製作有機動作 - 使用
step插值製作機械/機器人動作 - 對稱骨架可使用鏡像動畫功能節省時間