discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

GUI for parameters.

RW
Rogier Wolff
Wed, Nov 9, 2016 4:30 PM

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. 

--
** R.E.Wolff@BitWizard.nl ** 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.

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. -- ** R.E.Wolff@BitWizard.nl ** 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.
RP
Ronaldo Persiano
Wed, Nov 9, 2016 4:34 PM

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 R.E.Wolff@bitwizard.nl:

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.

--
** R.E.Wolff@BitWizard.nl ** 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
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

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 <R.E.Wolff@bitwizard.nl>: > 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. > > -- > ** R.E.Wolff@BitWizard.nl ** 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 > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
MK
Marius Kintel
Wed, Nov 9, 2016 5:19 PM

Roger,

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

-Marius

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