8000 Ideas for sharing pattern parameters · Issue #91 · jeffeb3/sandify · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Ideas for sharing pattern parameters #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mrehorst opened this issue Jan 16, 2020 · 6 comments
Closed

Ideas for sharing pattern parameters #91

mrehorst opened this issue Jan 16, 2020 · 6 comments

Comments

@mrehorst
Copy link

If I want to share a pattern with someone I can give them the pattern file. If they want to load the parameters so they can modify it to fit their table dimensions or use the parameters as a starting point for a new pattern, they have to open the file with a text editor and manually copy the parameters from the file to the appropriate entry boxes in sandify.

It would be very useful if Sandify could read the parameters from the header in the file so they wouldn't have to be copied manually from a text editor. Maybe have a button labeled "read parameters from file" that would start the process...

I think the ultimate pattern sharing would be accomplished by storing the parameters in the EXIF comments of .jpg images of the patterns rendered on the sandify page that generates them. You could then look at collections of pattern images, select one you like, load it into sandify and all the parameters would be populated to generate the gcode for that pattern. You could then edit it to fit your table, use it as a starting point to generate a new pattern, etc.

This would require being able to render the image as a .jpg file and to store and read from the EXIF parameters of that file.

Here's an example- if you open this image you'll find the pattern parameters stored in the EXIF comments:
heartfuzz1

I think it might be possible to store the actual gcode in the .jpg file EXIF comments, but that might not be very useful for sharing...

@jeffeb3
Copy link
Owner
jeffeb3 commented Jan 16, 2020

That is a really good idea. It would be nice if it was easily readable, and I think keeping the params at the top of the gcode would also be good, but having them as part of the .jpeg is neat. I like it.

The one problem with these ad hoc parameters is that it is hard to maintain backwards compatability. I suppose I will usually add features, not remove them, but if I added or changed the interpretation of a parameter, it will be hard to be able to open it in the future website. Especially since there is no easy way for people to just keep the version they like.

But the jpeg might just be good enough to justify that.

@mrehorst
Copy link
Author

Presumably, over time the number of parameters is going to expand as more features get added to sandify. Maybe the parameters could be reserved so that they occur in a specific sequence and future versions that add more parameters will add to the list. Maybe the first parameter line in the header would provide the number of parameters that follow, which would make it easy for the parser because it would know how many parameters to read. Or some sort of "end of parameters" code in the last line so the parser would know when to stop.

@billsey
Copy link
Contributor
billsey commented Jan 17, 2020 via email

@jeffeb3
Copy link
Owner
jeffeb3 commented Jan 17, 2020

It is in javascript, so probably json. But that doesn't matter. What I was complaining about was things like if I change the spin algorithm or how the limits are defined, the old file won't be replicated exactly. Maybe not even close to exactly. So I have been dragging any of that work until we have a lot of it pretty solidified. It is probably fine now.

@jeffeb3
Copy link
Owner
jeffeb3 commented May 14, 2020

I added SVG output to the export types. I don't have any plans to import that type, and automatically set up the parameters. But it might be a useful stopgap for you. It is an image file (sort of) and it does have the parameters used in the comments. This hasn't been released to sandify.org yet, but it is on master.

@bobnik
Copy link
Collaborator
bobnik commented Oct 14, 2023

We ended up implementing this in #275 (1.0.0) as a Save/Load .sdf file feature, and pulled all settings out of the other exported file types.

@bobnik bobnik closed this as completed Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0