discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Customizer Export

F
fractorr
Sat, Dec 1, 2018 4:53 AM

I have just started playing around with customizer and really like it.  I was
wondering if using customizer if it is possible to say have 3 variables in
customizer each with a slider and generate and export a stl out of ever
possible combination of the variable values?

So if there was 3 possible values in each of the 3 sliders it would generate
and export 27 different stl files?

--
Sent from: http://forum.openscad.org/

I have just started playing around with customizer and really like it. I was wondering if using customizer if it is possible to say have 3 variables in customizer each with a slider and generate and export a stl out of ever possible combination of the variable values? So if there was 3 possible values in each of the 3 sliders it would generate and export 27 different stl files? -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Sat, Dec 1, 2018 6:25 AM

ATM export is a manual process. It also requires a render (F6) which can take
some time, so it unlikely it will be automated in the GUI.

I haven't done it, but you should be able to script via the command line;
see 'Saving Parameters value in JSON file' at
OpenSCAD_User_Manual/WIP#Customizer
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/WIP#Customizer


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

ATM export is a manual process. It also requires a render (F6) which can take some time, so it unlikely it will be automated in the GUI. I haven't done it, but you should be able to script via the command line; see 'Saving Parameters value in JSON file' at OpenSCAD_User_Manual/WIP#Customizer <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/WIP#Customizer> ----- Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/
KT
Kevin Toppenberg
Sat, Dec 1, 2018 1:28 PM

Stupid question:  What is customizer?

I hear people talk about it.  And I know it is related to OpenSCAD.  But is
it an online version of OpenSCAD, or a slightly different application?

Thanks

On Sat, Dec 1, 2018 at 1:26 AM MichaelAtOz oz.at.michael@gmail.com wrote:

ATM export is a manual process. It also requires a render (F6) which can
take
some time, so it unlikely it will be automated in the GUI.

I haven't done it, but you should be able to script via the command line;
see 'Saving Parameters value in JSON file' at
OpenSCAD_User_Manual/WIP#Customizer
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/WIP#Customizer


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it!
http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Stupid question: What is customizer? I hear people talk about it. And I know it is related to OpenSCAD. But is it an online version of OpenSCAD, or a slightly different application? Thanks On Sat, Dec 1, 2018 at 1:26 AM MichaelAtOz <oz.at.michael@gmail.com> wrote: > ATM export is a manual process. It also requires a render (F6) which can > take > some time, so it unlikely it will be automated in the GUI. > > I haven't done it, but you should be able to script via the command line; > see 'Saving Parameters value in JSON file' at > OpenSCAD_User_Manual/WIP#Customizer > <https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/WIP#Customizer> > > > > ----- > Admin - email* me if you need anything, or if I've done something stupid... > > * click on my MichaelAtOz label, there is a link to email me. > > Unless specifically shown otherwise above, my contribution is in the > Public Domain; to the extent possible under law, I have waived all > copyright and related or neighbouring rights to this work. Obviously > inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! > http://www.ourfairdeal.org/ time is running out! > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
MF
Michael Frey
Sat, Dec 1, 2018 1:33 PM

On 01.12.18 05:53, fractorr wrote:

So if there was 3 possible values in each of the 3 sliders it would generate
and export 27 different stl files?

I would use a batch file (on Windows) or a shell script (any Unix
plattform).
I had a similar case where I needed 36 STL Files from one SCAD file.
Using Linux, I did the following:

#!/bin/bash
for i in {0..360..10}
do
    tmp="openscad -o leg$i.stl leg.scad -D ang=$i"
    echo $tmp
    eval $tmp
done

It should be obvious that for loops and be nested and multiple variables
can be overwritten using multiple -D options for calling openscad.

Offcourse, you could use any scripting/programming language you like.
The only trick is to generate the variable values by code and applying
them using -D to the design.

With kind regards,

Michael Frey

On 01.12.18 05:53, fractorr wrote: > So if there was 3 possible values in each of the 3 sliders it would generate > and export 27 different stl files? I would use a batch file (on Windows) or a shell script (any Unix plattform). I had a similar case where I needed 36 STL Files from one SCAD file. Using Linux, I did the following: -------- #!/bin/bash for i in {0..360..10} do     tmp="openscad -o leg$i.stl leg.scad -D ang=$i"     echo $tmp     eval $tmp done -------- It should be obvious that for loops and be nested and multiple variables can be overwritten using multiple -D options for calling openscad. Offcourse, you could use any scripting/programming language you like. The only trick is to generate the variable values by code and applying them using -D to the design. With kind regards, Michael Frey
JB
Jordan Brown
Sat, Dec 1, 2018 1:55 PM

On 12/1/2018 5:28 AM, Kevin Toppenberg wrote:

Stupid question:  What is customizer?

I hear people talk about it.  And I know it is related to OpenSCAD. 
But is it an online version of OpenSCAD, or a slightly different
application?

It's a mechanism for automatically putting a user interface in front of
an OpenSCAD program, by including stylized declarations and comments at
the top of the file.

The best-known one is https://www.thingiverse.com/customizer and there's
one built into bleeding edge versions of OpenSCAD.

On 12/1/2018 5:28 AM, Kevin Toppenberg wrote: > Stupid question:  What is customizer? > > I hear people talk about it.  And I know it is related to OpenSCAD.  > But is it an online version of OpenSCAD, or a slightly different > application? It's a mechanism for automatically putting a user interface in front of an OpenSCAD program, by including stylized declarations and comments at the top of the file. The best-known one is https://www.thingiverse.com/customizer and there's one built into bleeding edge versions of OpenSCAD.
TO
Trevor Orr
Sat, Dec 1, 2018 3:36 PM

Excellent, I will give that a try. Right now I use php to generate a
separate scad file for each variation. It works but it's messy, this way
looks much better, generating the variables is not a problem.

On December 1, 2018 5:34:36 AM Michael Frey michael.frey@gmx.ch wrote:

On 01.12.18 05:53, fractorr wrote:

So if there was 3 possible values in each of the 3 sliders it would generate
and export 27 different stl files?

I would use a batch file (on Windows) or a shell script (any Unix
plattform).
I had a similar case where I needed 36 STL Files from one SCAD file.
Using Linux, I did the following:

#!/bin/bash
for i in {0..360..10}
do
tmp="openscad -o leg$i.stl leg.scad -D ang=$i"
echo $tmp
eval $tmp
done

It should be obvious that for loops and be nested and multiple variables
can be overwritten using multiple -D options for calling openscad.

Offcourse, you could use any scripting/programming language you like.
The only trick is to generate the variable values by code and applying
them using -D to the design.

With kind regards,

Michael Frey


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Excellent, I will give that a try. Right now I use php to generate a separate scad file for each variation. It works but it's messy, this way looks much better, generating the variables is not a problem. On December 1, 2018 5:34:36 AM Michael Frey <michael.frey@gmx.ch> wrote: > On 01.12.18 05:53, fractorr wrote: >> So if there was 3 possible values in each of the 3 sliders it would generate >> and export 27 different stl files? > > I would use a batch file (on Windows) or a shell script (any Unix > plattform). > I had a similar case where I needed 36 STL Files from one SCAD file. > Using Linux, I did the following: > -------- > #!/bin/bash > for i in {0..360..10} > do > tmp="openscad -o leg$i.stl leg.scad -D ang=$i" > echo $tmp > eval $tmp > done > -------- > It should be obvious that for loops and be nested and multiple variables > can be overwritten using multiple -D options for calling openscad. > > Offcourse, you could use any scripting/programming language you like. > The only trick is to generate the variable values by code and applying > them using -D to the design. > > > With kind regards, > > Michael Frey > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
TO
Trevor Orr
Sat, Dec 1, 2018 4:21 PM

This is fantastic, with some small changes to my php file that I was using
to generate a separate scad file I was able to change it to one script file
and pass in the different variable variations and generate all the stl
files.  It never ceases to amaze me what can be done with OpenSCAD.

On Sat, Dec 1, 2018 at 5:34 AM Michael Frey michael.frey@gmx.ch wrote:

On 01.12.18 05:53, fractorr wrote:

So if there was 3 possible values in each of the 3 sliders it would

generate

and export 27 different stl files?

I would use a batch file (on Windows) or a shell script (any Unix
plattform).
I had a similar case where I needed 36 STL Files from one SCAD file.
Using Linux, I did the following:

#!/bin/bash
for i in {0..360..10}
do
tmp="openscad -o leg$i.stl leg.scad -D ang=$i"
echo $tmp
eval $tmp
done

It should be obvious that for loops and be nested and multiple variables
can be overwritten using multiple -D options for calling openscad.

Offcourse, you could use any scripting/programming language you like.
The only trick is to generate the variable values by code and applying
them using -D to the design.

With kind regards,

Michael Frey


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

This is fantastic, with some small changes to my php file that I was using to generate a separate scad file I was able to change it to one script file and pass in the different variable variations and generate all the stl files. It never ceases to amaze me what can be done with OpenSCAD. On Sat, Dec 1, 2018 at 5:34 AM Michael Frey <michael.frey@gmx.ch> wrote: > On 01.12.18 05:53, fractorr wrote: > > So if there was 3 possible values in each of the 3 sliders it would > generate > > and export 27 different stl files? > > I would use a batch file (on Windows) or a shell script (any Unix > plattform). > I had a similar case where I needed 36 STL Files from one SCAD file. > Using Linux, I did the following: > -------- > #!/bin/bash > for i in {0..360..10} > do > tmp="openscad -o leg$i.stl leg.scad -D ang=$i" > echo $tmp > eval $tmp > done > -------- > It should be obvious that for loops and be nested and multiple variables > can be overwritten using multiple -D options for calling openscad. > > Offcourse, you could use any scripting/programming language you like. > The only trick is to generate the variable values by code and applying > them using -D to the design. > > > With kind regards, > > Michael Frey > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >