Discussion:
[OpenSCAD] customizer preset storage
k***@volksswitch.org
2018-11-14 22:56:54 UTC
Permalink
Does anyone know where customizer presets are stored?



Thanks,

Ken
Kevin Toppenberg
2018-11-15 03:46:42 UTC
Permalink
I don't understand your question. What presets?

Kevin
Post by k***@volksswitch.org
Does anyone know where customizer presets are stored?
Thanks,
Ken
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Michael Frey
2018-11-15 04:17:35 UTC
Permalink
Hi Ken,
Post by k***@volksswitch.org
Does anyone know where customizer presets are stored?
When you talk about the customizer build in to the development snapshots
of openscad it self:

OpenSCAD takes the file name and replaces the .scad file ending with
.json and stores the presets it in that json file.

So: C:\user\myDesign.scad has its presets stored in C:\user\myDesign.json

It is the same with the examples that ship with openscad that have presets.

You can easily read the json with any text editor.

When you save your design with a different name (e.g.
d:\backup\test.scad), in theory it should also save the preset under the
new name (e.g. d:\backup\test.json),. (but I have not tested that in a
long time. It would be a bug if it does not, but things can break during
refactoring)

With kind regards,

Michael Frey
Kevin Toppenberg
2018-11-15 13:49:46 UTC
Permalink
OK, thanks
Post by Michael Frey
Hi Ken,
Does anyone know where customizer presets are stored?
When you talk about the customizer build in to the development snapshots
OpenSCAD takes the file name and replaces the .scad file ending with .json
and stores the presets it in that json file.
So: C:\user\myDesign.scad has its presets stored in C:\user\myDesign.json
It is the same with the examples that ship with openscad that have presets.
You can easily read the json with any text editor.
When you save your design with a different name (e.g.
d:\backup\test.scad), in theory it should also save the preset under the
new name (e.g. d:\backup\test.json),. (but I have not tested that in a long
time. It would be a bug if it does not, but things can break during
refactoring)
With kind regards,
Michael Frey
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
William Adams
2018-11-15 14:05:05 UTC
Permalink
Also, you can save multiple settings / versions of settings under different
names --- I worked up the code for parsing this in lualatex/metapost if it
would help.

William
Post by Kevin Toppenberg
OK, thanks
Post by Michael Frey
Hi Ken,
Does anyone know where customizer presets are stored?
When you talk about the customizer build in to the development snapshots
OpenSCAD takes the file name and replaces the .scad file ending with
.json and stores the presets it in that json file.
So: C:\user\myDesign.scad has its presets stored in C:\user\myDesign.json
It is the same with the examples that ship with openscad that have presets.
You can easily read the json with any text editor.
When you save your design with a different name (e.g.
d:\backup\test.scad), in theory it should also save the preset under the
new name (e.g. d:\backup\test.json),. (but I have not tested that in a long
time. It would be a bug if it does not, but things can break during
refactoring)
With kind regards,
Michael Frey
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
_______________________________________________
OpenSCAD mailing list
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Loading...