@Lindon Hi Lindon. I used this now and its working as expected.
inline function onSampleViewer1Control(component, value) { if (value > 0) { local id = Sampler1.getSampleMapList()[value - 1]; Sampler1.loadSampleMap(list[value]); SampleName1.setValue(list[value]); Sampler1.loadSampleMap(id); } }; Content.getComponent("SampleViewer1").setControlCallback(onSampleViewer1Control);If I take out the part you said was incorrect, then it stops working again.
Is there a different way I should go about this now?