discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

A recent Hackaday article - multiextrusion-and-openscad

M
MichaelAtOz
Fri, Jan 27, 2017 4:39 AM

A recent Hackaday article  multiextrusion-and-openscad
http://hackaday.com/2017/01/20/multiextrusion-and-openscad/


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

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!

View this message in context: http://forum.openscad.org/A-recent-Hackaday-article-multiextrusion-and-openscad-tp20248.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

A recent Hackaday article multiextrusion-and-openscad <http://hackaday.com/2017/01/20/multiextrusion-and-openscad/> ----- Admin - PM me if you need anything, or if I've done something stupid... 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! -- View this message in context: http://forum.openscad.org/A-recent-Hackaday-article-multiextrusion-and-openscad-tp20248.html Sent from the OpenSCAD mailing list archive at Nabble.com.
JD
Jerry Davis
Sun, Jan 29, 2017 1:55 PM

what I did was actually simpler:

  1. create the .scad file, with a variable: color=1;

  2. in a giant if statement

    if (color == 1) { do all the statements for color = 1}
    if (color == 2) { do some other statements for color = 2}

then on the command line use the -render and the -D color=1 option to print
one color, and a -D color=2 to print the 2nd color.

put both statements into a shell (batch) file, and execute it. No changing
of source required.

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Openscad developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

On Thu, Jan 26, 2017 at 9:39 PM, MichaelAtOz oz.at.michael@gmail.com
wrote:

A recent Hackaday article  multiextrusion-and-openscad
http://hackaday.com/2017/01/20/multiextrusion-and-openscad/


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

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!

View this message in context: http://forum.openscad.org/A-
recent-Hackaday-article-multiextrusion-and-openscad-tp20248.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


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

what I did was actually simpler: 1. create the .scad file, with a variable: color=1; 2. in a giant if statement if (color == 1) { do all the statements for color = 1} if (color == 2) { do some other statements for color = 2} then on the command line use the -render and the -D color=1 option to print one color, and a -D color=2 to print the 2nd color. put both statements into a shell (batch) file, and execute it. No changing of source required. -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Openscad developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov On Thu, Jan 26, 2017 at 9:39 PM, MichaelAtOz <oz.at.michael@gmail.com> wrote: > A recent Hackaday article multiextrusion-and-openscad > <http://hackaday.com/2017/01/20/multiextrusion-and-openscad/> > > > > ----- > Admin - PM me if you need anything, or if I've done something stupid... > > 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! > -- > View this message in context: http://forum.openscad.org/A- > recent-Hackaday-article-multiextrusion-and-openscad-tp20248.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >