The following script does not work right in G3, but it works right in G2.
I found the function append does not work sometimes, that’s why the xPaths is empty.
but , I don’t know where is wrong?
import copy from Foundation import NSMakeRect, NSIntersectsRect xPaths =  pLayer = Glyphs.font.glyphs["space"].layers checkRect = NSMakeRect(0, 350, 300, 300) for p in aLayer.paths: if NSIntersectsRect(checkRect, p.bounds): xPaths.append(p.copy()) print(xPaths)
test.glyphs (6.8 KB)
Please help to find the reason.