Customizer Export

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

Customizer Export

fractorr
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/

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

Re: Customizer Export

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

Re: Customizer Export

kdtop
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 <[hidden email]> 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
[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: Customizer Export

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

Re: Customizer Export

JordanBrown
In reply to this post by kdtop
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.



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

Re: Customizer Export

fractorr
In reply to this post by MichaelPFrey
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 <[hidden email]> 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
> [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: Customizer Export

fractorr
In reply to this post by MichaelPFrey
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 <[hidden email]> 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
[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