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.
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
Roger,
The next development snapshot will have the customizer GUI included as an experimental feature.
Which OS platform are you on?
-Marius