This extension allows you to use Blender with natural language commands using OpenAI's GPT-4
 
 
 
Go to file
Flip Phillips 844e5e84d9 fixed improper registration on unload 2023-03-31 17:16:46 -04:00
lib first commit 2023-03-21 19:17:11 +05:30
LICENSE.md Create LICENSE.md 2023-03-25 12:02:16 +05:30
README.md Update README.md 2023-03-30 08:19:47 +05:30
__init__.py fixed improper registration on unload 2023-03-31 17:16:46 -04:00
requirements.txt first commit 2023-03-21 19:17:11 +05:30
utilities.py cleanup code 2023-03-28 00:24:51 +05:30

README.md

BlenderGPT

Header

Buy Me A Coffee

This addon allows you to use Blender with natural language commands using OpenAI's GPT-3.5/GPT-4

💡 Code generations by the more powerful model, GPT-4 are remarkably higher quality than GPT-3.5. Unfortunately, the model is only available via the waitlist. This addon also has a Pro version that is powered by GPT-4 and does not require you to have an OpenAI account. Available for purchase for a one-time charge of $29.99: https://gd3kr.gumroad.com/l/blendergptpro

blendergptprologo

Features

  • Generate Blender Python code from natural language commands
  • Integrated with Blender's UI for easy usage
  • Supports Blender version 3.1 and above

Installation

  1. Clone this repository by clicking Code > Download ZIP on GitHub
  2. Open Blender, go to Edit > Preferences > Add-ons > Install
  3. Select the downloaded ZIP file and click Install Add-on
  4. Enable the add-on by checking the checkbox next to GPT-4 Blender Assistant
  5. Paste your OpenAI API key in the Addon preferences menu.
  6. To view the code generations in realtime, go to Window > Toggle System Console

Usage

  1. In the 3D View, open the sidebar (press N if not visible) and locate the GPT-4 Assistant tab
  2. Type a natural language command in the input field, e.g., "create a cube at the origin"
  3. Click the Execute button to generate and execute the Blender Python code

Requirements

  • Blender 3.1 or later
  • OpenAI API key

Demonstration

https://user-images.githubusercontent.com/63528145/227158577-d92c6e8d-df21-4461-a69b-9e7cde8c8dcf.mov

Limitations

  • The generated code might not always be correct. In that case, run it again lmao.