mkrabset / krabzcam

Online CAM tool for generating G-code from vector graphics and bitmaps
65 stars 8 forks source link

[Feature request] Select paths by color #28

Closed risacher closed 1 year ago

risacher commented 2 years ago

I usually generate SVG files as input to Krabzcam in Inkscape. I think it would be useful to be able to select paths by color in Krabzcam so that I can indicate in Inkscape that different parts are intended for the same operation. For example, in Inkscape, I might put all the dark laser engraves in blue, and all the light engraves in red. Or similar for different CNC depths, whatever.

mkrabset commented 2 years ago

I've added a new hotkey Shift-A (select next by path-color). Hope this helps.. :-)

risacher commented 1 year ago

Awesome. Thanks for this. Closing.

risacher commented 1 year ago

Found a use case where this is not working properly. It seems to select closed paths separately from open paths..? See linked example and try to use Shift-A to select the text (which is all one color) cat tag. At least for me, this will select the 'o', '0', and the dot on the 'i' separately from the other letters.

davi-domo commented 1 year ago

hello have you tried with a smaller cutter diameter? this has already happened to me if the cutter is larger than the surface to be removed

mkrabset commented 1 year ago

I've added a fix for the closed vs. open path problem. Please test it, and let me know of any problems.

risacher commented 1 year ago

As it turns out, I had to re-make the part where I found this bug. The fix worked great. Thanks and closing.

risacher commented 1 year ago

@davi-domo When I found the bug, I was using it for laser engraving, so the cutter size is not relevant.