Blender can be controlled using program scripts written in Python. This plugin provides an easy to use interface that integrates Google's Gemini right in the UI, allowing you to use natural language commands to control Blender.
- Clone this repository by clicking
Code > Download ZIPon GitHub - Open Blender, go to
Edit > Preferences > Add-ons > Install from Disk - Select the downloaded ZIP file and click
Install from Disk - Enable the add-on by checking the checkbox next to
Gemini Blender Assistant - Paste your Gemini API key in the Addon preferences menu
- To view the code generations in realtime, go to
Window > Toggle System Console
- In the 3D View, open the sidebar (press
Nif not visible) and locate theGemini Blender Assistanttab. - Type a natural language command in the input field, e.g., "create a cube at the origin".
- Select an object and enable "Include Selected Geometry" to provide the LLM with detailed information about the object's location, shape, etc.
- Enable "Target with 3D Cursor" to guide actions near the 3D cursor. The add-on will send the cursor's world location, orientation, and nearest objects to improve targeting and alignment.
- Tip: Place the cursor on or near the area of interest (Shift+Right-Click by default). For orientation-aware tasks (arrays, cuts, alignment), rotate the cursor to define axes.
- Enable "Attach Viewport Screenshot" to include a 3D Viewport image for additional visual context.
- Enable "Enable Grounding" to allow Gemini to use Google Search grounding for more verifiable, up-to-date responses.
- Click the
Executebutton to generate and execute the Blender Python code. Blender stays usable while Gemini works, andCancelstops waiting for the reply. - In the chat history, use the play button next to a reply to run its code again without contacting Gemini, or the arrow button next to a message to copy it back into the input field.
Note: Gemini will automatically attempt to fix error-producing scripts (up to 1 time by default). A script that fails is undone before the fix runs, so its partial changes don't carry over. If undo is disabled in Preferences, only the objects and materials it created are removed.
Tip: To regenerate a reply, press Ctrl+Z after it runs. That reverts both the scene and the chat, and restores your message to the input field, so you can click Execute again.
- Blender 5.2 LTS or later
- Gemini API key (via Google AI Studio)