Kirpal / Keyboard-Layout-Editor-for-Blender

Allows you to import keyboard layouts into blender and render them in 3d
337 stars 38 forks source link

Import leaves behind template objects #61

Closed sipkode closed 3 years ago

sipkode commented 4 years ago

When running the import script, it crashes during the cleanup step with the following output:

Exception has occurred: RuntimeError
Error: Object 'led' can't be selected because it is not in View Layer 'RenderLayer'!
  File "c:\Users\Admin\Dev\GitHub\Keyboard-Layout-Editor-for-Blender\helpers.py", line 4, in select_object
    object.select_set(select)
  File "c:\Users\Admin\Dev\GitHub\Keyboard-Layout-Editor-for-Blender\import_keyboard.py", line 864, in read
    helpers.select_object(bpy.data.objects[object])
  File "c:\Users\Admin\Dev\GitHub\Keyboard-Layout-Editor-for-Blender\__init__.py", line 29, in execute
    import_keyboard.read(self.filepath)

As a result, it aborts before deleting the template objects, leaving them in the scene.