Thanks! I’ve been trying to implement this but without success yet.
I don’t know why myLayer.makeComponents() works only for one master.
This is what Im doing in the button callback function. What im doing wrong?
def button2Callback1(self, sender):
seleccion = self.w.myList2.getSelection()
for i in seleccion:
name = self.w.myList2[i]
for layer in font1.glyphs[name].layers:
Im following your suggestion for my other question, creating a function for building the list but I don’t know how to reuse it after clicking the button. I need to improve my python skills. back to Codecademy!! haha.
Thanks for all the help you gave me.
I have a question related to the myLayer.makeComponents() function.
When the glyph is added to the font and later I run the function of makeComponentes, it only works for one layer because until I enter to the added glyph or switch masters, the layers for other masters are not created. There is a way to “enter” the glyph with the code.