The most significant changes are:
-
GSLayer.selection
does not need any parentheses. -
.bezierPath
does not need any parentheses anymore, be it of a layer, a path or a component. -
GSNode.type
does not yield an integer anymore. Compare it to the constantsGSLINE
,GSCURVE
,GSOFFCURVE
To remain backwards compatible. To make sure these constants are loaded properly, add this line at the beginning:from GlyphsApp import GSLINE, GSCURVE, GSOFFCURVE
.
If you want to remain backwards compatible for points 1 and 2, add a try...except
and try with parentheses first, and add the variant without parentheses in the except
clause.