gd3kr / BlenderGPT

Use commands in English to control Blender with OpenAI's GPT-4
MIT License
4.55k stars 331 forks source link

error key #23

Open BrechtCorbeel opened 1 year ago

BrechtCorbeel commented 1 year ago

Blender 3.4

Python: Traceback (most recent call last):
  File "C:\Users\brech\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\__init__.py", line 227, in execute
    openai.api_key = get_api_key(context)
  File "C:\Users\brech\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\__init__.py", line 58, in get_api_key
    addon_prefs = preferences.addons[__name__].preferences
KeyError: 'bpy_prop_collection[key]: key "BlenderGPT-main" not found'

after which typing key in box provides:

No API key detected. Please set the API key in the addon preferences.

also doesn't save key