Feature request: Respect inkscape hidden layers

I’ve been trying to use Inkscape to create SVG files I can use with Kiri:Moto’s CAM engine to generate toolpaths for my CNC router. I had a fairly complex design down, and I thought I could just hide the parts I didn’t want to use in a particular CNC job.

The plan was that I would hide the layers with paths I didn’t want to process in the same job.

Unfortunately, it seems no matter which layers I hid, KM imports all of them.

I want to make the bug repro as simple as possible, so I created a simple circle inside a square with those path shapes in different layers.

I have a much more complex file that I created but cannot use in Kiri:Moto because I cannot process all of the paths in one job.

Is there any chance of getting this to to work? If not, is there a workaround besides just creating an explosion of files for each?

I cannot upload an SVG file, but here are the contents of the file I’m using to reproduce the problem:

Basically, it doesn’t seem to respect this:

style=“display:none”

I’ve reproduced your bug.

As of now, the code simply finds all paths, and extrudes them.

I’ll do some digging, and see if there’s a quick fix here, or if the SVG import system needs more systematic change.

In the meantime, have you considered, using the export selection function in Inkscape? I allows for selecting only the visible groups, and then exporting them specifically

Hope this helps!

That seems to work with the test file. I’ll try it out with the more complex file I was trying to use. Hopefully I can export only what I need by just selecting layers, because merging layers breaks the design (Inkscape quirk/bug).

I’ll reply back with results after I’ve tried it.

Thanks!