Closed davejlong closed 2 years ago
Very interesting addition, I wasn't aware of this functionality in OpenSCAD.
Definitely worth taking a look at https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Customizer
I'm working on another pull request that makes the entire case config customizer compatible. OpenSCAD also lets you store multiple configurations in a JSON file, so it would be possible to replace sbc_case_builder.cfg
with a JSON file and have a dropdown in OpenSCAD to select the case you want.
That sounds interesting. I have been looking for a way to save variables and I wasn't aware customizer can. Ideally, as well as loading cases, one should be able to select any case variables that are currently in sbc_case_builder.cfg and then save it as a new case. One thing to figure out is the best way to handle the accessories. I like this approach. I have been working on more base cases so good progress is being made overall.
Using the OpenSCAD customizer lowers the barrier to entry for anyone wanting to quickly generate a case for an existing SBC in the project. With this PR, all comments in
sbc_case_builder.scad
are updated to enable the Customizer to show options in easy to edit fields. Only thing to note for future contributions of new cases to the project is that they have to be added to the list at line 48 ofsbc_case_builder.scad
to show in the Customizer drop-down.