An interesting script for modulating pitch.
This script does not behave like a panel script (it does not run in a new scope on each call).
The selection of groups and notes is only performed on the first launch of SynthV2 (or the rescan script). Therefore, the user cannot select a different group of notes.
See the chapter : Responding to Editor Events
There is an example from Dreamtonics, see:
As an example, we’d like to share a proof-of-concept script that emulates the Manual Mode feature from the first version of Synthesizer V Studio
Or my own evolution: Manual mode 2