Replies: 2 comments 1 reply
-
I was just thinking that too. I was modeling a fan holder for my ender 3 and after desgining it in fusion 360, I came to the conclusion that it was not easily sharable, since I had to export multiple STL files for every possible printer configurations. So I tried OpenSCAD and finaly JScad. After all, why re-event a new language when there are plenty out there. I was then able to script conditions to effectively select the parameters of the print. But then, non programming users must know how to fetch code from git (I shared it on git, see link below) and import it in openjscad.xyz. So I thought that maybe, like all online HTML editors, there must be an effective way to share designs online. Your suggestion to use an external url I think is the way to go. But I would suggest maybe considering fetching data from a git repo as well. This should be easyer for developpers to share their project through openjscad.xyz. It would then be easy to provide a link directly on thingiverse for example to let users customize the print. |
Beta Was this translation helpful? Give feedback.
-
There is a possibility to implement loading models from github, as they have the CORS headers to allow fetching directly from jscad without proxy |
Beta Was this translation helpful? Give feedback.
-
Before creating an issue to implement I would like to propose an url scheme that would be useful in the long run
The basis is ofc the website that already has defined at least one parameter
I would like to propose pushing view options to the url as well
and atop of the url use # hash to store model parameter values in url format
this way it would be easy to embed openjscad as an iframe, and also supply parameters to the model
actually if web would react to hash change, one could emebed model in own page as iframe,
then supply parameters via own custom form into the iframe by changing the url
example url would be like this:
https://openjscad.xyz/?uri=https://mypage.com/modesl/something.js&grid=0&autoRotate=1&zoomToFit=1#radius=12&numberOfHoles=5
this would allow sharing of model url together with selected options and giving people simple embed iframe to paste in their website like with google maps or similar
In addition to url, few useful postMessage events could be allowed for using the embeded openjscad iframe
loadScript
Beta Was this translation helpful? Give feedback.
All reactions