# Scripting

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

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

**Page:** 2

---

## [Substitute one glyph with another if space on both sides?](https://forum.glyphsapp.com/t/substitute-one-glyph-with-another-if-space-on-both-sides/414)

<div class="topic-metadata">

**Author:** [@Musgrapha](https://forum.glyphsapp.com/u/Musgrapha)\
**Replies:** 18\
**Last updated:** [March 26, 2026, 6:41pm UTC](https://forum.glyphsapp.com/t/substitute-one-glyph-with-another-if-space-on-both-sides/414 "2026-03-26T18:41:54Z")

</div>

I'm creating an all-caps comics font, where you usually want to substitute the "I" noun with a crossbar-I. I don't want the font to substitute all I's (for example, within any word) with a crossbar-I, only the ones that …

---

## [Zooming to Actual Layer](https://forum.glyphsapp.com/t/zooming-to-actual-layer/36032)

<div class="topic-metadata">

**Author:** [@LaicType](https://forum.glyphsapp.com/u/LaicType)\
**Replies:** 5\
**Last updated:** [March 26, 2026, 1:45pm UTC](https://forum.glyphsapp.com/t/zooming-to-actual-layer/36032 "2026-03-26T13:45:02Z")

</div>

Hello, trying to improve my workflow in Glyphs with a two-step predefined zooming – while maintaining the possibility to zoom in and zoom out small steps with “cmd plus” and “cmd minus’”. Now, tweaking Wei Huang’s Zoom…

---

## [Excluding steps from the undo history](https://forum.glyphsapp.com/t/excluding-steps-from-the-undo-history/35973)

<div class="topic-metadata">

**Author:** [@alexs](https://forum.glyphsapp.com/u/alexs)\
**Replies:** 5\
**Last updated:** [March 11, 2026, 4:06pm UTC](https://forum.glyphsapp.com/t/excluding-steps-from-the-undo-history/35973 "2026-03-11T16:06:25Z")

</div>

Hi! Is it possible to exclude certain actions from the undo history? For example, if you to move some nodes with python, but don’t want the undo manager to record it. I see there’s beginUndo() / endUndo() and beginChange…

---

## [How to use file path for icon in export plugin?](https://forum.glyphsapp.com/t/how-to-use-file-path-for-icon-in-export-plugin/33575)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 14\
**Last updated:** [March 1, 2026, 10:35pm UTC](https://forum.glyphsapp.com/t/how-to-use-file-path-for-icon-in-export-plugin/33575 "2026-03-01T22:35:35Z")

</div>

Hello, I am writing an export plugin that I would like to customise easily. This includes changing the icon used. The icon file name is set at self.icon in the settings method of the principal plugin class. However, I ca…

---

## [What is activeLayer?](https://forum.glyphsapp.com/t/what-is-activelayer/35910)

<div class="topic-metadata">

**Author:** [@Tosche](https://forum.glyphsapp.com/u/Tosche)\
**Replies:** 10\
**Last updated:** [February 21, 2026, 6:06pm UTC](https://forum.glyphsapp.com/t/what-is-activelayer/35910 "2026-02-21T18:06:22Z")

</div>

It seems I check active layers reliably. When I run the test code below, I get True for way more than one layer. Is it happening to other people too? Or am I misunderstanding the meaning of active layer? f = Glyphs.font …

---

## [New Plugin Announcement: Layer Whale](https://forum.glyphsapp.com/t/new-plugin-announcement-layer-whale/10111)

<div class="topic-metadata">

**Author:** [@aiaf](https://forum.glyphsapp.com/u/aiaf)\
**Replies:** 5\
**Last updated:** [February 20, 2026, 5:20pm UTC](https://forum.glyphsapp.com/t/new-plugin-announcement-layer-whale/10111 "2026-02-20T17:20:47Z")

</div>

Download here Download Layer Whale for Glyphs 2 Layer Whale makes it easy to record and playback the entire edit history of a layer. It streamlines and declutters a Glyphs workflow that a lot of us are familiar with. T…

---

## [Copying brace (intermediate master) layers in python](https://forum.glyphsapp.com/t/copying-brace-intermediate-master-layers-in-python/35902)

<div class="topic-metadata">

**Author:** [@voxel486](https://forum.glyphsapp.com/u/voxel486)\
**Replies:** 0\
**Last updated:** [February 17, 2026, 11:02pm UTC](https://forum.glyphsapp.com/t/copying-brace-intermediate-master-layers-in-python/35902 "2026-02-17T23:02:25Z")

</div>

Hi! I’m using python, deepcopy, and glyphsLib. The purpose to duplicate is to then scale all of these layers as a post-process step for new masters.I’m struggling to duplicate the masters with my intermediate masters in …

---

## ["Rename kerning group" method?](https://forum.glyphsapp.com/t/rename-kerning-group-method/35901)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 3\
**Last updated:** [February 17, 2026, 5:23pm UTC](https://forum.glyphsapp.com/t/rename-kerning-group-method/35901 "2026-02-17T17:23:19Z")

</div>

Is there a method that does this? Specifically, the “Rename” option. Rename the kerning group in the kerning dict, and any associated kerning groups in glyphs.

---

## [How to install a package inside Glyphs App Python](https://forum.glyphsapp.com/t/how-to-install-a-package-inside-glyphs-app-python/19619)

<div class="topic-metadata">

**Author:** [@oneweioranother](https://forum.glyphsapp.com/u/oneweioranother)\
**Replies:** 9\
**Last updated:** [February 16, 2026, 12:46pm UTC](https://forum.glyphsapp.com/t/how-to-install-a-package-inside-glyphs-app-python/19619 "2026-02-16T12:46:43Z")

</div>

I have a script to grab a daily featured wikipedia article as text. But the version of the package it depends on to parse the feed (feedparser) no longer works in G3. When I installed the latest version of it and simpl…

---

## [Custom code in Opentype features and classes](https://forum.glyphsapp.com/t/custom-code-in-opentype-features-and-classes/33797)

<div class="topic-metadata">

**Author:** [@bagsn](https://forum.glyphsapp.com/u/bagsn)\
**Replies:** 15\
**Last updated:** [February 11, 2026, 9:56pm UTC](https://forum.glyphsapp.com/t/custom-code-in-opentype-features-and-classes/33797 "2026-02-11T21:56:31Z")

</div>

It would be great to have the ability to write some python (or link a python file) from within a class or feature for this kind of situation (the python being built on build). I usually feel like tokens are too limiting…

---

## [Layer.bezierPath excludes open paths](https://forum.glyphsapp.com/t/layer-bezierpath-excludes-open-paths/35848)

<div class="topic-metadata">

**Author:** [@Tosche](https://forum.glyphsapp.com/u/Tosche)\
**Replies:** 2\
**Last updated:** [February 4, 2026, 11:07am UTC](https://forum.glyphsapp.com/t/layer-bezierpath-excludes-open-paths/35848 "2026-02-04T11:07:44Z")

</div>

When I want to do layer.bezierPath.stroke(), only the closed paths are painted. Printing the bezierpath also returns only the closed ones. I am not sure if this is new or only happening in my environment, or even expecte…

---

## [Different parens before and after lowercase and uppercase](https://forum.glyphsapp.com/t/different-parens-before-and-after-lowercase-and-uppercase/5731)

<div class="topic-metadata">

**Author:** [@robertkarpati](https://forum.glyphsapp.com/u/robertkarpati)\
**Replies:** 14\
**Last updated:** [February 1, 2026, 7:31pm UTC](https://forum.glyphsapp.com/t/different-parens-before-and-after-lowercase-and-uppercase/5731 "2026-02-01T19:31:56Z")

</div>

Hi, I designed two different parenleft and parenright which should appear before and after lowercase and uppercase words (excepting: d, f, l). After lowercase it is optically centered to the x high. Now these are altern…

---

## [Setting \`layer.smartComponentPoleMapping\` does nothing](https://forum.glyphsapp.com/t/setting-layer-smartcomponentpolemapping-does-nothing/35833)

<div class="topic-metadata">

**Author:** [@khaled](https://forum.glyphsapp.com/u/khaled)\
**Replies:** 1\
**Last updated:** [February 1, 2026, 9:59am UTC](https://forum.glyphsapp.com/t/setting-layer-smartcomponentpolemapping-does-nothing/35833 "2026-02-01T09:59:00Z")

</div>

I have some code that creates smart glyphs. Setting layer.smartComponentPoleMapping does not seem to work, the checkboxes in the dialog remain unchceked. I had to use the low level layer.setPartSelection\_(): layer.setPa…

---

## [Emulate the node interaction behaviour from the hinting plugin](https://forum.glyphsapp.com/t/emulate-the-node-interaction-behaviour-from-the-hinting-plugin/35713)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 14\
**Last updated:** [January 26, 2026, 9:30pm UTC](https://forum.glyphsapp.com/t/emulate-the-node-interaction-behaviour-from-the-hinting-plugin/35713 "2026-01-26T21:30:09Z")

</div>

Hello, I would like to emulate the behaviour that the hinting plugin uses: Nodes are selectable, but not editable, and this is reflected in the UI. Is there an easy way to achieve this in a reporter plugin? Thanks!

---

## [Symmetrify Script not working in Glyphs 3.2.3 (3260)](https://forum.glyphsapp.com/t/symmetrify-script-not-working-in-glyphs-3-2-3-3260/30290)

<div class="topic-metadata">

**Author:** [@anna.anna](https://forum.glyphsapp.com/u/anna.anna)\
**Replies:** 7\
**Last updated:** [January 20, 2026, 3:08pm UTC](https://forum.glyphsapp.com/t/symmetrify-script-not-working-in-glyphs-3-2-3-3260/30290 "2026-01-20T15:08:51Z")

</div>

Hi! Since I updated Glyphs to the new version the Simmetrify script stopped working. I’ve looked into the Macro panel and this is the error I’m getting. Is there a way to solve this? Thank you!

---

## [Export Masters to Subfolders](https://forum.glyphsapp.com/t/export-masters-to-subfolders/32281)

<div class="topic-metadata">

**Author:** [@David\_w](https://forum.glyphsapp.com/u/David_w)\
**Replies:** 17\
**Last updated:** [January 12, 2026, 12:31pm UTC](https://forum.glyphsapp.com/t/export-masters-to-subfolders/32281 "2026-01-12T12:31:55Z")

</div>

I was looking for a script that could export my instances into separate folders. Let’s assume I have a Thin, Regular, and Bold instance. And I want to export them to a structure like this: FontName/Weight/\*otf,\*ttf,\*wof…

---

## [Macro Error when running Export InDesign Tagged Text script](https://forum.glyphsapp.com/t/macro-error-when-running-export-indesign-tagged-text-script/35724)

<div class="topic-metadata">

**Author:** [@jessemlahn](https://forum.glyphsapp.com/u/jessemlahn)\
**Replies:** 4\
**Last updated:** [January 8, 2026, 1:48pm UTC](https://forum.glyphsapp.com/t/macro-error-when-running-export-indesign-tagged-text-script/35724 "2026-01-08T13:48:37Z")

</div>

I have recently been using Toshi Omagari’s script to export a full set of glyphs in a font. It’s been great. But today it started giving me this error and I have no idea how to address the underlying issue. Does anyone k…

---

## [Alternative mark on custom glyphs?](https://forum.glyphsapp.com/t/alternative-mark-on-custom-glyphs/35693)

<div class="topic-metadata">

**Author:** [@ManaLucine](https://forum.glyphsapp.com/u/ManaLucine)\
**Replies:** 6\
**Last updated:** [December 28, 2025, 2:09am UTC](https://forum.glyphsapp.com/t/alternative-mark-on-custom-glyphs/35693 "2025-12-28T02:09:01Z")

</div>

Hello! Is it possible to substitute marks with an alternative one in a custom ligature glyph like this: Thank you.

---

## [Working with interpolatedFont and Import Font](https://forum.glyphsapp.com/t/working-with-interpolatedfont-and-import-font/35650)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 2\
**Last updated:** [December 15, 2025, 7:22pm UTC](https://forum.glyphsapp.com/t/working-with-interpolatedfont-and-import-font/35650 "2025-12-15T19:22:20Z")

</div>

Hello, I am using GSInstance.interpolatedFont() for some processing upon export. Additionally, I have an “Import Font” parameter set, which imports some glyphs into my font. However, on export (generating from the insta…

---

## [Using Swift to write scripts/plugins for Glyphs](https://forum.glyphsapp.com/t/using-swift-to-write-scripts-plugins-for-glyphs/35632)

<div class="topic-metadata">

**Author:** [@dvclmn](https://forum.glyphsapp.com/u/dvclmn)\
**Replies:** 4\
**Last updated:** [December 15, 2025, 5:17am UTC](https://forum.glyphsapp.com/t/using-swift-to-write-scripts-plugins-for-glyphs/35632 "2025-12-15T05:17:16Z")

</div>

Thought I’d create a new topic, as this is a tangent from the original. Context; I’ve been working on my own Glyphs python stubs for better type hinting / autocomplete / having docs right in front of my face. My backgr…

---

## [Updating custom variable axis across each master from script](https://forum.glyphsapp.com/t/updating-custom-variable-axis-across-each-master-from-script/35643)

<div class="topic-metadata">

**Author:** [@20goto10](https://forum.glyphsapp.com/u/20goto10)\
**Replies:** 7\
**Last updated:** [December 12, 2025, 7:58am UTC](https://forum.glyphsapp.com/t/updating-custom-variable-axis-across-each-master-from-script/35643 "2025-12-12T07:58:37Z")

</div>

I have a variable font with one custom axis, with its own ID and name, which appears in all of the masters I have created. I can set this value differently for each master in the app UI info panel. How can I do this from…

---

## [Urgent: critical system error](https://forum.glyphsapp.com/t/urgent-critical-system-error/35516)

<div class="topic-metadata">

**Author:** [@HagiHigH](https://forum.glyphsapp.com/u/HagiHigH)\
**Replies:** 2\
**Last updated:** [November 17, 2025, 7:58pm UTC](https://forum.glyphsapp.com/t/urgent-critical-system-error/35516 "2025-11-17T19:58:17Z")

</div>

Hello Glyphs Team, I am a user of Glyphs 3 and require urgent technical support regarding a critical installation failure. When I click the ‘Install Python Runtime’ button under the Script menu, I receive the error mes…

---

## [How to set delta rounding settings of GSHint](https://forum.glyphsapp.com/t/how-to-set-delta-rounding-settings-of-gshint/35505)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 2\
**Last updated:** [November 14, 2025, 8:08am UTC](https://forum.glyphsapp.com/t/how-to-set-delta-rounding-settings-of-gshint/35505 "2025-11-14T08:08:04Z")

</div>

Hello, I am trying to figure out how to set these options: I have tried GSHint.setSettings\_(), to no avail.

---

## [Find and Replace Components doesn't work](https://forum.glyphsapp.com/t/find-and-replace-components-doesnt-work/28607)

<div class="topic-metadata">

**Author:** [@YejinWi](https://forum.glyphsapp.com/u/YejinWi)\
**Replies:** 11\
**Last updated:** [November 11, 2025, 10:33am UTC](https://forum.glyphsapp.com/t/find-and-replace-components-doesnt-work/28607 "2025-11-11T10:33:22Z")

</div>

mekkablue’s script Find and Replace Components doesn’t work. It worked three days ago. :smiling\_face\_with\_tear: The result in macro panel keep saying that it replaced 0 components, even though I correctly specified the …

---

## [Erode Filter as Custom Parameter](https://forum.glyphsapp.com/t/erode-filter-as-custom-parameter/35325)

<div class="topic-metadata">

**Author:** [@Jscruggs](https://forum.glyphsapp.com/u/Jscruggs)\
**Replies:** 5\
**Last updated:** [November 6, 2025, 5:09pm UTC](https://forum.glyphsapp.com/t/erode-filter-as-custom-parameter/35325 "2025-11-06T17:09:13Z")

</div>

I’d like to use the Erode filter as a custom parameter but when I copy the filter parameter and paste it into the custom parameters I get this: { customParameters = ( { name = Filter; value = “Erode; teeth:None;”; }…

---

## [.setXxxMetricsKey\_() cannot be applied in real-time](https://forum.glyphsapp.com/t/setxxxmetricskey-cannot-be-applied-in-real-time/35431)

<div class="topic-metadata">

**Author:** [@Real](https://forum.glyphsapp.com/u/Real)\
**Replies:** 9\
**Last updated:** [November 6, 2025, 12:38am UTC](https://forum.glyphsapp.com/t/setxxxmetricskey-cannot-be-applied-in-real-time/35431 "2025-11-06T00:38:21Z")

</div>

When I set the MetricsKey using Layer or Glyph, the data can’t be updated in real-time. Sometimes, a visual issue occurs, and I have to click the refresh button for it to take effect. Other times, the UI doesn’t update a…

---

## [Advice on using custom GSHints](https://forum.glyphsapp.com/t/advice-on-using-custom-gshints/35473)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 10:46am UTC](https://forum.glyphsapp.com/t/advice-on-using-custom-gshints/35473 "2025-11-05T10:46:20Z")

</div>

Hello, for a plugin, I would like to use hints and their very handy functions. Basically, I want to annotate nodes in a UI (which will include more or less copying the hinting interface – I wasn’t able to find it in Glyh…

---

## [Path time for intersection?](https://forum.glyphsapp.com/t/path-time-for-intersection/35413)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 7\
**Last updated:** [October 28, 2025, 11:48pm UTC](https://forum.glyphsapp.com/t/path-time-for-intersection/35413 "2025-10-28T23:48:48Z")

</div>

I would like to get the path time(s) for a segment at which it intersects with another segment. GSPathSegment.intersectionPoints\_() returns a list of points. Currently, I need to use a function that calculates (approxima…

---

## [GSPathSegment.bounds returns (0, 0)](https://forum.glyphsapp.com/t/gspathsegment-bounds-returns-0-0/35415)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 2\
**Last updated:** [October 28, 2025, 10:14am UTC](https://forum.glyphsapp.com/t/gspathsegment-bounds-returns-0-0/35415 "2025-10-28T10:14:13Z")

</div>

Hello, I am trying to get the bounds of a GSPathSegment. I am using the bounds() method. However, using a method to get the segment with a new time (even using t=1) makes the GSPathSegment return (0, 0) for the bounds. n…

---

## [Use Icon.glyphs instead of toolbarIconTemplate.pdf?](https://forum.glyphsapp.com/t/use-icon-glyphs-instead-of-toolbaricontemplate-pdf/35405)

<div class="topic-metadata">

**Author:** [@SCarewe](https://forum.glyphsapp.com/u/SCarewe)\
**Replies:** 2\
**Last updated:** [October 26, 2025, 9:40pm UTC](https://forum.glyphsapp.com/t/use-icon-glyphs-instead-of-toolbaricontemplate-pdf/35405 "2025-10-26T21:40:05Z")

</div>

Hello, while browsing the GlyphsSDK and specifically the SelectTool, I noticed that there is now a file called Icon.glyphs, which contains the icon. Is there some smart way of referencing this file instead of the PDF? Th…

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

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