• Stars
    star
    336
  • Rank 125,564 (Top 3 %)
  • Language
    Python
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Allows you to import keyboard layouts into blender and render them in 3d

Keyboard-Layout-Editor-for-Blender

Allows you to import keyboard layouts into blender and render them in 3d

Examples:

Example 1

Courtesy of /u/jacopods

Β 

Example 2

Courtesy of /u/zzubnik

Β 

Example 3

Courtesy of /u/zzubnik

Β 

Example 4

Courtesy of @kirpal

Please open a pull request if you'd like to add more examples

How to install Addon:

  1. Download the zip (releases)
  2. Open Blender
  3. Go to Edit > Preferences
  4. Select the "Add-ons" tab on the left.
  5. Click Install... in the top right corner
  6. Select the zip archive that you downloaded and click Install Add-on
  7. Check the checkbox next to Import-Export: Import: KLE Raw JSON format (.json)
  8. Cose the preferences window. It should auto-save, but you may have to save preferences manually if auto-save is off.
  9. Now the addon is ready to use

How to use Addon:

  1. Open Blender
  2. Go to File > Import > KLE Raw Data (.json)
  3. Select the json file that you downloaded from Keyboard Layout Editor and click Import KLE Raw JSON
  4. All Done!

Note: Do not use keycap_parts.blend as it will not work! Use example below if you want a starting point

How to add LEDs:

  • Add the following lines to the keyboard "Notes" section

    led_color: #RRGGBB
    led_brightness: 1
    
    • Where led_brightness is any number from 0 to 1 and led_color is a hex color
  • To make the keycap legends backlit, make the legend color the same as the LED color.

Blender scene file

A basic scene for blender can be found in this gist. Open the scene in blender before importing. Please note that lighting, camera and render setup will most probably require some tweaking to fit with your specific layout.

Special Thanks To:

@zslane on Deskthority for the SA models

@Kaporkle on Geekhack for the DSA models

@wilderjds for implementing SA support