I am using this plugin (modified to make it work in Blender 3.2) to export my meshes as an SVG with a stroke and fills. It has 2 scripts I am using: svg_object_fill.py
(fills the mesh with base color) and svg_visible.py
(adds strokes):
The plugin works well except when meshes overlap each other:
The stroke works perfectly but the fill does not.
My ideal solution (the stroke color is off but whatever):
I edited svg_object_fill.py
to try to change how it filters but I am way out of my depth with Freestyle scripting:
# upred = AndUP1D(
# ContourUP1D(),
# NotUP1D(pyIsOccludedByItselfUP1D()),
# )
# Operators.select(upred)
upred = AndUP1D(
QuantitativeInvisibilityUP1D(0),
ContourUP1D(),
NotUP1D(pyIsOccludedByItselfUP1D()),
)
Operators.select(upred)
Which gives me different but looking better results:
If anyone knows Freestyle scripting - what can I do to achieve what I want?