How hard would it be to make it so that If I double-click on an STL to
load it into OpenSCAD, make some modification, and want to save the
.scad file, to default the save destination to the directory I imported
the stl from?
I am trying to remember to create a .scad file in the directory I am
importing from BEFORE I load the stl into OpenSCAD, but I often forget,
so that when I want to save the .scad file, I have to navigate to the
same directory, which is sometimes quite long.
Larry
This is the perfect thing to try out an LLM and get it to help.
I'd try this by having an executable script which takes in the filename
on the command line, checks if a .scad in the same directory already
exists (open it if so) or creates one with the first line of import (whatever.stl), then launches openscad on that file.
On 10/25/26 12:55 PM, larry via Discuss wrote:
How hard would it be to make it so that If I double-click on an STL to
load it into OpenSCAD, make some modification, and want to save the
.scad file, to default the save destination to the directory I imported
the stl from?
I am trying to remember to create a .scad file in the directory I am
importing from BEFORE I load the stl into OpenSCAD, but I often forget,
so that when I want to save the .scad file, I have to navigate to the
same directory, which is sometimes quite long.
Larry
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On 10/25/2026 12:55 PM, larry via Discuss wrote:
How hard would it be to make it so that If I double-click on an STL to
load it into OpenSCAD,
I don't believe that OpenSCAD defaults to registering to open STLs.
(Seems like a somewhat odd thing to do. You only get one such
application, and a slicer makes more sense.) But assuming for a moment
that you make it work one way or another...
I haven't thought about it in detail, but it seems plausible. I think
we need an overhaul of default folder selection, and this case could be
considered. I do not expect to do that overhaul before the next release.
Add a comment to issue #7064
https://github.com/openscad/openscad/issues/7064, please.