Sample Select Grid Menu

I’m wondering if there is a way to create a grid menu in the gui that allows you to select different sample presets (subpresets) and only closes after you’ve clicked “close” or “x” but stays open even as you switch subpresets.

I’ve created a grid switch template so far. But as far as programming it, I’m a bit lost.

Any help is greatly appreciated!

So what I’m thinking is exactly how the instrument “Tales” does it.

Any ideas? TIA!

So, what I’ve tried using is the Root Menu template. From there, I’ve added this script:

function onSelectPath()
  selectedPathExternal = selectedPathInternal
end
defineParameter("selectedPathInternal", nil, "", onSelectPath)
defineParameter("selectedPathExternal", nil, "")
function onSelectPreset()
  selectedPresetExternal = selectedPresetInternal
end
defineParameter("selectedPresetInternal", nil,  "", onSelectPreset)
defineParemeter("selectedPResetExternal", nil,  "")

Then from there I export the “external” parameters to the template and connect them to the script module I have that switches presets.

My gut tells me I probably need to create a table of the subpresets names and index of them and have those mapped to the menu somehow. I’m just not sure how to get it fully working.

Any help is greatly appreciated! TIA