I am not well verse with scripts and I have been struggling with the method to create components.
I would like to create a component of a specific glyphs in the background layer of other specific glyph. I am able to create a list of tuples in order to use a loop function like ‘for’.
My problem is creating the component. I have read the Glyphs API and this is how looks my script
iMatraList = [
for iMatraCouple in iMatraList:
…matraBase, matraMask = iMatraCouple
…for layer in font.glyphs[matraBase].layers:
I know that “layer.background.component(matraMask)” is not working, but somebody has a hit of how this could works? Thanks