Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Works only with Blender set to English #79

Open
urac opened this issue Oct 5, 2023 · 0 comments
Open

Works only with Blender set to English #79

urac opened this issue Oct 5, 2023 · 0 comments
Labels

Comments

@urac
Copy link

urac commented Oct 5, 2023

Required Information
Blender 3.6.4

  • [Add-on version] 3.3

Describe the bug
Will fail with Blender not set to English.

Python: Traceback (most recent call last):
  File "/home/jurek/.config/blender/3.6/scripts/addons/Keyboard-Layout-Editor-for-Blender/__init__.py", line 30, in execute
    return import_keyboard.load_json(self, self.filepath)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jurek/.config/blender/3.6/scripts/addons/Keyboard-Layout-Editor-for-Blender/src/import_keyboard.py", line 373, in load_json
    read(filepath)
  File "/home/jurek/.config/blender/3.6/scripts/addons/Keyboard-Layout-Editor-for-Blender/src/import_keyboard.py", line 143, in read
    make_key_material(key.color)
  File "/home/jurek/.config/blender/3.6/scripts/addons/Keyboard-Layout-Editor-for-Blender/src/materials.py", line 34, in make_key_material
    m = Material(color)
        ^^^^^^^^^^^^^^^
  File "/home/jurek/.config/blender/3.6/scripts/addons/Keyboard-Layout-Editor-for-Blender/src/materials.py", line 16, in __init__
    self.output = self.nodes['Material Output']
                  ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "Material Output" not found'

because bpy will localize the node keys, e.g. "Material-Ausgabe" in German.

@urac urac added the bug label Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant