BlenderGPT - Plugin for manipulating Blender commands in natural language

A small BlenderGPT plugin has been prepared for the 3D modeling system, which allows generating content based on tasks defined in natural language. The interface for entering commands is designed as an additional tab "GPT-4 Assistant" in the 3D View sidebar, in which you can enter arbitrary instructions (for example, "create 100 cubes in random places", "take the existing cubes and make them different sizes") and get results immediately. The code is written in Python, takes just over 300 lines, and is distributed under the MIT license.

The principle of operation comes down to sending a test request to the ChatGPT chatbot using the GPT-4 model via the OpenAI public API, adding the note β€œCan you please write Blender code for me that accomplishes the following task” to the user-specified text. Next, the Python code is extracted from the response and executed as a script in Blender. To work, you need an access key to the OpenAI API (indicated in the menu with add-on parameters). The generated code can be monitored through the console (Window > Toggle System Console).



Source: opennet.ru

Add a comment