/splitlayers

Split Inkscape SVG layers into separate files.

Primary LanguagePython

splitlayers

Python script based on layer-to-svg, but:

  • Uses lxml.etree instead of xml.etree.ElementTree.
  • Has an optional -p PREFIX argument. If this is set each output file will be named PREFIX-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 named LAYER to be present in each output file. This is useful for setting a background, for example.