Given a .SCAD file which contains some modules, how can I execute one of those modules from the command line?
example.scad
module One() { ... }
module Two() { ... }
render.sh
openscad -q -o one.stl --module One example.scad
Note that there is no --module
option, but that is what I'm attempting to do. The workaround would be to make another .SCAD file e.g. one.scad
which includes example.scad
, and simply calls One();
within and render that file from the shell file. But this is not ideal.