# Scripting

**URL:** https://forum.glyphsapp.com/c/scripting/6.md?page=2

[Latest](https://forum.glyphsapp.com/latest.md) · [Categories](https://forum.glyphsapp.com/categories.md) · [Tags](https://forum.glyphsapp.com/tags.md)

**Page:** 3

---

## [Scripting help: Add separator in menu](https://forum.glyphsapp.com/t/scripting-help-add-separator-in-menu/26142)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 14\
**Last updated:** [October 24, 2025, 11:21pm UTC](https://forum.glyphsapp.com/t/scripting-help-add-separator-in-menu/26142 "2025-10-24T23:21:02Z")

</div>

Hello, I’m afraid I am having trouble figuring out how to correctly add a menu item separator in a plugin: How do I do this correctly? Using "name": "-" like in Vanilla doesn’t work, neither does an empty string (as y…

---

## [GSPathSegment.reverse() always returns None](https://forum.glyphsapp.com/t/gspathsegment-reverse-always-returns-none/35379)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 8\
**Last updated:** [October 23, 2025, 5:17pm UTC](https://forum.glyphsapp.com/t/gspathsegment-reverse-always-returns-none/35379 "2025-10-23T17:17:38Z")

</div>

As per the title: using GSPathSegment.reverse() always returns None. I would expect the segment with reversed objects. What is this method supposed to return?

---

## [Alternative menuName for plug-in](https://forum.glyphsapp.com/t/alternative-menuname-for-plug-in/35367)

<div class="topic-metadata">

**Author:** [@peggo](https://forum.glyphsapp.com/u/peggo)\
**Replies:** 3\
**Last updated:** [October 21, 2025, 7:38pm UTC](https://forum.glyphsapp.com/t/alternative-menuname-for-plug-in/35367 "2025-10-21T19:38:07Z")

</div>

By developing a Multiple Master font family, I needed so many times to duplicate nodes but in all Masters simultaneously. Few days ago, I discover that “Duplicate Nodes” plugin actually allow to do this, but the functio…

---

## [GSInstance.generate() return type documentation](https://forum.glyphsapp.com/t/gsinstance-generate-return-type-documentation/35350)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 1\
**Last updated:** [October 17, 2025, 1:57am UTC](https://forum.glyphsapp.com/t/gsinstance-generate-return-type-documentation/35350 "2025-10-17T01:57:57Z")

</div>

I see that in the Python API docu, the return type for GSInstance.generate() is given as bool/list. However, The return type seems to be (at least now) bool/str: True if successful, str if error (only the first error is …

---

## [SMUFL scripting: generating json file](https://forum.glyphsapp.com/t/smufl-scripting-generating-json-file/15048)

<div class="topic-metadata">

**Author:** [@NorFonts](https://forum.glyphsapp.com/u/NorFonts)\
**Replies:** 7\
**Last updated:** [October 16, 2025, 8:13am UTC](https://forum.glyphsapp.com/t/smufl-scripting-generating-json-file/15048 "2025-10-16T08:13:41Z")

</div>

Hi, I’d like to make a SMUFL music font for my music notation software, so I found this link that describes the process for Glyphs app users: But the generate\_font\_metadata.py seems not to work at all, even I could …

---

## [Fontbakery FAIL not solved](https://forum.glyphsapp.com/t/fontbakery-fail-not-solved/35342)

<div class="topic-metadata">

**Author:** [@hoops](https://forum.glyphsapp.com/u/hoops)\
**Replies:** 17\
**Last updated:** [October 15, 2025, 4:12pm UTC](https://forum.glyphsapp.com/t/fontbakery-fail-not-solved/35342 "2025-10-15T16:12:14Z")

</div>

Hello there, I’m checking the correctness of my variable fonts, and the Adobe check in FontBakery keeps reporting a fail: Check correctness of STAT table strings The following AxisValue entries in the STAT table shoul…

---

## [Do not rename glyphs when reading UFO from disk](https://forum.glyphsapp.com/t/do-not-rename-glyphs-when-reading-ufo-from-disk/35314)

<div class="topic-metadata">

**Author:** [@boom](https://forum.glyphsapp.com/u/boom)\
**Replies:** 3\
**Last updated:** [October 10, 2025, 8:46am UTC](https://forum.glyphsapp.com/t/do-not-rename-glyphs-when-reading-ufo-from-disk/35314 "2025-10-10T08:46:26Z")

</div>

In my workflow, I am relying on a script which reads UFOs and opens them in GlyphsApp. I am using code like sf = Glyphs.open(ufo\_path, showInterface=False) Unfortunately, after the current 3.4 update, the glyphs withi…

---

## [GSPath.insertNode\_atIndex\_() disregards inserted node type](https://forum.glyphsapp.com/t/gspath-insertnode-atindex-disregards-inserted-node-type/35297)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 3\
**Last updated:** [October 4, 2025, 9:58pm UTC](https://forum.glyphsapp.com/t/gspath-insertnode-atindex-disregards-inserted-node-type/35297 "2025-10-04T21:58:32Z")

</div>

Hello, I am finding that using GSPath.insertNode\_atIndex\_() inserts an offcurve node, despite me specifying that the inserted node is of type CURVE or LINE. Is this intentional? Do I have to use GSPath.nodes.insert(inde…

---

## [How to use GSPath.removeNodeAtIndex\_() correctly](https://forum.glyphsapp.com/t/how-to-use-gspath-removenodeatindex-correctly/35295)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 1\
**Last updated:** [October 4, 2025, 9:57pm UTC](https://forum.glyphsapp.com/t/how-to-use-gspath-removenodeatindex-correctly/35295 "2025-10-04T21:57:15Z")

</div>

Hello, I have a question regarding GSPath.removeNodeAtIndex\_(). I am trying to use the method in order to remove duplicate nodes like this: However, when I run the method, the following happens: Any reason the of…

---

## [Getting the length of lines in edit view?](https://forum.glyphsapp.com/t/getting-the-length-of-lines-in-edit-view/35287)

<div class="topic-metadata">

**Author:** [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Replies:** 1\
**Last updated:** [October 2, 2025, 2:59pm UTC](https://forum.glyphsapp.com/t/getting-the-length-of-lines-in-edit-view/35287 "2025-10-02T14:59:51Z")

</div>

Is there an easy way to ask Glyphs for the width of each line of the edit view? Or do I have to add the glyph widths (and kerning) up myself? I have to compare different versions of glyphs and would like to show the rel…

---

## [Import kerning by classes fea by script](https://forum.glyphsapp.com/t/import-kerning-by-classes-fea-by-script/35167)

<div class="topic-metadata">

**Author:** [@aminabedi68](https://forum.glyphsapp.com/u/aminabedi68)\
**Replies:** 7\
**Last updated:** [September 25, 2025, 5:32am UTC](https://forum.glyphsapp.com/t/import-kerning-by-classes-fea-by-script/35167 "2025-09-25T05:32:42Z")

</div>

Hi i was trying to find a universal solution to import kerning by classes from fontforge to Glyphs app using python script. i found @mekkablue ‘s script named “Import Kerning from .fea file“ and change it a bit to match…

---

## [macOS Tahoe plugin manager bug](https://forum.glyphsapp.com/t/macos-tahoe-plugin-manager-bug/35172)

<div class="topic-metadata">

**Author:** [@Umberto](https://forum.glyphsapp.com/u/Umberto)\
**Replies:** 10\
**Last updated:** [September 24, 2025, 4:49pm UTC](https://forum.glyphsapp.com/t/macos-tahoe-plugin-manager-bug/35172 "2025-09-24T16:49:35Z")

</div>

After installing macOS Tahoe, I’m experiencing a very debilitating issue with the plugin manager. In the stable version of Glyphs 3.3.1, once the plugin manager is opened, the “Scripts” and “Modules” panels are completel…

---

## [Time tracking/logging](https://forum.glyphsapp.com/t/time-tracking-logging/31998)

<div class="topic-metadata">

**Author:** [@gor.jious](https://forum.glyphsapp.com/u/gor.jious)\
**Replies:** 6\
**Last updated:** [September 22, 2025, 11:59am UTC](https://forum.glyphsapp.com/t/time-tracking-logging/31998 "2025-09-22T11:59:20Z")

</div>

Wondering if anyone has figured out a plugin/script for automatically tracking how long a user spends in a Glyphs file on a per-glyph/per-master basis? I’ve started trying to put together a script that is periodically r…

---

## [Justification in Glyphs](https://forum.glyphsapp.com/t/justification-in-glyphs/35134)

<div class="topic-metadata">

**Author:** [@Letteraetc](https://forum.glyphsapp.com/u/Letteraetc)\
**Replies:** 3\
**Last updated:** [September 12, 2025, 9:00am UTC](https://forum.glyphsapp.com/t/justification-in-glyphs/35134 "2025-09-12T09:00:05Z")

</div>

Hi, Is there a plugin/script/route to view the font with other settings than left and right? Maybe a button/dropdown in the lower part of the Glyphs Window to view sample text with centered setting. Best, Carollina

---

## [Menu entries keep multiplying](https://forum.glyphsapp.com/t/menu-entries-keep-multiplying/35095)

<div class="topic-metadata">

**Author:** [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Replies:** 1\
**Last updated:** [September 8, 2025, 9:56pm UTC](https://forum.glyphsapp.com/t/menu-entries-keep-multiplying/35095 "2025-09-08T21:56:24Z")

</div>

I noticed that when I open/close many files, this “Export Constraints” menu entry keeps getting added repeatedly. This is the code that adds it (in a SelectTool subclass), am I doing anything wrong? Is the start meth…

---

## [Opening glyphs file without window](https://forum.glyphsapp.com/t/opening-glyphs-file-without-window/35018)

<div class="topic-metadata">

**Author:** [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Replies:** 3\
**Last updated:** [September 5, 2025, 6:05pm UTC](https://forum.glyphsapp.com/t/opening-glyphs-file-without-window/35018 "2025-09-05T18:05:19Z")

</div>

I need to process a folder structure full of glyphs files. I don’t need to see the files in the app. They will be opened, processed, saved, and closed again. The option in the docs (Glyphs.open(… showInterface=False)) d…

---

## [Expand outline with a script only for unclosed paths](https://forum.glyphsapp.com/t/expand-outline-with-a-script-only-for-unclosed-paths/29415)

<div class="topic-metadata">

**Author:** [@michaelrafailyk](https://forum.glyphsapp.com/u/michaelrafailyk)\
**Replies:** 12\
**Last updated:** [August 27, 2025, 3:05pm UTC](https://forum.glyphsapp.com/t/expand-outline-with-a-script-only-for-unclosed-paths/29415 "2025-08-27T15:05:57Z")

</div>

Hi. I have a glyph with a mixed paths types – an already closed paths that I don’t want to touch, and unclosed paths with a stroke width which I want to expand. The design is pretty complicated and there are a lot of pat…

---

## [JSON extraction for macro view](https://forum.glyphsapp.com/t/json-extraction-for-macro-view/30256)

<div class="topic-metadata">

**Author:** [@MadsWildgaard](https://forum.glyphsapp.com/u/MadsWildgaard)\
**Replies:** 11\
**Last updated:** [August 27, 2025, 2:08am UTC](https://forum.glyphsapp.com/t/json-extraction-for-macro-view/30256 "2025-08-27T02:08:13Z")

</div>

Hi all Earlier on i used a script for extracting JSON data into the macro view. I need something along these lines; \[{“name”: “A”, “unicode”: “0041”}, and on and on we go. Normally I’m very savvy at finding these things…

---

## [How to set the intermediate or alternate layer information programmatically](https://forum.glyphsapp.com/t/how-to-set-the-intermediate-or-alternate-layer-information-programmatically/19557)

<div class="topic-metadata">

**Author:** [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Replies:** 8\
**Last updated:** [August 21, 2025, 8:52pm UTC](https://forum.glyphsapp.com/t/how-to-set-the-intermediate-or-alternate-layer-information-programmatically/19557 "2025-08-21T20:52:37Z")

</div>

How do I set a layer to either a intermediate layer or alternate layer and how do I set those properties?

---

## [Append Current glyph name to Notes](https://forum.glyphsapp.com/t/append-current-glyph-name-to-notes/34602)

<div class="topic-metadata">

**Author:** [@moizngp](https://forum.glyphsapp.com/u/moizngp)\
**Replies:** 2\
**Last updated:** [August 21, 2025, 12:46pm UTC](https://forum.glyphsapp.com/t/append-current-glyph-name-to-notes/34602 "2025-08-21T12:46:48Z")

</div>

Hello, I’m trying to append currently opened glyph name to Notes tab in Font Info. I searched the forum and found this code to get the current glyph name. I’m unable to append the name to Notes in Font Info. Please h…

---

## [Change specific stroke colors](https://forum.glyphsapp.com/t/change-specific-stroke-colors/34597)

<div class="topic-metadata">

**Author:** [@michaelrafailyk](https://forum.glyphsapp.com/u/michaelrafailyk)\
**Replies:** 2\
**Last updated:** [August 20, 2025, 10:01am UTC](https://forum.glyphsapp.com/t/change-specific-stroke-colors/34597 "2025-08-20T10:01:10Z")

</div>

On the color layer, I have paths with red (#FF1950) and green strokes. I need to change all the red (only) strokes to blue. Here’s what I tried: from GlyphsApp.plugins import NSColor for layer in Glyphs.font.selectedLay…

---

## [How to get metrics displayed in EditView from a layer?](https://forum.glyphsapp.com/t/how-to-get-metrics-displayed-in-editview-from-a-layer/30201)

<div class="topic-metadata">

**Author:** [@HugoJ](https://forum.glyphsapp.com/u/HugoJ)\
**Replies:** 1\
**Last updated:** [May 27, 2024, 5:43pm UTC](https://forum.glyphsapp.com/t/how-to-get-metrics-displayed-in-editview-from-a-layer/30201 "2024-05-27T17:43:53Z")

</div>

There is method to return list of metric displayed for a GSGlyph ? For example for Glyph A something that return : Descender, CapHeight and Baseline ? I would like to check nodes close to alignment zones, but all zo…

---

## [Move node onto handle?](https://forum.glyphsapp.com/t/move-node-onto-handle/25420)

<div class="topic-metadata">

**Author:** [@AndrewC](https://forum.glyphsapp.com/u/AndrewC)\
**Replies:** 5\
**Last updated:** [August 19, 2025, 2:45am UTC](https://forum.glyphsapp.com/t/move-node-onto-handle/25420 "2025-08-19T02:45:10Z")

</div>

In a variable font, I’m trying to move a collection of single-handle nodes such that the nodes sit on top of their handles (handles then having zero length) at a certain axis value. Has anyone had scripting experience wi…

---

## [Order to add nodes?](https://forum.glyphsapp.com/t/order-to-add-nodes/34555)

<div class="topic-metadata">

**Author:** [@Dative](https://forum.glyphsapp.com/u/Dative)\
**Replies:** 2\
**Last updated:** [August 18, 2025, 9:41am UTC](https://forum.glyphsapp.com/t/order-to-add-nodes/34555 "2025-08-18T09:41:28Z")

</div>

I’m trying to go from this terminal to this arrangement of nodes via the macro panel. Essentially adding a zero offcurve, a quarter offcurve, a midpoint curve, a three quarter offcurve and a final zero offcurve. …

---

## [Algorithm for spacing idea](https://forum.glyphsapp.com/t/algorithm-for-spacing-idea/33397)

<div class="topic-metadata">

**Author:** [@xyzajacf](https://forum.glyphsapp.com/u/xyzajacf)\
**Replies:** 15\
**Last updated:** [August 12, 2025, 9:01am UTC](https://forum.glyphsapp.com/t/algorithm-for-spacing-idea/33397 "2025-08-12T09:01:05Z")

</div>

I’ve been thinking about developing an algorithm for calculating spacing and eventually kerning. The algorithm idea is based on two steps: Creating a blur effect layer around every letter (all directions) Calculating …

---

## [AttributeError of Filter offsetCurve](https://forum.glyphsapp.com/t/attributeerror-of-filter-offsetcurve/14605)

<div class="topic-metadata">

**Author:** [@Steven](https://forum.glyphsapp.com/u/Steven)\
**Replies:** 13\
**Last updated:** [August 7, 2025, 10:37am UTC](https://forum.glyphsapp.com/t/attributeerror-of-filter-offsetcurve/14605 "2025-08-07T10:37:45Z")

</div>

def filter(name): for filter in Glyphs.filters: if filter.\_\_class\_\_.\_\_name\_\_ == name: return filter offsetCurveFilter = filter('GlyphsFilterOffsetCurve') mylayer = Glyphs.f…

---

## [Using uv to manage Python installations?](https://forum.glyphsapp.com/t/using-uv-to-manage-python-installations/34380)

<div class="topic-metadata">

**Author:** [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Replies:** 1\
**Last updated:** [August 5, 2025, 2:52pm UTC](https://forum.glyphsapp.com/t/using-uv-to-manage-python-installations/34380 "2025-08-05T14:52:32Z")

</div>

I recently became aware of uv, a tool to manage Python installations and also a much faster replacement for pip, among other things. Could Glyphs also recognize Python interpreters installed by uv? They are installed in…

---

## [Documentation is missing](https://forum.glyphsapp.com/t/documentation-is-missing/34075)

<div class="topic-metadata">

**Author:** [@roberto\_arista](https://forum.glyphsapp.com/u/roberto_arista)\
**Replies:** 30\
**Last updated:** [July 22, 2025, 1:42pm UTC](https://forum.glyphsapp.com/t/documentation-is-missing/34075 "2025-07-22T13:42:49Z")

</div>

Also, often the list at the top of an object is not aligned with the detailed content that comes afterward. For example GSFont.characterForGlyph(). It’s worth mentioning that there are several TODOs spread around the…

---

## [How to duplicate a master with Python?](https://forum.glyphsapp.com/t/how-to-duplicate-a-master-with-python/34135)

<div class="topic-metadata">

**Author:** [@20goto10](https://forum.glyphsapp.com/u/20goto10)\
**Replies:** 6\
**Last updated:** [July 21, 2025, 6:56pm UTC](https://forum.glyphsapp.com/t/how-to-duplicate-a-master-with-python/34135 "2025-07-21T18:56:30Z")

</div>

What is the scripting equivalent of “Duplicate Selected” in the app Masters pane “+” menu? When I access font.masters\[0\], there is no duplicate() function and copy() gets me a master with no layers. Thanks!

---

## [Coding alternatives: Is it possible to make a lowercase.init follow a uppercase letter?](https://forum.glyphsapp.com/t/coding-alternatives-is-it-possible-to-make-a-lowercase-init-follow-a-uppercase-letter/5145)

<div class="topic-metadata">

**Author:** [@capper](https://forum.glyphsapp.com/u/capper)\
**Replies:** 10\
**Last updated:** [July 13, 2025, 6:26pm UTC](https://forum.glyphsapp.com/t/coding-alternatives-is-it-possible-to-make-a-lowercase-init-follow-a-uppercase-letter/5145 "2025-07-13T18:26:36Z")

</div>

Heyo! I am drawing a script font at the moment. How can I make the initial forms of the lowercase letters follow the uppercase letters? Now its just the usual letters that follow after the uppercase letters. Than…

[Previous page](https://forum.glyphsapp.com/c/scripting/6.md?page=1)

[Next page](https://forum.glyphsapp.com/c/scripting/6.md?page=3)
