hussainaty/ai-agent-skills/blender-stylized-2d-animation
Claude Code and agent skill by hussainaty/ai-agent-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Build and animate stylized "2D-look" (cel/toon, anime-style) scenes in Blender through the Blender Lab MCP server or headless Blender, and animate EXISTING 2D character art without losing detail by cutting the original drawing into jointed parts (cut-out rig) instead of redrawing it. Covers flat colour bands, inverted-hull outlines, boil on twos, procedural fire, Geometry Nodes bubbles, joint pivots and limits, walk cycles with foot lock, bone-bent limbs, blinking, lip-sync from mouth shapes, a…
Install
npx vskill@latest install hussainaty/ai-agent-skills/blender-stylized-2d-animationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as hussainaty/ai-agent-skills/blender-stylized-2d-animation.
Stylized 2D-look animation in Blender
Technique studied from Zha Art's short "Eggs in Blender (stylized)" (https://youtube.com/shorts/5aHML0L9tyg, 2026-09-22). Its full tutorial is "How I Made a 2D Looking Eggs Animation in Blender! (Tutorial)". The script here is an original, fully procedural implementation of that recipe, tested on Blender 5.2.1 LTS with EEVEE.
Working context
Run the job on the working-context-notebook flow. An animation job is long, and it fails when a number read early is misremembered later.
- Record as sourced facts: the Blender version, source art path and size, the
part spec, every joint pivot and limit, frame ranges, and each tuned parameter with the value that passed.
- Log render and gate output as raw events. Keep in the notebook the gate
numbers and the frames that failed, not the logs.
- Track shots and gates in the tracker. When a parameter changes, drop the
old fact with the reason and add the new one, so a rejected value is not tried twice.
- Read the accepted revision back before each render batch and before
delivery.
First decision: does the character already exist as art?
If the user supplies a drawing of the character, do not rebuild or regenerate it. Cut the original into parts and animate the parts. Every pixel then comes from the artist, so freckles, line weights and creases survive. A previous run redrew a character procedurally and lost all of them; its knees bent the wrong way, and its feet slid. Read references/character-cutout.md first. The work is divided, seen, then added up:
- Detail inventory: list what must survive (freckles, lashes,
highlights, seams, finger segments).
- Divide:
python scripts/cutout_parts.py spec.json OUT/, with one
polygon, pivot, parent and z per part. The ball goes to the child part, and the pivot is at the ball centre. Shoulder-type joints get a fixed cap. Check which piece is drawn in front at each joint before cutting. Hidden or damaged ends are rebuilt with extend, rod or complete. Gate: 0 unassigned pixels.
- See: a parts sheet, 4× grid zooms at each joint, then a rest-pose
render with scripts/cutout_rig.py diffed against the original (PSNR ≥ 35 dB, every inventory item intact at zoom), then a joint stress test at the limits. The rest-pose diff cannot see rebuilt areas, so also run scripts/cutout_check.py REST.png "RENDERS/*.png" --summary on every frame, and zoom every joint in the most extreme delivered frames.
- Add up: generate motion with
scripts/cutout_motion.py(walk, wave,
idle as dense per-frame keys): each joint follows its parent a few frames late, moves ease in and out, big moves get anticipation and overshoot, and planted feet are locked. Per-joint limits clamp and report impossible poses. Compare against any poses the artist drew.
- Bend limbs with bones where seams matter: a
skinsentry turns an arm or
leg into one flexible sheet bent by an armature, so the bent joint has no seam. Review every shot with scripts/contact_sheet.py before accepting it.
- Faces: eyes become parts that squash for a blink; a closed smile splits into
upper lip, lower lip and a painted interior for speech. cutout_motion.py builds lip-sync from a list of mouth shapes (the Arabic basmala is built in).
- Views or hand shapes the artist never drew are new drawings: ask for
them, and never invent them during animation.
tests/test_cutout_parts.py and tests/test_cutout_motion.py cover the cutter, the edge gate, and the motion generator's foot lock (no Blender needed). For work a client will see, have independent reviewers judge the posed frames before delivery; two review rounds on the reference character found real defects that every automated gate had passed.
Connect
- Install the official Blender Lab MCP add-on (Blender 5.2 extension
mcp)
and register its MCP server with your agent. Codex example (.codex/config.toml): ``toml [mcp_servers.blender_lab] command = "uvx" args = ["--from", "git+https://projects.blender.org/lab/blender_mcp.git@v1.0.0#subdirectory=mcp", "blender-mcp"] ``
- If the uvx Git download is blocked, use the bundled adapter instead:
scripts/blender_lab_local_mcp.py talks to the running add-on on its default port 127.0.0.1:9876, and python scripts/mcp_call.py <file.py> sends one code file through a real MCP session. Both need pip install mcp.
- Blender must be running with the add-on enabled. For headless use, put
blender on PATH or call it by its full path.
- Code sent to
execute_blender_coderuns withresult = {}pre-defined.
Put a JSON-serializable dict in result. sys.exit and factory-reset operators are blocked. For long renders, define check_is_finished() returning None until done, then a dict.
Fast path
- Edit
PARAMSat the top ofscripts/toon_egg_scene.py(egg count 1–6,
seed, frames, fps, resolution, fire, bubbles, outline, step, palette).
- Send it, from the skill folder:
python scripts/mcp_call.py scripts/toon_egg_scene.py.
It creates a new scene ToonEggs (the user's scenes are untouched) and returns the object count, expressions, engine, and warnings.
- Verify visually, and don't trust the JSON alone: render frames 1 and 3
and look at them. Headless alternative: blender -b --factory-startup --python scripts/toon_egg_scene.py -- --out OUT --render-frames 1,3,5 --resolution 720 --save OUT/eggs.blend
- Final render: EEVEE, frames 1–48 at 24 fps, then encode with ffmpeg.
The recipe (apply it to any subject, not just eggs)
Part I — shapes
- Organic flat shapes: radial grid with a noisy outline (low-frequency
sines plus jitter) -> Solidify -> Subdivision 1, smooth shading.
- Domes: UV sphere, delete the bottom half, squash Z.
- Props (pan): filled circle + Solidify; handle from a scaled cube.
Part II — colour and lines
- Cel shader: Diffuse -> Shader to RGB -> constant Color Ramp (2–3
bands) -> Emission. Pick band thresholds so lit faces land in the lit band.
- Outlines: an inverted hull, meaning a Solidify modifier with offset +1,
flipped normals, and a black material with backface culling (material_offset). Scale the thickness by the object's scale.
- Turn off cast shadows on the key light (
light.use_shadow = False).
The hull encloses the object, so with shadows on, everything renders in the shade band. This bug was found while testing this skill.
- Painted details as geometry: highlight blob, darker strokes (thin bevelled
curves), pepper dots.
- Character: every instance gets its own face (dot eyes or a wink line,
brows, and a mouth curve from a small expression table), parented to the moving part. Use matrix_basis.inverted() as the parent inverse: before a depsgraph update, matrix_world is stale and features land in the wrong place.
Part III — animation and finishing
- Boil: a shape key with small random rim offsets, keyed flat, then an
F-curve Noise modifier plus a Stepped modifier (frame_step 2) so it moves "on twos" like hand-drawn animation. Use the same pattern on the location of parts that must jitter together.
- In Blender 5.x, F-curves live in the action's channelbag:
bpy_extras.anim_utils.action_get_channelbag_for_slot(action, slot). action.fcurves is the legacy fallback.
- Fire: a ring mesh under the prop. 4D Noise × radial falloff (Vector
Length -> Map Range from the pan rim to the ring edge) -> constant ramp (transparent -> red -> orange -> yellow). Emission is mixed with Transparent via the ramp's alpha. Animate W with the driver floor(frame/2)*2*0.06, which also steps on twos.
- Bubbles: Geometry Nodes on a rim-ring mesh: Distribute Points on
Faces (seed = floor(Scene Time frame / 2)) -> Instance tiny Ico Spheres with a random scale. Only the instances are output, so the ring itself is invisible.
- Compositor: Glare (Fog Glow). The 5.x API uses
scene.compositing_node_group; 4.x uses scene.node_tree. The script handles both and reports skips in warnings.
- Render: EEVEE, view transform Standard (not AgX/Filmic) for true flat
colours, orthographic top-down camera.
Check before delivering
- Character work: every gate in
references/character-cutout.mdpassed, with
its numbers reported (unassigned pixels, rest-pose PSNR, foot drift, clamped poses).
- Render at least two frames a few apart: the rims and flames must differ
(proving the boil and fire animate), while the faces stay on the yolks.
- No object is fully in the shade band; outlines are visible all around.
- Save the
.blendand state the Blender version used.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/blender-stylized-2d-animation/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hussainaty/ai-agent-skills/blender-stylized-2d-animation)