The openscad command line allows: -D var=val
Is there a way to interactively do this in the GUI?
I often insert a cutout in the default model to help me see internal
structures, and I want to be able to easily turn them on/off in the GUI. I
like to keep them turned off in the code so that I don't accidentally check
in a non-printable version, but I want an easy override for development.
Thanks,
Dan
I don't think so but you can use $preview to make your cutouts only active
with F5 and not F6 so don't affect STL generation in the GUI or the command
line.
On 16 March 2018 at 19:11, Dan Christian danchristian65@gmail.com wrote:
The openscad command line allows: -D var=val
Is there a way to interactively do this in the GUI?
I often insert a cutout in the default model to help me see internal
structures, and I want to be able to easily turn them on/off in the GUI. I
like to keep them turned off in the code so that I don't accidentally check
in a non-printable version, but I want an easy override for development.
Thanks,
Dan
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Am 16.03.2018 um 20:11 schrieb Dan Christian:
The openscad command line allows: -D var=val
Is there a way to interactively do this in the GUI?
If you are using a development snapshot, you can essentially use the
customizer for that.
With Kind regards,
Michael Frey
I'm currently on the stable version (2015.03-2).
So it sounds like I can either switch to the development version or wait
for the next release to get this. Cool!
Dan
On Fri, Mar 16, 2018 at 12:33 PM, Michael Frey michael.frey@gmx.ch wrote:
Am 16.03.2018 um 20:11 schrieb Dan Christian:
The openscad command line allows: -D var=val
Is there a way to interactively do this in the GUI?
If you are using a development snapshot, you can essentially use the
customizer for that.
With Kind regards,
Michael Frey
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Am 16.03.2018 um 20:46 schrieb Dan Christian:
I'm currently on the stable version (2015.03-2).
So it sounds like I can either switch to the development version or
wait for the next release to get this. Cool!
Dan
I have to add some asterisk to waiting for the next release:
There is no concrete release plan/planing in place, so there is no date
in mind.
Also: The customizer is not yet considered stable (and other core
features of the next release are in the experimental limbo as well).
WIth kind regards,
Michael Frey
On 3/16/2018 12:11 PM, Dan Christian wrote:
The openscad command line allows: -D var=val
Is there a way to interactively do this in the GUI?
-D effectively puts the assignment at the end of the input file, and
later assignments override earlier assignments.
So have a "development" wrapper that includes the primary model and has
override assignments.
E.g.:
--- main.scad ---
include_sphere = true;
if (include_sphere) sphere(10);
cube(2, center=true);
--- dev.scad ---
include <main.scad>
include_sphere = false;