I’m writing a piece of software that generates SVG files for use with the glowforge. These files are made up of both cut and engrave portions. For the engrave portions, I am embedding the images into the SVG file.
Everything works great, except for one little issue - with 40-50 small images embedded, and cutting on non-proofgrade materials, the UI is extremely difficult to work with. Manually setting the engrave settings on each image is not really a viable workflow.
I’ve tried several different options within the SVG, but the GFUI doesnt seem to ever group these up -
- setting stroke colors the same (on both the image itself and a parent group element)
- setting fill colors the same (on both the image itself and a parent group element)
- setting both colors the same (on both the image itself and a parent group element)
- places all images into a single parent group
- setting the element name attribute to be the same
- setting the element id attribute to be the same
The cuts are all grouped up nicely in the GFUI, despite being in different parts of the SVG, which is great.
I could rasterize all of these images into one large image, but that means doing all of the layout/transform in code, instead of using SVG groups - its messy, and seems to defeat the purpose of using SVG, but its possible.
Are there any other suggestions/tricks on how to either auto-set the engrave settings (via SVG attributes, would be an excellent feature), or modification I can make to group these engrave steps up?