Setting anchors with Tokens (or similar)

Is there a way to set the x/y value of an anchor with, say, a Number Value Token? I’ve got a fixed y for a subset of glyphs and was hoping to use some sort of variable to define the y value for all of them. Since I’ll likely need to adjust this value once I start testing glyph combos, it’d be nice to be able to simply change once and have them all update together quickly.

On a related note, can I use expressions in the x/y values for anchors? For this, I would like to have a second anchor that’s shifted by a fixed amount across a large number of glyphs. Again, this value will need to be adjusted, so being able to do something like y=1215+SomeVariable would be really helpful.

If either of these options are possible what is the syntax?

EDIT: I should clarify – I would prefer to do this in the Edit window, not through feature code (although if that’s the only way that would be useful to know, too).

That is not possible.

Darn. I’ll look into scripting the value changes when it comes up. Thanks for the reply!

It’s a simple task for scripting, something like:

glyphs = "A B C a b c"
for glyph_name in glyphs.split():
	glyph = Font.glyphs[glyph_name]
	for layer in glyph.layers:
		for anchor in layer.anchors:
			if anchor.name == "top":
				anchor.y = 500