You can also have the script send midi messages to the internal “Local GP Port” to achieve a similar outcome (e.g. the widget would be midi learned to this message).
The use case seems interesting to me, could you elaborate a bit about your use case? What are you trying to achieve, some kind of variations in the Global Rackspace?
I was not getting the song part to reset at index 0 after a song change or so I thought. As it turns out, it was resetting in GP, but because I didn’t have my Ableton scenes correctly named to mimic the song parts, when I would switch songs it would play the last triggered Ableton Scene. This is because it couldn’t find a correct matching OSC address and as such, it would trigger the global playhead and Ableton would start playing the last active scene. Once I corrected the scene names to match my part names, all was working as expected.
Nevertheless, it’s always nice to learn that something can be done, even if doesn’t yet need to be done for my use.