Packs / 3d-blender-animation-public
headless-blender-render
Render a Blender scene (or a generated test scene) headless from the command line: frames to PNG with Cycles (CPU/GPU) or Eevee, resolution and sample count as flags.
Install
logicpacks pack use 3d-blender-animation-public/headless-blender-renderget_pack 3d-blender-animation-public/headless-blender-renderThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
- VAST_API_KEY
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-blenderhomelab-gpuvast-gpu - Checks: 2 in
outcome/checks.yaml - Code:
render.shrender_scene.py - Tools: blender
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Render a Blender scene (or a generated test scene) headless from the command line: frames to PNG with Cycles (CPU/GPU) or Eevee, resolution and sample count as flags.
Goal
Turn a .blend file (or nothing: a test scene is built) into rendered PNG frames without opening the Blender UI, so an agent can render on a Mac, a homelab box or a rented GPU.
Steps
- Check Blender:
blender --version(5.x LTS on the Mac via Homebrew). - Render:
bash code/render.sh --blend scene.blend --out out --frames 1-24 --res 1920x1080 --engine CYCLES --samples 64(omit --blend for the built-in test scene). - On a GPU box add
--device GPU(Cycles picks CUDA/OptiX/Metal if available, else stays on CPU). - Encode frames if needed:
ffmpeg -framerate 24 -i out/frame_%04d.png -c:v libx264 -pix_fmt yuv420p out.mp4. - Look at real frames (not just exit codes) before calling it done.
Edge cases
- Eevee needs a GPU/OpenGL context; on headless Linux without a GPU use Cycles CPU.
- Engine id differs across versions (BLENDER_EEVEE vs BLENDER_EEVEE_NEXT); render_scene.py tries both.
- Relative texture paths break when the .blend moves; run
File > External Data > Make Paths Relativeor pack resources first. - GPU-less VMs cannot run GPU compositors at all (seen with DaVinci Resolve seats); Blender Cycles CPU still works there.
Don'ts
- Don't judge a render by the exit code alone; open a frame.
- Don't render long sequences on a shared box without a frame range and a time budget.
- Don't commit rendered frames or .blend1 backups to a space (link big media from the host instead).