Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use project relative paths to 3d models #8

Merged
merged 1 commit into from
Jun 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use project relative paths to 3d models
  • Loading branch information
sol committed Jun 20, 2022
commit 69e615ed677a6f4eb16d0626eccaa4dea8a6872e
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/CherryMX_ChocV2_1.5u.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(pad 1 thru_hole oval (at -5.1 3.9) (size 2.2 1.6) (drill oval 1 0.4) (layers *.Cu B.Mask))
(pad 2 thru_hole oval (at 5 -5.55 0.5) (size 4.4 1.5) (drill oval 1 0.3 (offset -1.1 0)) (layers *.Cu B.Mask))
(pad 2 thru_hole circle (at 2.54 -5.08) (size 2.4 2.4) (drill 1.2) (layers *.Cu B.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/kailh_choc.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/kailh_choc.step
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 180))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/CherryMX_ChocV2_1u.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(pad 1 thru_hole oval (at -5.1 3.9) (size 2.2 1.6) (drill oval 1 0.4) (layers *.Cu B.Mask))
(pad 2 thru_hole oval (at 5 -5.55 0.5) (size 4.4 1.5) (drill oval 1 0.3 (offset -1.1 0)) (layers *.Cu B.Mask))
(pad 2 thru_hole circle (at 2.54 -5.08) (size 2.4 2.4) (drill 1.2) (layers *.Cu B.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/kailh_choc.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/kailh_choc.step
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 180))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/CherryMX_Hotswap.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
(pad 2 smd rect (at 5.842 -5.08 180) (size 2.55 2.5) (layers B.Cu B.Paste B.Mask))
(pad "" np_thru_hole circle (at -3.81 -2.54) (size 3 3) (drill 3) (layers *.Cu *.Mask))
(pad "" np_thru_hole circle (at 2.54 -5.08) (size 3 3) (drill 3) (layers *.Cu *.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/Kailh-CherryMX-Socket.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/Kailh-CherryMX-Socket.step
(offset (xyz -1.3 7.6 -3.6))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 180))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
(pad 2 smd rect (at 5.842 -5.08 180) (size 2.55 2.5) (layers B.Cu B.Paste B.Mask))
(pad "" np_thru_hole circle (at -3.81 -2.54) (size 3 3) (drill 3) (layers *.Cu *.Mask))
(pad "" np_thru_hole circle (at 2.54 -5.08) (size 3 3) (drill 3) (layers *.Cu *.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/Kailh-CherryMX-Socket.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/Kailh-CherryMX-Socket.step
(offset (xyz -1.3 7.6 -3.6))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 180))
Expand Down
4 changes: 2 additions & 2 deletions kicad-footprints/kbd.pretty/D3_TH.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
(scale (xyz 0.22 0.15 0.15))
(rotate (xyz 0 0 180))
)
(model "/Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/D_SOD-123 Soldered.step"
(model "${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/D_SOD-123 Soldered.step"
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/D_SOD-123.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/D_SOD-123.step
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/D3_TH_SMD_v2.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(scale (xyz 0.22 0.15 0.15))
(rotate (xyz 0 0 180))
)
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/D_SOD-123.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/D_SOD-123.step
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/LED_WS2812B-PLCC4.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
(pad 2 smd rect (at -2.5 1.6) (size 1.6 1) (layers F.Cu F.Paste F.Mask))
(pad 4 smd rect (at 2.5 -1.6) (size 1.6 1) (layers F.Cu F.Paste F.Mask))
(pad 3 smd rect (at 2.5 1.6) (size 1.6 1) (layers F.Cu F.Paste F.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/WS2812B.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/WS2812B.step
(at (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/MJ-4PP-9_1side.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(clearance 0.15))
(pad A thru_hole oval (at -2.1 11.8) (size 1.7 2.5) (drill oval 1 1.5) (layers *.Cu B.Mask)
(clearance 0.15))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/PJ320A.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/PJ320A.step
(offset (xyz 0 -8.5 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
Expand Down
4 changes: 2 additions & 2 deletions kicad-footprints/kbd.pretty/OLED_1side.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
(pad 2 thru_hole oval (at 2.54 0) (size 1.397 1.778) (drill 0.8128) (layers *.Cu B.Mask))
(pad 3 thru_hole oval (at 5.08 0) (size 1.397 1.778) (drill 0.8128) (layers *.Cu B.Mask))
(pad 4 thru_hole oval (at 7.62 0) (size 1.397 1.778) (drill 0.8128) (layers *.Cu B.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/pin-header-1x4.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/pin-header-1x4.step
(offset (xyz 3.8 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/OLED-Module-with-Pins.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/OLED-Module-with-Pins.step
(offset (xyz 3.8 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/ProMicro_v3.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
(pad 22 thru_hole circle (at -7.6086 -9.398) (size 1.524 1.524) (drill 0.8128) (layers *.Cu B.Mask))
(pad 23 thru_hole circle (at -7.6086 -11.938) (size 1.524 1.524) (drill 0.8128) (layers *.Cu B.Mask))
(pad 24 thru_hole circle (at -7.6086 -14.478) (size 1.524 1.524) (drill 0.8128) (layers *.Cu B.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/ProMicro.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/ProMicro.step
(offset (xyz 0 1.8 2.5))
(scale (xyz 1 1 1))
(rotate (xyz 0 180 0))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/ResetSW_1side.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)
(pad 1 thru_hole circle (at 3.25 0) (size 2 2) (drill 1.3) (layers *.Cu B.Mask))
(pad 2 thru_hole circle (at -3.25 0) (size 2 2) (drill 1.3) (layers *.Cu B.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/tact-switch.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/tact-switch.step
(offset (xyz 0 0 3.47))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
Expand Down
2 changes: 1 addition & 1 deletion kicad-footprints/kbd.pretty/YS-SK6812MINI-E.kicad_mod
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
(pad 3 smd rect (at -2.75 0.7) (size 1.7 1) (layers F.Cu F.Paste F.Mask))
(pad 1 smd rect (at 2.75 -0.7) (size 1.7 1) (layers F.Cu F.Paste F.Mask))
(pad 2 smd rect (at 2.75 0.7) (size 1.7 1) (layers F.Cu F.Paste F.Mask))
(model /Users/foostan/src/github.com/foostan/kbd/kicad-packages3D/kbd.3dshapes/YS-SK6812MINI-E.step
(model ${KIPRJMOD}/kbd/kicad-packages3D/kbd.3dshapes/YS-SK6812MINI-E.step
(offset (xyz 0 0 0.15))
(scale (xyz 1 1 1))
(rotate (xyz 180 0 180))
Expand Down