These SCAD scripts are to create single STL files for keys, white keycaps, and black keycaps of TomsJensen’s Arturia Keystep Janko Keys
Created
June 27, 2021 04:50
-
-
Save na4zagin3/a95a1b52ab492545b9ea048631f65a69 to your computer and use it in GitHub Desktop.
Arturia Keystep Janko Layout Packer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intv = 30; | |
total = 25; | |
rows = 5; | |
translate([80,45,0]) | |
for (i=[0:29]) { | |
idx = i % rows; | |
cyc = (i - idx) / rows; | |
ofs = cyc * total; | |
translate([idx * intv + ((cyc % 2) * intv / 2), ofs, 0]) | |
import("Keycap.stl"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intv = 30; | |
total = 27; | |
rows = 6; | |
for (i=[0:41]) { | |
idx = i % rows; | |
cyc = (i - idx) / rows; | |
ofs = cyc * total; | |
translate([idx * intv + ((cyc % 2) * intv / 2), ofs, 0]) | |
import("Keycap.stl"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intv = 6; | |
total = 115; | |
keys = [ | |
"Key C.stl", | |
"Key Cs.stl", | |
"Key D.stl", | |
"Key Ds.stl", | |
"Key E.stl", | |
"Key F.stl", | |
"Key Fs.stl", | |
"Key G.stl", | |
"Key Gs.stl", | |
"Key A.stl", | |
"Key As.stl", | |
"Key B.stl", | |
]; | |
for (i=[5:35]) { | |
idx = i % len(keys); | |
cyc = (i - idx) / len(keys); | |
ofs = cyc * total; | |
translate([idx * intv, ofs, 0]) | |
import(keys[i % len(keys)]); | |
} | |
translate([-130,0,0]) | |
import("Key C End.stl"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment