Glyphs-Scripts icon indicating copy to clipboard operation
Glyphs-Scripts copied to clipboard

Duplicate Glyph with Component error

Open synthview opened this issue 11 months ago • 4 comments

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'

synthview avatar Mar 07 '24 21:03 synthview

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

Tosche avatar Mar 09 '24 15:03 Tosche

no error in macro window but nothing happens

synthview avatar Mar 13 '24 17:03 synthview

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

Tosche avatar Mar 17 '24 22:03 Tosche

it works now, thanks!

synthview avatar Mar 18 '24 16:03 synthview