Closed abey79 closed 4 years ago
Saxi uses stroke color, not svg layers (groups) to split layers apart. Try making each layer a different stroke color?
Oh ok. Thanks for the quick answer -- this solves my immediate issue. That said, I will have to vary layer colours in vpype's export so make its output directly compatible with saxi. Is colour the only attribute that's being considered or are there others? Is it ok if colour is set at group level (as opposed to individual path?
Spent some time thinking about this tonight. I'm uncertain how to handle the two separate modes of layering, here are some possibilities:
<g id="...">
anywhere in the SVG, and if so, use layer-by-group-id. Otherwise, use layer-by-stroke.Currently I'm tending towards (3), since it doesn't break any existing usage, though it might be good to have an override. Perhaps if it detects that either stroke-based or <g>
-based methods would both produce >1 layer, it could allow toggling between them?
[edit] another possibility would be to have both group ID and stroke combine to form layer ID. So every unique combo of group + stroke could be a unique layer. or allow stroke and group to be "orthogonal" layerings, so you could choose a set of group ids and separately choose a set of stroke colors, and the plotted paths would be only those paths which are in a selected group AND in a selected stroke. that's probably overly complex, though.
Give 0.9.0 a whirl, I went with (3) + (4) :)
Looks great, will try it out ASAP. Thanks for taking the time!
I have an example of multi-layer SVG file for which SAXI will not show the layer selector. How can I plot a single layer of this file?
Here is the file: patterns_8x.svg.zip