Tosche / Glyphs-Scripts

Tosche's Python scripts for glyphs
Apache License 2.0
77 stars 24 forks source link

Duplicate Glyph with Component error #30

Open synthview opened 6 months ago

synthview commented 6 months ago

Hello, Duplicate Glyph with Component.py gives me this error on Glyphs 3.2 (3245).

I was trying to apply it to the glyphs: copyright registered published

Traceback (most recent call last): File "Duplicate Glyph with Component.py", line 39 newSuffix = findSuffix( newGlyphNameBase ) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "Duplicate Glyph with Component.py", line 27, in findSuffix if f.glyphs[ glyphName + suffix ] == None:


TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Tosche commented 6 months ago

Thanks for the report. I've pushed the update that hopefully fixes the issue.

synthview commented 5 months ago

no error in macro window but nothing happens

Tosche commented 5 months ago

Updated the script. Now it should be working (better).

synthview commented 5 months ago

it works now, thanks!