Open gerroon opened 1 year ago
Ok, I can only test on Windows 10 and the Version 2.2.1 of the Add-on does not throw this error.
Did you use the update Feature of the Add-on to upgrade to the new Version? In this case, you could solve this problem by uninstalling the current add-on. Downloading the current version and installing it.
WARNING If you uninstall the Add-on your saved script will be gone too.
Therefore, you can copy the content of the storage folder at the location %appdata%\Blender Foundation\Blender\4.0\scripts\addons\ScriptToButton\Storage
to a temporary folder and import the files back after reinstallation.
Does this bug still appear with the new Blender 4.0.1 version?
I will test it out
Hi! Here an error when I try to Load button from disk: on Blender 4.0.1 - Windows 11 Script to Button 2.2.2
bpy.ops.stb.load(texts=[{"name":"Text", "name":"Text", "select":False}, {"name":"Text.001", "name":"Text.001", "select":False}])
Python: Traceback (most recent call last):
File "C:\Users\miche\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\ScriptToButton\operators.py", line 257, in execute
fails = functions.load(context)
File "C:\Users\miche\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\ScriptToButton\functions.py", line 85, in load
scene.stb[0].selected = True
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
I fixed the issue mentioned by @michelepoletto3d with the new Version 2.2.3
Blender 4.0 beta Windows 11. Interesting enough 2.1.1 does not throw this error.