Hi, I’m trying to use the layer.connectAllOpenPaths() and nothing is actually happening, nor is there an error message in the Macro Panel.
Selecting by hand my paths and right clicking Close Open Paths in the context menu does work.
What am I missing?
code snippet: (just last line doesn’t do anything)
addToLayer = NSMutableArray.array() for path in thisLayer.paths: newPath = GSPath() newPath = path.copy() addToLayer.append(newPath) for node in newPath.nodes: node.x += shiftX node.y += shiftY for path in addToLayer: thisLayer.addPath_(path) for path in thisLayer.paths: path.selected = True thisLayer.connectAllOpenPaths()