create a print: uploading OpenSCAD Preset files (.json) - impossible?!?
 
Notifications
Clear all

create a print: uploading OpenSCAD Preset files (.json) - impossible?!?  

  RSS
3Dietrich
(@3dietrich)
Active Member
create a print: uploading OpenSCAD Preset files (.json) - impossible?!?

I just tried to upload OpenSCAD files with customized content / presets. When the scad file is named "project_name.scad" the presets are saved as "project_name.json".

I can upload *.scad, but I can NOT upload *.json .. ? The presets are important. Without it it's like e.g. PrusaSlicer without Presets.. It can't be... What have I missed? 

Posted : 16/10/2021 1:09 pm
fuchsr
(@fuchsr)
Noble Member

It's not one of the file types the website allows to be uploaded. A kludge is to rename it to .txt and then in your description tell folks to rename it to .json after download. 

Posted : 16/10/2021 3:08 pm
3Dietrich
(@3dietrich)
Active Member
Topic starter answered:
.

Yes, that it is not allowed to upload is obvious, also the trick with the .json.txt I figured it out myself and have already used it. It was more of a complaint or bug report. OpenSCAD is open source, strong recommendation to work with for technical parts... Why can't you upload presets for it?  .json can't do anything - can it?

Posted : 16/10/2021 3:38 pm
bobstro
(@bobstro)
Illustrious Member
Just zip attachments

It's an old security measure. Just archive (zip) up any attachments.

My notes and disclaimers on 3D printing and miscellaneous other tech projects
He is intelligent, but not experienced. His pattern indicates two dimensional thinking. -- Spock in Star Trek: The Wrath of Khan...
Posted : 17/10/2021 12:46 am
3Dietrich
(@3dietrich)
Active Member
Topic starter answered:
no: ZIP attachments not accepted when it contains .json

What do you mean with "old"? An old evergreen but needed issue, or an old lazy mistake without attention to fix?

Posted by: @bobstro

It's an old security measure. Just archive (zip) up any attachments.

No, it is the same: zip archive is not accepted when it contains a .json file! 

Posted : 17/10/2021 8:44 am
fuchsr
(@fuchsr)
Noble Member

Yes, zip only works as a workaround on the forum pages not on the model pages. Would be great if more file types were supported but I suspect json falls in the edge case category and may no get much attention. 

Posted : 17/10/2021 12:57 pm
3Dietrich
(@3dietrich)
Active Member
Topic starter answered:
~ OpenSCAD not supported ?

So on prusaprinters.org I can not upload an OpenSCAD(*) file. That's a bummer. How to get 'them' you to get the attention for this Bug?
I heard Joseph Prusa is a Fan open OpenSCAD  - doesn't he know Presets?
If there is something about .json files then I would accept it. But I doubt and the responses don't sound like this either.

*) .scad files yes, but .json is produced in OpenSCAD when you save a Preset. This data can not included differently. So it is an part of OpenSCAD output.

Posted : 17/10/2021 6:40 pm
patta
(@patta)
New Member
RE:

so I'd guess that the guideline is to put the OpenSCAD (& .JSON) code on github,  instead here on prusaprinter, just some ready made .STL  and the link to github?

since anyway there is little chance that a working online "Customizer" will pop up here or on thingiverse anytime soon

This post was modified 1 week ago by patta
Posted : 20/11/2021 12:24 pm
fuchsr
(@fuchsr)
Noble Member
RE: create a print: uploading OpenSCAD Preset files (.json) - impossible?!?

What I would do is change the file extension from .json to .txt, upload it,  and add a note in the instructions section to switch it back to .json after downloading. This saves you and others a round trip to GitHub, which for the uninitiated may be daunting. 

Posted : 20/11/2021 12:54 pm
Share: