Is there a way to copy or change the type of instruments in the FMOD Studio scripting API?

Hi,

I’m trying to write a script that converts every SingleSound instance in an event into a ProgrammerSound that uses the SingleSound’s audioFIle as a placeholder. So far I can select every SingleSound in an event, but I’m a littl a little unsure how to convert, or if it’s possible.

Do I have to create a new ProgrammerInstrument and copy over all the properties of the SingleSound? Is there any kind of property cloning function? I’d to keep all the probability, automation, trigger conditions, etc. The only difference I want is for it to be a ProgrammerSound.

Thanks,
Rhys