@d-healey
Worked!
Great, thanks David.
Answer:
const var ScriptnodeSynthesiser1 = Synth.getAudioSampleProcessor("Scriptnode Synthesiser1");
inline function onButton1Control(component, value)
{
if (!value)
return;
FileSystem.browse(FileSystem.getFolder(FileSystem.Downloads), false, "*.wav", function(file)
{
if (!isDefined(file) || !file.isFile())
return;
ScriptnodeSynthesiser1.setFile(file.toString(file.FullPath));
});
};
Content.getComponent("Button1").setControlCallback(onButton1Control);