Convert NSBezierPath to GSPath

Hi! Is there a built-in function to convert a NSBezierPath into a GSPath?

Does this help:

from AppKit import NSBezierPath, NSMakeRect
pen = GSPathPen.new()
bezier = NSBezierPath.bezierPathWithOvalInRect_(NSMakeRect(10, 10, 580, 780))
bezier.drawInPen_(pen)
pen.closePath()
Layer.shapes = pen.layer().shapes
1 Like