Filled and Not-filled Paths

Hi! Can I ask how to fill reversed paths with “no fill”? I know layer.bezierPaths.fill() does the trick, but I don’t need the whole layer, only some paths.
I have

if path.direction == -1:

Which of course doesn’t exclude the inner part:

Thank you!

Add the bezier paths all to one extra NSBezierPath and draw that after the loop.

1 Like