discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

GUI equivalent to the -D assignment?

DC
Dan Christian
Fri, Mar 16, 2018 7:11 PM

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

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
NH
nop head
Fri, Mar 16, 2018 7:15 PM

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

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 > >
MF
Michael Frey
Fri, Mar 16, 2018 7:33 PM

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

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
DC
Dan Christian
Fri, Mar 16, 2018 7:46 PM

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

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 >
MF
Michael Frey
Fri, Mar 16, 2018 8:00 PM

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

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
JB
Jordan Brown
Sat, Mar 17, 2018 6:47 PM

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;

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;