How to get the selected Anchors[solved]

Hi,
I’m trying to get the Selected Anchors in the current Layer to Set a new position for them

Glyphs.font.selectedLayers[0].anchors

Thanks

I Solved it finally

from Foundation import NSPoint
#print(Glyphs.font.selectedLayers[0].anchors[0].selected)
for x in Glyphs.font.selectedLayers[0].anchors:
	if x.selected:
		x.position = NSPoint(30,20)
	print(x.selected)
1 Like