Hi,
This is a very tiny project, basically just fixing an error of a simple script.
- Type of project: fix an error of a very simple script. (not even an addon).
- Who am I: New Media Supply. I do (exciting) freelance work next to my (very boring) 32-hour partime job and breaking my head on how to get thumbnails in my addon (explaining later).
- Deadline: I want to have this done before Wednesday, April 24.
- Budget 15 pounds, or one of my products?
- I don’t need anything extra, just that the addon is working as shown in the video in Blender 2.80
Complete description of task :
- I typed over the code from this video and tried my best to port it over to Blender 2.80.
ReferenceTemplateManager_05.py (2.1 KB) - And that gives the following error;
Traceback (most recent call last):
File "\ReferenceTemplateManager_05.py", line 29, in get_previews_collection
File "C:\Users\Flatron\Downloads\blender-280-April_15\blender-2.80.0-git.860a9f979d60-windows64\2.80\scripts\modules\bpy\utils\previews.py", line 97, in load
raise KeyError("key {name!r} already exists")
KeyError: 'key {name!r} already exists'
File "\ReferenceTemplateManager_05.py", line 17, in get_previews_collection
Some background info:
At the end it’s for the EV-Express and took me a more than a week finding out how to get thumbnails / previews instead of buttons. I analysed other scripts that uses previews, asked on blender exchange and here on Blender artists but this specific part takes me to long to solve and I want to move on with other exciting features I have in mind. If I have this specific example as in the video working in Blender 2.80 I can implement that in the EV Express. I exactly need what’s in the video. (For example the ui_previews_dynamic_enum.py template is not useful since you have to select a directory in the UI, and a selection doesn’t do anything.).