GUI for parameters.

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

GUI for parameters.

rew
Hi,

I often make a parameterized design. Sometimes it will be nice to
visualize the influence of parameters by visually adjusting a slider
or clicking a checkbox.

Yesterday I designed something that can be laser-cut. So then I have a
parameter called "laser", which if true renders all objects flat on
the plane, while when false, the assembled object is rendered.

I would like to "tag" this boolean as: "please create a gui element
with this variable as a checkbox". This would, I'm guessing be the
easiest part to implement, slightly harder would be to have variable
that can vary over a certain range.

laser=0; // GUI:checkbox "show the laser-ready flat layout"

object_height=10; // GUI:slider "How high is the object?"


        Roger.

--
** [hidden email] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

_______________________________________________
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 for parameters.

Ronaldo
I guess the new OpenSCAD customizer is the answer of your needs. See:

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/WIP#Customizer



2016-11-09 14:30 GMT-02:00 Rogier Wolff <[hidden email]>:
Hi,

I often make a parameterized design. Sometimes it will be nice to
visualize the influence of parameters by visually adjusting a slider
or clicking a checkbox.

Yesterday I designed something that can be laser-cut. So then I have a
parameter called "laser", which if true renders all objects flat on
the plane, while when false, the assembled object is rendered.

I would like to "tag" this boolean as: "please create a gui element
with this variable as a checkbox". This would, I'm guessing be the
easiest part to implement, slightly harder would be to have variable
that can vary over a certain range.

laser=0; // GUI:checkbox "show the laser-ready flat layout"

object_height=10; // GUI:slider "How high is the object?"


        Roger.

--
** [hidden email] ** http://www.BitWizard.nl/ ** <a href="tel:%2B31-15-2600998" value="+31152600998">+31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

_______________________________________________
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 for parameters.

kintel
Administrator
In reply to this post by rew
Roger,

The next development snapshot will have the customizer GUI included as an experimental feature.
Which OS platform are you on?

 -Marius


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