Animation Blockbench
Créez des animations pour des modèles 3D à l'aide des outils MCP Blockbench.
Outils disponibles
| Outil | Objectif |
|---|---|
create_animation | Créer une animation avec des images clés pour les os |
manage_keyframes | Créer/modifier/supprimer des images clés par os et canal |
animation_graph_editor | Affiner les courbes d'animation (lisse, linéaire, ease) |
bone_rigging | Créer/modifier la structure osseuse pour l'animation |
animation_timeline | Contrôler la lecture, le temps, les FPS, les paramètres de boucle |
batch_keyframe_operations | Opérations par lots : décalage, échelle, inversion, symétrie |
animation_copy_paste | Copier des données d'animation entre os/animations |
Démarrage rapide
Créer une animation simple
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"
Canaux d'animation
position- Décalage [x, y, z]rotation- Degrés [x, y, z]scale- [x, y, z] ou nombre uniforme
Types d'interpolation
linear- Vitesse constantecatmullrom- Courbe spline lissebezier- Courbes personnaliséesstep- Changement instantané
Flux de travail courants
Cycle de marche (1 seconde)
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]}
]
}
Courbes lisses
animation_graph_editor: bone_name="arm", channel="rotation", action="smooth"
Copier une animation sur un os en miroir
animation_copy_paste: action="copy", source={bone: "arm_left"}
animation_copy_paste: action="mirror_paste", target={bone: "arm_right", mirror_axis: "x"}
Ajustement par lots du timing
batch_keyframe_operations: operation="scale", selection="all",
parameters={scale_factor: 2.0} # Double la durée de l'animation
Armature osseuse
Créer une structure osseuse
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"}
Définir le point de pivot
bone_rigging: action="set_pivot", bone_data={name: "arm_left", origin: [4, 22, 0]}
Contrôle de la timeline
animation_timeline: action="set_fps", fps=60
animation_timeline: action="set_length", length=2.5
animation_timeline: action="loop", loop_mode="loop" # ou "once", "hold"
animation_timeline: action="set_time", time=0.5
animation_timeline: action="play"
Conseils
- Utilisez
list_outlinepour voir les os disponibles avant d'animer - Configurez d'abord la hiérarchie osseuse avec
bone_riggingavant d'ajouter des images clés - Utilisez l'interpolation
catmullrompour des mouvements organiques - Utilisez l'interpolation
steppour des mouvements mécaniques/robotiques - Symétrisez les animations pour une armature symétrique afin de gagner du temps