Hi @Hargan, and welcome.
I’m using Performer. I have a Kontakt instance in a Rack and I can create a Binding which triggers on Song Load. The Binding can target Kontakt and within Kontakt it can set 511 different parameters. That is, Kontakt exposes 511 controls to Cantabile. Some of the 511 controls show up with readable labels. I’m using Session Horns Pro, so I can see things the scripts expose such as Threshold, Pan, Swing, etc. I think this will work for your custom script.
With Performer, you would create a Song List, place Kontakt in a Rack, and all of Kontakt’s samples would be loaded once when the Set List was loaded. After that, they would be shared across songs–no need to stop and load samples. Then, with an “On Song Load” binding, that would fire when the song was loaded and send control values to the script using the name the script exposes.
Does that help?