Decompose Corner & Cap components


Is there a way to decompose only the corner and cap components from scripts? I do not want to removeOverlap() the whole thing, just the components.

pen = GSBezStringPen.alloc().init()
for thisPath in thisLayer.paths:

pathString = pen.charString()
newPaths = removeOverlapFilter.pathsFromBez_gridSize_(pathString,1.0)

And then you need to step through all hints and delete the remaining corner/cap components.


Or do:



Ah, ha ha. Convenience method. Much better, of course.


Thanks! I was only looking at the GSHint help.