Open lewi0622 opened 1 year ago
This will be addressed by vpype 2.0's path-level metadata support.
To correct my original issue. The stroke colors are only being overwritten because of "--color-mode layer". If that isn't used, it works fine.
My workflow for occulting overlapping colors is to assign id's to each line in the order it's drawn and process the file in two steps, the first just does occult using the id's layers, the second performs all other postprocessing using the stroke colors as layers.
Would still look forward to being able to do it in just one step, where draw order could be maintained, even when parsing the stroke colors into layers.
Simple example files processed using this method:
Expectation: Keep stroke colors, but order the layers by "id" so that I can use occult across layers in the draw order of the original.
Issue: Order is preserved, but for each unique "id" a unique layer and color are generated, original stroke colors are overwritten.
Exact command executed as follows:
vpype read -a id -a stroke --no-crop "Line_Interrupted_seed_646429_colors_10_scale_2_346.svg" scaleto 10in 8in occult -i layout -l letter linemerge linesort reloop linesimplify write --color-mode layer "Line_Interrupted_seed_646429_colors_10_scale_2_346_PROCESSED.svg"