(There seemed to be a route where you can export as DXF from Inscape and import that into KiCad, but if I remember correctly there wasn't an obvious way to import it as a copper layer. Maybe the situation has been improved since I last tried.)
(There seemed to be a route where you can export as DXF from Inscape and import that into KiCad, but if I remember correctly there wasn't an obvious way to import it as a copper layer. Maybe the situation has been improved since I last tried.)
I do it in this project:
It looks like your script uses some KiCad libraries. My generator program is written in Haskell, so unless someone has written a binding there's probably no easy way to just use the KiCad API. But human readable text doesn't look hard to generate.
It seems like the sort of problem I was trying to solve is kind of similar to yours. (The geometry is different. I wasn't making coil-shaped traces, instead my thing was to take a voronoi diagram and for each cell print a set of interdigitized fingers inside the cell. These are for pressure sensors under a strangely-configured keyboard. But the general problem of "I can write a program to draw lines but I need it to be a PCB" is more-or-less the same.)