set_glyph_paths
Replace all paths on a glyph layer in GlyphsApp, overwriting old outlines. Provide new path nodes with coordinates, types, and closed flags for exact geometry.
Instructions
Replace ALL paths on a glyph's layer in GlyphsApp.
This OVERWRITES existing paths. The glyph must already exist.
Each path is: {"closed": true, "nodes": [{"x": 100, "y": 0, "type": "line", "smooth": false}, ...]}
Node types:
"line": on-curve point with straight connection to previous
"curve": on-curve point with smooth cubic bezier connection
"offcurve": cubic bezier control handle (always in pairs before a "curve")
Curve segments: offcurve, offcurve, curve (3 nodes per segment)
Path direction: outer contours counter-clockwise, counters/holes clockwise. correctPathDirection() is called automatically after setting paths.
If master_id is empty, uses the first master.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| master_id | No | ||
| glyph_name | Yes |