Merging Specific Master Layers

Hi Rainer, I’m trying to use merge two masters together of a multi master file.

At first I tried the the Copy Layer to Layer to merge two masters but when I click it, nothing happens. I’m sure it’s something I’m doing wrong but just trying to figure it out!

I can’t use the Merge all masters because I only need to merge 2 of the 10 or so masters I have.

Then there must be an error message in the macro window.

Hmmm yes you are right. This is the error:

Start
Traceback (most recent call last):
  File "Copy Layer to Layer.py", line 276, in <module>
    CopyLayerToLayer()
  File "Copy Layer to Layer.py", line 45, in __init__
    self.w.masterSource = vanilla.PopUpButton((120, 12+20, -15, 17), self.GetMasterNames("source"), sizeStyle='small', callback=self.MasterChangeCallback)
  File "Copy Layer to Layer.py", line 117, in GetMasterNames
    thisFont = Glyphs.fonts[fontIndex]
  File "GlyphsApp/GlyphsApp/__init__.py", line 1394, in __getitem__
KeyError
End

Which version of the app are you running?

It’s up-to-date. I was able to get it to work by copying the code from github and pasting it into the macro panel.

Maybe you need to update the script, too? If the version from the website works in the macro window, it should also work as a script.

I was thinking that but it doesn’t say that it needs an update. I will try anyway. Thanks.