This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
moestuinbordjes_garden_tags [2021/11/10 12:46] – [How to make garden tags] jolien | moestuinbordjes_garden_tags [2021/11/10 12:50] – jolien | ||
---|---|---|---|
Line 9: | Line 9: | ||
* You'll also need a library on thingyverse: | * You'll also need a library on thingyverse: | ||
* Open openSCAD and copy this code: | * Open openSCAD and copy this code: | ||
+ | < | ||
+ | use < | ||
+ | //Adjust text below | ||
+ | tekst = [" | ||
+ | //Adjust font below | ||
+ | font = " | ||
+ | //Adjust height with size | ||
+ | size = 15; | ||
+ | spalk=size/ | ||
- | * You can adjust the text. The code will automatically capitalise the text. | + | //Adjust total lenght and triangle length below |
- | * You can also adjust the font, but only standard issue fonts are available. | + | breedtetotaal= 210; |
- | * Run (F5) and render (F6) to get your vector file | + | breedtedriehoek=70; |
- | * Export as .dxf and you're ready to load it in the laser! | + | |
+ | |||
+ | |||
+ | |||
+ | //The functions and modules (make a single tag) | ||
+ | function Capitalise (string) = | ||
+ | chr([for (c = string) if (ord(c)> | ||
+ | |||
+ | |||
+ | module Tagify (inputt) { | ||
+ | plantnaam= Capitalise(inputt); | ||
+ | |||
+ | w = measureText(plantnaam, | ||
+ | breedtemidstuk= breedtetotaal-breedtedriehoek-w; | ||
+ | translate([w, | ||
+ | translate([(-w/ | ||
+ | drawText(plantnaam, | ||
+ | |||
+ | |||
+ | translate([(-w*0.995), | ||
+ | square([(w*0.995)+breedtemidstuk, | ||
+ | |||
+ | |||
+ | square([breedtemidstuk, | ||
+ | polygon([[breedtemidstuk, | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | // The for loop (makes multiple tags) | ||
+ | for (i = [0: | ||
+ | | ||
+ | Tagify (tekst[i]); | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | * You can adjust the text. The code will automatically capitalise the text. | ||
+ | * You can also adjust the font, but only standard issue fonts are available. | ||
+ | * Run (F5) and render (F6) to get your vector file | ||
+ | * Export as .dxf and you're ready to load it in the laser! | ||