discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Novice, confused about saving files

T
Terrypin
Thu, Apr 8, 2021 11:21 AM

I open a SCAD file and change a parameter in Customizer. The change is
reflected in the display when I click Preview or use F5. If I then save the
SCAD, a JSON is automatically created with the same name. But when opened in
my text editor I see that does /not /reflect the change.

I had assumed I could use the JSON as a work around for what strikes me as
an odd feature of openSCAD, namely that changes in Customizer are not
automatically reflected in the code pane.

Where am I going wrong please?

--
Sent from: http://forum.openscad.org/

I open a SCAD file and change a parameter in Customizer. The change is reflected in the display when I click Preview or use F5. If I then save the SCAD, a JSON is automatically created with the same name. But when opened in my text editor I see that does /not /reflect the change. I had assumed I could use the JSON as a work around for what strikes me as an odd feature of openSCAD, namely that changes in Customizer are not automatically reflected in the code pane. Where am I going wrong please? -- Sent from: http://forum.openscad.org/
T
Terrypin
Thu, Apr 8, 2021 11:32 AM

OK, I think I now see the answer is embarrassingly obvious: I need to use
Save Preset, yes?

Still seems rather counter intuitive though, that changing a parameter in
Customizer does not ripple through the code?

--
Sent from: http://forum.openscad.org/

OK, I think I now see the answer is embarrassingly obvious: I need to use *Save Preset*, yes? Still seems rather counter intuitive though, that changing a parameter in Customizer does not ripple through the code? -- Sent from: http://forum.openscad.org/
AD
Ari Diacou
Thu, Apr 8, 2021 11:41 AM

As I understand it, Customizer in OpenSCAD was added to model how
Customizer on Thingiverse will work without having to:
while(errors){

edit code;
upload code;
save changes;
open in customizer;

}

the way you are supposed to make changes, is by editing the parameters
directly, and hit save. Think of Customizer in OpenSCAD as "Thingiverse
Customizer Simulator".

On Thu, Apr 8, 2021 at 7:32 AM Terrypin via Discuss <
discuss@lists.openscad.org> wrote:

OK, I think I now see the answer is embarrassingly obvious: I need to use Save
Preset
, yes?

Still seems rather counter intuitive though, that changing a parameter in
Customizer does not ripple through the code?

Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.


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

As I understand it, Customizer in OpenSCAD was added to model how Customizer on Thingiverse will work without having to: while(errors){ edit code; upload code; save changes; open in customizer; } the way you are supposed to make changes, is by editing the parameters directly, and hit save. Think of Customizer in OpenSCAD as "Thingiverse Customizer Simulator". On Thu, Apr 8, 2021 at 7:32 AM Terrypin via Discuss < discuss@lists.openscad.org> wrote: > OK, I think I now see the answer is embarrassingly obvious: I need to use *Save > Preset*, yes? > > Still seems rather counter intuitive though, that changing a parameter in > Customizer does not ripple through the code? > ------------------------------ > Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> > at Nabble.com. > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >
T
Terrypin
Sat, Apr 10, 2021 12:48 PM

Thanks. Guess I’ll have to get into the habit of ignoring Customizer then.
Otherwise, keeping track of changes seems potentially messy.

BTW, have I become anonymous as the result of unsubscribing from the mailing
list?

Terry

--
Sent from: http://forum.openscad.org/

Thanks. Guess I’ll have to get into the habit of ignoring Customizer then. Otherwise, keeping track of changes seems potentially messy. BTW, have I become anonymous as the result of unsubscribing from the mailing list? Terry -- Sent from: http://forum.openscad.org/
K
ken@volksswitch.org
Sat, Apr 10, 2021 5:17 PM

It might seem more intuitive if you had the Editor pane open at the time of
your save.  When you do a File>Save, you're saving the contents of the
Editor pane.  What you do in the Customizer pane are just temporary
overrides to the defaults you set up in the code (Editor).  Yes you can save
those overrides as Presets.  You may have hundreds of Presets for a single
instance of code.  It's more useful, and more efficient from a space
perspective, to save those presets separately in a .json file.  You can then
call them up individually simply by choosing a value from the pulldown list.

From: Terrypin T.pinnell@btinternet.com
Sent: Thursday, April 8, 2021 5:32 AM
To: discuss@lists.openscad.org
Subject: [OpenSCAD] Re: Novice, confused about saving files

OK, I think I now see the answer is embarrassingly obvious: I need to use
Save Preset, yes?

Still seems rather counter intuitive though, that changing a parameter in
Customizer does not ripple through the code?


Sent from the OpenSCAD mailing list archive http://forum.openscad.org/  at
Nabble.com.

It might seem more intuitive if you had the Editor pane open at the time of your save. When you do a File>Save, you're saving the contents of the Editor pane. What you do in the Customizer pane are just temporary overrides to the defaults you set up in the code (Editor). Yes you can save those overrides as Presets. You may have hundreds of Presets for a single instance of code. It's more useful, and more efficient from a space perspective, to save those presets separately in a .json file. You can then call them up individually simply by choosing a value from the pulldown list. From: Terrypin <T.pinnell@btinternet.com> Sent: Thursday, April 8, 2021 5:32 AM To: discuss@lists.openscad.org Subject: [OpenSCAD] Re: Novice, confused about saving files OK, I think I now see the answer is embarrassingly obvious: I need to use Save Preset, yes? Still seems rather counter intuitive though, that changing a parameter in Customizer does not ripple through the code? _____ Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> at Nabble.com.
T
Terrypin
Sat, Apr 10, 2021 9:33 PM

Thanks, understood. I’ll switch to the approach you suggest and see how I get
on. It’s easy to modify parameters in the editor window when the code is
prominently parametrised. But that’s not always the case in the files I’ve
downloaded, and changing all instances can then be relatively difficult.

Terry

--
Sent from: http://forum.openscad.org/

Thanks, understood. I’ll switch to the approach you suggest and see how I get on. It’s easy to modify parameters in the editor window when the code is prominently parametrised. But that’s not always the case in the files I’ve downloaded, and changing all instances can then be relatively difficult. Terry -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Sun, Apr 11, 2021 4:56 AM

OpenSCAD mailing list-2 wrote

BTW, have I become anonymous as the result of unsubscribing from the
mailing
list?

Terry

No, there are some mailing systems (or methods* users use?) which have the
mail headers different.
(* different reply options?)

e.g. Your quoted message

To: discuss@lists.openscad.org
X-MailFrom: T.pinnell@btinternet.com
Reply-To: OpenSCAD general discussion discuss@lists.openscad.org
Subject: [OpenSCAD] Re: Novice, confused about saving files
From: Terrypin via Discuss discuss@lists.openscad.org
<<====== this
Cc: Terrypin T.pinnell@btinternet.com

Nabble then can't match the From:

v's

From: MichaelAtOz oz.at.michael@gmail.com
<<====== this
To: discuss@lists.openscad.org
X-MailFrom: oz.at.michael@gmail.com
Reply-To: OpenSCAD general discussion discuss@lists.openscad.org
Subject: [OpenSCAD] Re: Complex model - reducing render time

I have noticed primarily yahoo.com aol.com and some others.
Still trying to find a workaround.


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

  • on the Forum, 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.

--
Sent from: http://forum.openscad.org/

OpenSCAD mailing list-2 wrote > BTW, have I become anonymous as the result of unsubscribing from the > mailing > list? > > Terry No, there are some mailing systems (or methods* users use?) which have the mail headers different. (* different reply options?) e.g. Your quoted message To: discuss@lists.openscad.org X-MailFrom: T.pinnell@btinternet.com Reply-To: OpenSCAD general discussion <discuss@lists.openscad.org> Subject: [OpenSCAD] Re: Novice, confused about saving files From: Terrypin via Discuss <discuss@lists.openscad.org> <<====== this Cc: Terrypin <T.pinnell@btinternet.com> Nabble then can't match the From: v's From: MichaelAtOz <oz.at.michael@gmail.com> <<====== this To: discuss@lists.openscad.org X-MailFrom: oz.at.michael@gmail.com Reply-To: OpenSCAD general discussion <discuss@lists.openscad.org> Subject: [OpenSCAD] Re: Complex model - reducing render time I have noticed primarily yahoo.com aol.com and some others. Still trying to find a workaround. ----- OpenSCAD Admin - email* me if you need anything, or if I've done something stupid... * on the Forum, 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. -- Sent from: http://forum.openscad.org/
K
ken@volksswitch.org
Sun, Apr 11, 2021 7:18 PM

Hi Terry,

Don’t ignore the Customizer.  It changed my life as a designer of assistive technology.  I can write one bit of OpenSCAD code that others can use to create hundreds of custom device variants.  If you’re not thinking in terms of customization then, yes you probably can ignore the Customizer.  And free up some screen real-estate 😊.  You may also want to consider doing your coding outside of the Editor pane in a separate application like Notepad++ and watching the changes you make automatically update the display in OpenSCAD when you save the file in Notepad++.

Thanks,

Ken

From: Terrypin T.pinnell@btinternet.com
Sent: Saturday, April 10, 2021 6:48 AM
To: discuss@lists.openscad.org
Subject: [OpenSCAD] Re: Novice, confused about saving files

Thanks. Guess I’ll have to get into the habit of ignoring Customizer then. Otherwise, keeping track of changes seems potentially messy.

BTW, have I become anonymous as the result of unsubscribing from the mailing list?

Terry


Sent from the OpenSCAD mailing list archive http://forum.openscad.org/  at Nabble.com.

Hi Terry, Don’t ignore the Customizer. It changed my life as a designer of assistive technology. I can write one bit of OpenSCAD code that others can use to create hundreds of custom device variants. If you’re not thinking in terms of customization then, yes you probably can ignore the Customizer. And free up some screen real-estate 😊. You may also want to consider doing your coding outside of the Editor pane in a separate application like Notepad++ and watching the changes you make automatically update the display in OpenSCAD when you save the file in Notepad++. Thanks, Ken From: Terrypin <T.pinnell@btinternet.com> Sent: Saturday, April 10, 2021 6:48 AM To: discuss@lists.openscad.org Subject: [OpenSCAD] Re: Novice, confused about saving files Thanks. Guess I’ll have to get into the habit of ignoring Customizer then. Otherwise, keeping track of changes seems potentially messy. BTW, have I become anonymous as the result of unsubscribing from the mailing list? Terry _____ Sent from the OpenSCAD mailing list archive <http://forum.openscad.org/> at Nabble.com.
T
Terrypin
Mon, Apr 12, 2021 7:57 AM

Thanks Ken. Of course, as a beginner I see Customizer from a different angle
to that taken by a developer. I was pleased to be able to modify parameters
so easily. But after a succession of these (some followed by actual prints),
i wanted to open the latest code for further learning and editing. So I was
baffled why the code remained unchanged since I’d downloaded it. And my
changes were unavailAble in a SCAD file!

From discussion here I now gather that is by design, although I remain
somewhat unclear why.

Also, could you explain what advantage stems from bringing my text editor
into the workflow please?

Terry

--
Sent from: http://forum.openscad.org/

Thanks Ken. Of course, as a beginner I see Customizer from a different angle to that taken by a developer. I was pleased to be able to modify parameters so easily. But after a succession of these (some followed by actual prints), i wanted to open the latest code for further learning and editing. So I was baffled why the code remained unchanged since I’d downloaded it. And my changes were unavailAble in a SCAD file! From discussion here I now gather that is by design, although I remain somewhat unclear why. Also, could you explain what advantage stems from bringing my text editor into the workflow please? Terry -- Sent from: http://forum.openscad.org/
T
Terrypin
Mon, Apr 12, 2021 8:14 AM

Thanks but I still don’t get it, sorry! I’m using /only/ the forum, so....?

It’s trivial I know (adding my sig fixes the anonymity) but is there really
no simple fix to display ‘terrypin’ rather than ‘OpenSCAD mailing list-2’?

Terry

--
Sent from: http://forum.openscad.org/

Thanks but I still don’t get it, sorry! I’m using /only/ the forum, so....? It’s trivial I know (adding my sig fixes the anonymity) but is there really no simple fix to display ‘terrypin’ rather than ‘OpenSCAD mailing list-2’? Terry -- Sent from: http://forum.openscad.org/