Glyphs 3 mekkablue script Copy Layer to Layer gives Python errors

This script seems to fail if one of the target layers (not the current layer) contains components which are to be deleted.

Copy Layer to Layer Protocol:
- Deleting 1 paths in target layer
- Copying paths
- Deleting 1 components in target layer

⚠️ Script Error:

Traceback (most recent call last):
  File "Copy Layer to", line 311, in buttonCallback
  File "Copy Layer to", line 300, in buttonCallback
  File "Copy Layer to", line 223, in copyComponentsFromLayerToLayer
AttributeError: can't set attribute

It works as expected in Glyphs 2.

Cannot reproduce. What did you do before you got the error?
EDIT: I think I found the issue. Fixing it…
UPDATE: fixed, thanks for reporting!

1 Like