@Casmat If I understood right - you can use
const myCoolSampleMap = "{EXP::myCoolExpansion}myCoolSampleMap"; SamplerA.asSampler().loadSampleMap(myCoolSampleMap );If you want this sample-loading handled automatically when an Expansion is loaded, you need to add it to the expansion's loading method, something like:
const expHandler = Engine.createExpansionHandler(); inline function loadSamples() { local sampleMap = "{EXP::myCoolExpansion}myCoolSampleMap"; //better ways to do this, note the EXP::expansion wildcard SamplerA.asSampler().loadSampleMap(sampleMap); } function expCallback() { currentExpansion = expHandler.getCurrentExpansion(); //useful to access subfolders ie "the better way" to do the above method :) loadSamples(); } expHandler.setExpansionCallback(expCallback); //calls our functions when we change expansions