3/30/2023 0 Comments Inkscape gcode could not be saved![]() ![]() I am very interested in taking this jewel of code (SVG -> GCODE parser) and making it into a modular system that could be used with other SVG generators on the web.Ĭan someone describe to me in a few words (or a hand drawn chart) how the system works together after you drop the svg into the workspace and move it to desired am pretty proficient in taking stuff that usually runs in the browser and make it work on a server. I think it’s state of the art comparing to many other things I’ve tried so far, including Glowforge’s conversion algorithms used by thousands of people. Hello! I am really impressed with the speed of SVG -> GCode conversion in LW. Return the workspace back to LW it creates rawData for each new svg from the json and applies the changes to the one is on my list of things to do… just got a 32 inch flat screen for free a couple weeks ago. Plugin would take workspace that contains a 10mm square that has a ouside mill operation clone the svg to fill area giving each 10mm square a new uid and adding it to the operations of its parent. Not really a problem there are librarys that will clean json.Īssuming LW would save the svg in the workspace a simple plugin design would be this. And all the other problems with untrusted Json, JavaScript Injection, Cross Site Scripting and more.You could get wrong settings for operations.You could get malformed Json… so you would have to check structure.If error happens undo would just change the work space to previous state. If changed or not present LW creates it and updates the work space. LW then checks the data for changes to rawData. It does its thing and sends the workspace back to LW. Sends the work space json or maybe right now just send all the data that is available. Click on nesting temp saves the work space and opens up a iframe then uses web sockets to connect to a remote plugin. Have the ones that are not currently available grayed out. So here is what i imagine: Plugins –> G-code But lets say a plug-in for g code that edits the corners for a drag knife would be easier. Creating a plugin that could nest every type of input is out of my league. I propose that plugins be separated by import “TYPE”. So rawData (2d or 3d mesh) from the work space is used by the cam and during creation of the g code. Now i know why you said never convert it instead of save it. Same page, what you thank? bad I’ve only used svg with LW i didn’t even know you could import other types. Kinda like gimp does with its addon/plugins. From there you generate the g-code the normal way.Īlso it could be one way with a simple undo function on LW. Now you would click done and my addon with clone the original apply text with milling options and feed each one back to LW with all the properties. Also at this point i would add the milling options for the dynamic text. In the popup i have a text area that i could type names separated by commas with a canvas that shows the position of the text adjustable location wise and other things. I then proceed to click on the addon “Add multi-text” a popup appears that has access to the selected objects and paths with cut properties. I apply a cutout for the outside cut of 3mill and engrave for the design. Like i import a svg tag design of a simple square with a milled design. When addon was selected it could be opened in a iframe popup as long as it would have access to current selection and object properties. And then have LW dynamically inject links of the addons creating a dropdown menu with addons. The way i thought about it was to have a folder /addons out side the scope of LW. I come from an AngularJS world so i’m just learning react right now lol. This architecture is free enough to allow you to develop the generators on your own way, without worry or interference of LW development and viceversa. Popup is closed, and the shape is changed on LW. Later he wishes a 6 point star, so clicks the smart shape button, the popup appear with the shape and parameters, changes to six. LW should implement a way to store your SVG and parameters URL in LW native format, allowing an UI button to popup and recall your generator (IE: user makes a 5 point star, places on LW canvas. LW will be allowed to get the SVG document once finished editing. (your) API/JS side that could standalone generate the SVG.An specific generator will be shown on iframe with CORS authentication allowing LW to interact with it. LW side, a react component (gallery) that previews, lists and allows to ask for the SVG once the parameters are filled. ![]() ![]() Is built upon an architecture similar to, but done with React-Redux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |