Sorry, my question was unclear, I edited it. If I change the name of the layer in the script to the layer that I know is in the glyph, it’s not printed. From the first script I know that it should work. So I wonder if the special layer name that I enter is wrong. I’m doing this to check how I can access that layer as a basis for a later script.
Can I ask what exactly you are trying to accomplish with your script? It’s generally not a good idea to use names as references. What exactly are you trying to achieve?
On yet another side note, the approach still works for me, a special layer name like {400, 100} is successfully recognised when I check against it.
OMG, finally! There is a tab in the special layers’ names
Thank you both! @SCarewe I was writing a long-winded reply how it still doesn’t work, but the culprint was the tab. I just have a file with a bunch of special layers in the wrong coordinates. Not all are wrong and not all glyphs have them. So I would rename or delete the wrong ones. I always print before something baaad happens, hence this code.
Or can not, by the way? If there was a random tab in the layer name, it’s probably not a special layer in the first place, because names don’t define axes anymore, do they