Claude Code for Blender
I have been working on a Blender/Bforartists extension that embeds Claude as a Python coding assistant directly in the Text Editor sidebar. Instead of switching between Blender and a browser to ask AI for help with scripts, you just type a prompt in the N-panel and Claude reads your code, inspects the scene, and writes or edits scripts right there.
The addon supports two backends:
- CLI backend - uses your existing Claude Code CLI subscription (Pro/Max/Team), no API key needed. Text blocks are mirrored to a workspace directory so Claude can read and edit them with its native tools.
- API backend - uses prepaid Anthropic API credits with full agentic tool use: scene inspection, code execution, and script editing in an autonomous loop.
Main features:
- chat interface in the Text Editor sidebar with streaming responses
- auto-context - the active script is sent with every prompt
- persistent workspace - text blocks mirrored as real files for Claude CLI
- bidirectional sync - changes on disk are synced back to Blender automatically
- Claude can inspect scene objects, execute Python code (with undo), and do targeted find-and-replace edits on scripts
- auto-switch to the modified script after each prompt
- zero external dependencies - works with Blender’s bundled Python
The extension works with Blender 4.2+ and Bforartists 4.2+. It’s pure Python, around 1200 lines across 11 files.
The addon is available on GitHub: https://github.com/ppiecuch/blender-python-claude
Comments