blender-headless
Build, render, and visually verify 3D models with Blender's Python API in headless mode, using the image tool to inspect renders and iterate.
by metaspartan★ 41 GitHub stars
Install blender-headless in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Blender Headless Modeling
Use this when the user wants a 3D model, scene, or render produced locally with Blender and no Blender MCP server is configured.
Locate Blender
- Try
which blender, then platform defaults:/Applications/Blender.app/Contents/MacOS/Blender,/usr/bin/blender,/snap/bin/blender,%ProgramFiles%\Blender Foundation\Blender*\blender.exe. - Confirm with
<blender> --versionand note the major version; the Python API changes between releases.
Build with a script
- Write one
build_<name>.pythat resets the scene (bpy.ops.wm.read_factory_settings(use_empty=True)), builds geometry withbpy.ops.mesh.primitive_*orbmesh, assigns materials, adds a camera and lights, setsscene.render.filepathto an absolute path, and renders withbpy.ops.render.render(write_still=True). - Keep every file write comfortably under the model output limit: build large scripts in parts (a base file, then
editcalls that append helpers) instead of one hugewrite. A tool call cut off by the output limit loses its arguments. - Run
<blender> --background --python build_<name>.pywith a timeout of at least 300 seconds and capture stdout and stderr; Blender prints Python tracebacks there. - Prefer
BLENDER_EEVEE(Blender 4.2+ removed the_NEXTsuffix) orCYCLESwith a low sample count for verification renders; render around 1400x900 PNG. - Save the
.blendwithbpy.ops.wm.save_as_mainfile(filepath=...)so the user can open the result.
Verify visually, then iterate
- Render at least two views (side and three-quarter) to separate PNG files.
- Inspect each render with the
imagetool and compare it with the requested object: proportions, missing parts, floating geometry, exposure, framing. - Fix the script for each discrepancy, re-render, and inspect again. Do not report success from script output alone.
- Do not delete or overwrite renders you already reported to the user; write new versions to new file names.
Report
List the script, the .blend, and every render path, and describe what the final renders show.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the blender-headless skill do?
Build, render, and visually verify 3D models with Blender's Python API in headless mode, using the image tool to inspect renders and iterate.
How do I install the blender-headless skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the blender-headless skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…