I assume it has something to do with the on listener callback but I couldn't find enough info in the manual to figure out how to script it so that when I change tempo in my DAW the sequencer also changes its tempo. I appreciate any help :)
You might want to take a look at the arpeggiator factory scripts that come with Kontakt. They could be really helpful!