I am trying to get a simple concept going - trigger a clyphx clip that creates a new MIDI channel, loads an Instrument Rack within and swaps the rack with a preset that I've created.
So I've got  addmidi ; loaddev "Instrument Rack" ; swap "PresetName.adg" . Addmidi works, so does loaddev. Swapping fails though. When I remove "addmidi" as the first action, with the free ClyphX it works flawlessly, while with ClyphXPro it surprisingly loads and swaps the device, and after that loads the default instance again.
There might be an easier way of doing this that I'm missing with ClyphX, so any help would be deeply appreciated.
Tested on Ableton Live 10.1.6/10.1.7
p.s. this concept has worked on Live 9 and the free version of ClyphX flawlessly. I also notice that when using free ClyphX and use the "loaddev->swap" actions a few times, and just then I add "addmidi" to the beginning, it works a few times before it stops again, I'm guessing this is on Live's API end?
Welcome to the forum. First, do you have ClyphX selected as a control surface in addition to ClyphX Pro? If so, you'll want to deselect ClyphX as having it selected could result in odd behavior.
With ClyphX Pro, you'd want to use WAIT actions in between these actions to allow time for each step to complete. For example:  addmidi ; wait 2 ; loaddev "Instrument Rack" ; wait 2 ; swap "PresetName.adg"