You’ll have to be a bit more precise than that, I’m afraid. Otherwise I can’t write something that will work for you. Can you maybe post a screenshot of the setup you want to achieve?
Do you want the script to set a certain value, or do you need a UI that allows you to control things? Do you want it to apply to muliple glyphs at once?