How kennethjyang/blender-ai-assistant works
This is a small Blender add-on: the user enters a plain-English request in the 3D View sidebar, submits it, and the add-on asks Ollama’s Llama 3 70b model for Blender Python. Returned code is executed in Blender; execution errors trigger bounded repair requests, and the result is displayed in the panel. The single source file implements the UI, request handling, and state updates. The README documents the Ollama dependency and model-release behavior; the excerpt does not show implementation for automatic GPU-memory release.
Main entry points: ai_assistant.py Request worker
Components 9
Blender interface
- Assistant panel
ai_assistant.py - Input and status
ai_assistant.py
Request and execution
- Submit operator
ai_assistant.py - Blender scene
- Request worker
ai_assistant.py - Blender command
ai_assistant.py - Result timer
ai_assistant.py
Other components
- Blender user
- Ollama LLM
Connections 12
- Blender user → Assistant panel: enters request
README.md - Assistant panel → Input and status: reads and displays
ai_assistant.py - Assistant panel → Submit operator: dispatches
ai_assistant.py - Submit operator → Input and status: reads and updates
ai_assistant.py - Submit operator → Blender scene: reads objects
ai_assistant.py - Submit operator → Request worker: starts thread
ai_assistant.py - Request worker → Ollama LLM: requests generation
README.md - Request worker → Blender command: extracts and executes
ai_assistant.py - Blender command → Blender scene: performs Blender actions
ai_assistant.py - Request worker → Result timer: signals completion
ai_assistant.py - Result timer → Input and status: writes response
ai_assistant.py - Request worker → Ollama LLM: requests error repair
ai_assistant.py