/blender-vfx:blender-animationfrom blender-vfx
Creates and manipulates Blender animations including keyframes, armatures, rigging, constraints, and F-curves. Handles the 5.0+ slotted/layered action API.
Ships in blender-vfx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Version: 2.0.0 Last Updated: 2026-06-10 Dependencies: Blender 5.1+
Breaking change in 5.0+: action.fcurves no longer exists (slotted/layered actions). Read F-curves with
cb = act.layers[0].strips[0].channelbag(act.slots[0]); cb.fcurves (measured on 5.1.2: AttributeError on act.fcurves,
hasattr(act, 'fcurves') is False). keyframe_insert and fcurve.evaluate(frame) are unchanged.
Helper: def fcurves(ob): a = ob.animation_data.action; return [fc for l in a.layers for st in l.strips for s in a.slots for fc in (st.channelbag(s).fcurves if st.channelbag(s) else [])]
Validated: obj.keyframe_insert(), F-curve access, armature creation, constraints, shape keys, drivers, NLA system.
import bpy
# Create cube via direct API
mesh = bpy.data.meshes.new("AnimatedMesh")
vertices = [
(-1,-1,-1), (1,-1,-1), (1,1,-1), (-1,1,-1),
(-1,-1,1), (1,-1,1), (1,1,1), (-1,1,1)
]
faces = [
[0,1,2,3], [4,5,6,7], [0,1,5,4],
[2,3,7,6], [0,3,7,4], [1,2,6,5]
]
mesh.from_pydata(vertices, [], faces)
obj = bpy.data.objects.new("AnimatedCube", mesh)
bpy.context.collection.objects.link(obj)
# Animate location
scene = bpy.context.scene
scene.frame_set(1)
obj.location = (0, 0, 0)
obj.keyframe_insert(data_path="location", frame=1)
scene.frame_set(50)
obj.location = (5, 0, 0)
obj.keyframe_insert(data_path="location", frame=50)
scene.frame_set(100)
obj.location = (5, 5, 0)
obj.keyframe_insert(data_path="location", frame=100)
print(f"Created animation with {len(fcurves(obj))} F-curves")
Use When: Creating animated camera for cinematics or previews
import bpy
camera_data = bpy.data.cameras.new("AnimatedCamera")
camera_obj = bpy.data.objects.new("Camera", camera_data)
bpy.context.collection.objects.link(camera_obj)
# Create target object
target_obj = bpy.data.objects.get("TargetObject") # Must exist
# Add Track-To constraint
track_constraint = camera_obj.constraints.new(type='TRACK_TO')
track_constraint.target = target_obj
track_constraint.track_axis = 'TRACK_NEGATIVE_Z'
track_constraint.up_axis = 'UP_Y'
# Animate camera position
scene = bpy.context.scene
scene.frame_set(1)
camera_obj.location = (10, -10, 5)
camera_obj.keyframe_insert(data_path="location", frame=1)
scene.frame_set(50)
camera_obj.location = (0, -15, 8)
camera_obj.keyframe_insert(data_path="location", frame=50)
scene.frame_set(100)
camera_obj.location = (-10, -10, 5)
camera_obj.keyframe_insert(data_path="location", frame=100)
Use When: Setting up character animation with IK/FK controls
import bpy
armature_data = bpy.data.armatures.new("CharacterRig")
armature_obj = bpy.data.objects.new("Armature", armature_data)
bpy.context.collection.objects.link(armature_obj)
# NOTE: Bone creation in edit mode is easiest in Blender UI.
# For scripted bone creation, set active + switch mode:
bpy.context.view_layer.objects.active = armature_obj
bpy.ops.object.mode_set(mode='EDIT')
edit_bones = armature_data.edit_bones
hip = edit_bones.new("Hip")
hip.head = (0, 0, 0)
hip.tail = (0, 0, 1)
spine = edit_bones.new("Spine")
spine.head = (0, 0, 1)
spine.tail = (0, 0, 2)
spine.parent = hip
bpy.ops.object.mode_set(mode='OBJECT')
# Add IK constraint in pose mode
bpy.ops.object.mode_set(mode='POSE')
pose_bone = armature_obj.pose.bones.get("Spine")
if pose_bone:
ik = pose_bone.constraints.new(type='IK')
ik.chain_count = 2
bpy.ops.object.mode_set(mode='OBJECT')
Use When: Animating mesh morphs for facial expressions or deformations
import bpy
mesh_obj = bpy.data.objects.get("CharacterHead") # Must exist
# Add basis shape key
basis = mesh_obj.shape_key_add(name="Basis")
# Add expression shape keys
smile = mesh_obj.shape_key_add(name="Smile")
blink = mesh_obj.shape_key_add(name="Blink")
# Animate shape key values
scene = bpy.context.scene
scene.frame_set(1)
smile.value = 0.0
smile.keyframe_insert(data_path="value", frame=1)
scene.frame_set(12)
smile.value = 1.0
smile.keyframe_insert(data_path="value", frame=12)
scene.frame_set(24)
smile.value = 0.0
smile.keyframe_insert(data_path="value", frame=24)
import bpy
# Insert keyframe
obj.keyframe_insert(data_path="location", frame=10, index=-1)
# data_path: "location", "rotation_euler", "scale", etc.
# index: -1 for all axes, 0/1/2 for X/Y/Z
# Delete keyframe
obj.keyframe_delete(data_path="location", frame=10, index=-1)
# Create animation data manually
anim_data = obj.animation_data_create()
import bpy
# Safe access pattern
if obj.animation_data and obj.animation_data.action:
fcurves_list = fcurves(obj)
for fc in fcurves_list:
print(f"{fc.data_path}[{fc.array_index}]: {len(fc.keyframe_points)} keyframes")
# Insert keyframe point directly
fcurve = fcurves(obj)[0]
point = fcurve.keyframe_points.insert(frame=25, value=2.5)
point.interpolation = 'BEZIER' # or 'LINEAR', 'CONSTANT'
import bpy
# IK constraint
pose_bone = armature_obj.pose.bones["BoneName"]
ik = pose_bone.constraints.new(type='IK')
ik.target = target_obj
ik.subtarget = "TargetBone"
ik.chain_count = 2
# Copy Location
copy_loc = pose_bone.constraints.new(type='COPY_LOCATION')
copy_loc.target = target_obj
import bpy
# Verify property path exists
if hasattr(obj, "location"):
result = obj.keyframe_insert(data_path="location", frame=1)
print(f"Keyframe inserted: {result}")
# Check animation data was created
if obj.animation_data and obj.animation_data.action:
print(f"F-curves: {len(fcurves(obj))}")
else:
print("No animation data - keyframe_insert may have failed")
import bpy
# Verify target exists
target_obj = bpy.data.objects.get("TargetObject")
if not target_obj:
print("Error: Target object not found")
else:
constraint = pose_bone.constraints.new(type='IK')
constraint.target = target_obj
# Verify subtarget bone
if "TargetBone" in target_obj.pose.bones:
constraint.subtarget = "TargetBone"
# Check constraints are active
for c in pose_bone.constraints:
print(f"{c.name}: muted={c.mute}")
obj.animation_data is not None)len(fcurves(obj)) > 0)scene.frame_start, frame_end)v2.0.0 (2026-06-10) - MCP migration
import requests / requests.post() wrappersimport bpy to all code blocksv1.0.0 (2025-10-24) - Initial release
Status: Production Ready Maintainer: VFX Pipeline Team Dependencies: Blender 5.1+
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sideshowroberto/vfx-agent-toolkit --plugin blender-vfx11 skills in this plugin
/blender-addon-developmentVerified Blender 4.2+/5.1 add-on and extension traps - bl_info-only zips fail extension validate without blender_manifest.toml, assignment-style bpy.props register silently and do not exist, BLENDER_EEVEE_NEXT raises TypeError. Use when writing or packaging a Blender add-on, extension, operator or panel./blender-api-compatibilityDiagnoses and migrates Blender Python API breakage across versions 4.2 to 5.1+ (EEVEE_NEXT, renamed modifier types and BSDF inputs, VSE strips). Use when a bpy script errors on a newer Blender, or for breaking changes and migration./blender-compositingOther plugins' skills for the same job