GUI equivalent to the -D assignment?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

GUI equivalent to the -D assignment?

robodan65
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: GUI equivalent to the -D assignment?

nophead
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 <[hidden email]> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: GUI equivalent to the -D assignment?

MichaelPFrey
In reply to this post by robodan65
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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: GUI equivalent to the -D assignment?

robodan65
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 <[hidden email]> 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
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: GUI equivalent to the -D assignment?

MichaelPFrey
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



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: GUI equivalent to the -D assignment?

JordanBrown
In reply to this post by robodan65
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;


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org