An open-source Blender add-on that integrates Google's Gemini AI directly into the 3D Viewport. This tool allows you to control Blender using natural language, generate complex Python scripts on the fly, and maintain a conversation history for iterative modeling.
- Natural Language to Code: Generate objects, materials, and animations just by describing them.
- Chat History: The AI remembers previous commands, enabling follow-up instructions (e.g., "Create a cube" -> "Now move it up").
- Integrated UI: Access everything from the Blender Sidebar (N-panel).
- Secure API Management: Your API key is stored locally in your Blender preferences, not in the script.
- Download the script: Save the
blender_gemini_ai.pyfile from this repository. - Open Blender: Go to
Edit > Preferences > Add-ons. - Install: Click the
Install...button and select the downloaded.pyfile. - Enable: Find "Gemini AI Assistant" in the list and check the box to enable it.
- Set API Key:
- Expand the add-on details in the Preferences window.
- Paste your Gemini API Key into the designated field.
- Go to Google AI Studio.
- Click on "Get API key".
- Create a new API key in a new project.
- Copy the key and paste it into the Blender Add-on preferences.
- Open the 3D Viewport.
- Press
Nto open the Sidebar and look for the Gemini AI tab. - Type a command in the input box (e.g., "Create a procedural landscape with 50 random rocks").
- Click Run Command.
- Use Clear History if you want to start a fresh session without previous context.
This add-on executes Python code generated by an AI. Always review the generated code in the console if you are working on sensitive projects.
This project is licensed under the MIT License - feel free to use, modify, and distribute it.
Created by Boris Evtimov