How to get node for selected node names in all file


my first scripting trials:

How can I print/get node data for each node with name ‘MyNode01’ in whole Glyphs file? This prints only this layer I guess. But any other definition I tried with my limited fantasy failed.

allNodes = Glyphs.font.selectedLayers[0].paths[0].nodes

for node in allNodes:
	if == "MyNode01":
		print node

If you want to check all glyphs and all layers:

You just need to add a loop over all glyphs of your font:
    Then loop over all layers of each those glyphs:
        Then loop over all paths of each those layers:
1 Like