Python script based on layer-to-svg, but:
- Uses
lxml.etree
instead ofxml.etree.ElementTree
. - Has an optional
-p PREFIX
argument. If this is set each output file will be namedPREFIX-number.svg
according to layer order. Otherwise the output filename will be the layer name. - Has an optional
-k LAYER
argument that allows the layer namedLAYER
to be present in each output file. This is useful for setting a background, for example.