@ospfeigrp Managed to get it to load an external samplemap.xml when i tested the project again here is a basic snippet
HiseSnippet 1358.3oc0XssaabCDkqk2jH0zzlf7PenEXgPePBvPVJwwo.FEQ9ZfairErbCZQPa.8JJIBykbAIW6nVj+o9IzOo7GzNj6tRbUTRUTsSa8C1ZFNWNbFxyP4tRQHQoDRjW4SGGSPd21u2XtdztivTN5v8Pd2vOx7wcFGiUJRejmWomZT3UdUj8m27jcvLLOjLUEB8bAMj7LZDUOUa21eOkwN.2mbJMxw5MZeXnfuqfIR.bTxuIJFGdNdH4HrwrU7APreepVH6owZhB4s5Nh9i6MRbIO09mSUzyXDiPKTOHPopOPv5aPrQKZ2QTV+t46WEB442c5tuT5t+99cn8oSzOsJ741EBl5ga8vakhvqTA30xEdMcf2bfjmCjVMER20uWnjFqmthAOeh+gbMQN.CkcWnjZKZkSK4uq.rfqaDgOmbfDDl3QsMa1bs.3W02pBT4U5fKvxfd3nXFQ1J3aCrGAZLjnsHzJUqZ95UK5kMg6jn0Btw07rZbVDEK3f.3qqUl.P4LJmDLHgGpoBdffWvDSTjBVsv7PrFjLVBodkeqRY5fZYBkOfxH8FqzjnFmIEWpH0pVcsfAXlhrVf8iYIn1.vRUcv6xquNDckfQZDKo.3rqzPK5oAwg0ZVu9VkslY1dCvRMrqRsgIv82VkYGrIbMZrwJ3uMTwLJri2pp0.yxjWok3IAwIQ411nZZJyqvMvprOVqtMooRcvw0rw5EM+4rrOucRQTZMrnYUMVP5Wc9wvrWdQq7Djl4FJhFNBE8c8N9nTKLK+Z3WudqJKTG2Dgrl5tXF6L3Bds42yqukyghiDZxw7Z11dkWWIX1kFLXtqkEJaAbNKanejuOGqwShNiHcOzYLDtSV7ht+69htKOTXZExwPA+PNUebLg+tXmPYkUCoPFp.S0VJg636V3PT3l+mUPUKjE3tDxne3v8vZbd3fHCYKlH0TyFwaOxE.gcJiSY+8Hpy0hXqsYcTj2MW3j+poI9WZOdpvO09RZe8HWEiHzgiztZnpNhHHgXI3o2Jn2lQD3hE8SXXcQBZyTorEflYAVQCyGWQ0icmZckwZunP7t9co5vQyGiqLGLBMqqCLlMq6S82ev.RndJ.W0+fe75Yvla5+pzzeOefhhfi.VpLxNKFp3myBdU7ji3E9IGckDKSK8WcL6OZuSBTijE096ssoZ6HQBuPtxP9IjXBVCsYGetU6SN4oRQR7rd8lmXOTbpDXDgRg6BGyIPsV6tG2UJTpAv1wFKk6RcSjCM0poZNgbAQpJp6njHney4Dlg9xyyPLnHl9KMrCFlY7JWqsYo4oXaOFdGlUt0LxOXF4GNi7FyH+nYj2bF4GOUdxbOyIiuze8Q.yv5LLitdFC05vwRcDN9sXlu4hwLCgtKFJFNVtCc3jzlpw8YjSZ.VP57Dz47Xtabc89xUWrqgu+m+9+.h0BOGtbNF6QMcm84W.WXAMFLdOXh0.bBSmqsH4QGAWDORvogEud.G2GNjHcw9b2Paq0vsyoZte6SHLBV4b+9qa+L38rXYwa8eP0hVeve0f41u9B+T3FXX7B9mz29ndL68NbrzBMb7JGuK+fxOpkt6jMxL.xtT+e797s8sj7AlYx+aA0SDIZXVa97NeXnXO3g.gD2QiqXF2lJ2zHa.TOBuuU3OgexVrU9bTyhsxWDElGJXuk8Y66u8JQ3lQG127wfIzL2izJ34FFHAy99nfxHbnT7xvzuegAq2xpAPI29+doreGibvb9BEQv7pWFFVLTukiOXYc7gKqiarrN9nk0wMWVGe7x532726n44DamnEQojoHTmt6md.za+IG.Kg9KP8i84E
have not tried rhapsody yet but ill revert back here if it's working
const var Sampler1 = Synth.getChildSynth("Sampler1");
const var ScriptButton1 = Content.getComponent("ScriptButton1");
inline function onScriptButton1Control(component, value)
{
if(value)
FileSystem.browse("", false, "", function(files){
var extra = files.toString(0).split(".xml");
Sampler1.asSampler().loadSampleMap(extra[0]+".xml");
Console.print("loaded");
});
};
Content.getComponent("ScriptButton1").setControlCallback(onScriptButton1Control);