discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

After render automatic export to stl-file

MH
Matthieu Hendriks
Sat, Nov 18, 2023 6:38 PM

Is it possible to export automaticaly to stl after a render is done?

Or any clues how to change the code to accomplish this? :)

Groet Matthieu


Is it possible to export automaticaly to stl after a render is done? Or any clues how to change the code to accomplish this? :) Groet Matthieu -------------------------
TP
Torsten Paul
Sat, Nov 18, 2023 9:12 PM

On 18.11.23 19:38, Matthieu Hendriks via Discuss wrote:

Is it possible to export automaticaly to stl after a render is done?

Right now, no.

There's only manual export (by button click) to 2 possible print
services which is probably not that well tested.

Or any clues how to change the code to accomplish this? :)

Something based on https://github.com/openscad/openscad/pull/4592
should work. I would like to see some slightly safer handling of
the parameters though (e.g. not breaking down if there are
white spaces in the path).

ciao,
Torsten.

On 18.11.23 19:38, Matthieu Hendriks via Discuss wrote: > Is it possible to export automaticaly to stl after a render is done? Right now, no. There's only manual export (by button click) to 2 possible print services which is probably not that well tested. > Or any clues how to change the code to accomplish this? :) Something based on https://github.com/openscad/openscad/pull/4592 should work. I would like to see some slightly safer handling of the parameters though (e.g. not breaking down if there are white spaces in the path). ciao, Torsten.
JG
Jonathan Gilbert
Sat, Nov 18, 2023 9:14 PM

From within the UI, following a full render (Design->Render, or hitting
F6), getting the STL is done through an export: File->Export As->Export as
STL, or via hitting F7. I don't believe OpenSCAD does any more work with
whatever is in the scene at that point, it takes what's just been Rendered
and produces STL to the file name you give it. I think that might be as
automatic as the UI gets. (I think torsten beat me to this response by like
2 minutes because he's so very speedy :))

From command-line though, if that's your thing, specifying an export format
of "stl" will create an output file that is the rendered STL of  the given
mode:

openscad --export-format stl -o ModelFile.stl ModelFile.scad

...should get you what you want.

On Sat, Nov 18, 2023 at 10:39 AM Matthieu Hendriks via Discuss <
discuss@lists.openscad.org> wrote:

Is it possible to export automaticaly to stl after a render is done?

Or any clues how to change the code to accomplish this? :)

Groet Matthieu



OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

From within the UI, following a full render (Design->Render, or hitting F6), getting the STL is done through an export: File->Export As->Export as STL, or via hitting F7. I don't believe OpenSCAD does any more work with whatever is in the scene at that point, it takes what's just been Rendered and produces STL to the file name you give it. I think that might be as automatic as the UI gets. (I think torsten beat me to this response by like 2 minutes because he's so very speedy :)) From command-line though, if that's your thing, specifying an export format of "stl" will create an output file that is the rendered STL of the given mode: openscad --export-format stl -o ModelFile.stl ModelFile.scad ...should get you what you want. On Sat, Nov 18, 2023 at 10:39 AM Matthieu Hendriks via Discuss < discuss@lists.openscad.org> wrote: > Is it possible to export automaticaly to stl after a render is done? > > Or any clues how to change the code to accomplish this? :) > > > Groet Matthieu > > > ------------------------------ > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org > -- - Jon Gilbert jong@jong.org / jgilbertsjc@gmail.com
RW
Rogier Wolff
Sun, Nov 19, 2023 3:32 PM

On Sat, Nov 18, 2023 at 10:12:00PM +0100, Torsten Paul via Discuss wrote:

On 18.11.23 19:38, Matthieu Hendriks via Discuss wrote:

Is it possible to export automaticaly to stl after a render is done?

Right now, no.

There's only manual export (by button click) to 2 possible print
services which is probably not that well tested.

Or any clues how to change the code to accomplish this? :)

Something based on https://github.com/openscad/openscad/pull/4592
should work.

This sounds promising.

This stuff about spaces in filenames, I see it is trying to open a
fixed-format file. No spaces there. Are you talking about spaces in
the directory name (either "current directory" or "of the
tempdir"? ... From the code I couldn't deduce where the file would end
up).

Roger. 

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.

On Sat, Nov 18, 2023 at 10:12:00PM +0100, Torsten Paul via Discuss wrote: > On 18.11.23 19:38, Matthieu Hendriks via Discuss wrote: > > Is it possible to export automaticaly to stl after a render is done? > > Right now, no. > > There's only manual export (by button click) to 2 possible print > services which is probably not that well tested. > > > Or any clues how to change the code to accomplish this? :) > > Something based on https://github.com/openscad/openscad/pull/4592 > should work. This sounds promising. This stuff about spaces in filenames, I see it is trying to open a fixed-format file. No spaces there. Are you talking about spaces in the directory name (either "current directory" or "of the tempdir"? ... From the code I couldn't deduce where the file would end up). Roger. -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a is going up. -- Chris Hadfield about flying up the space shuttle.