Add Intermediate Layer via script not working

I have a simple script that creates a new intermediate layer
– Copies a layer
– Changes the name to “{200}”
– activates [“isSpecialLayer”] = True

But when I click on the layer is not an Intermediate layer.

addIntermediateLayer.txt (860 Bytes)

Any ideas how to solve this?
Thanks

In glyphs 3, the name is not relevant more. Try making a new intermediate layer manually and then do

print(Layer.attributes)

Those IDs are from font.axes axisId

1 Like

Have a look at this thread for some examples Change several values of a several brace layer - #5 by AdrienMidzic

Thank you Georg! I did a search prior to post, but I didn’t find that thread. Sorry and thanks! :slight_smile: