Chaining Filters Using a Script

Hi,

I want to chain three filters in a script as part of an experimental workflow as a way of seeing a one button result and to store the settings. But unfortunately, after reading the API I can not figure out how to adapt:

thisLayer = Glyphs.font.selectedLayers[0]
offsetCurveFilter = NSClassFromString(“GlyphsFilterOffsetCurve”)
offsetCurveFilter.offsetLayer_offsetX_offsetY_makeStroke_autoStroke_position_error_shadow_(
thisLayer,
0.5,
0.5,
True,
False,
0.5,
None,
None
)

For Broad Nibber - width 100, height 10, angle 45. It requires 4 arguments but I am unsure what these are and how to format it as above.

BroadNibber is open source. You can simply pick the the methods you need out of the source code.