@d-healey said in How To Select Different Group of SampleMaps ?:
@AHTV
How can I modify the code so I can have only some samplemap present in a dropbox box, not listing all samplemaps in the samplemaps folder?
You'll need to loop through the list and use the string commands (like substring, indexOf, and contains) to split it up into two lists based on your parameters. Then you can use those two lists to populate your combo boxes.
Keep in mind that as soon as there are two combo boxes you are adding complexity because it is not simply a case of matching the value of one combo box to the xml references in an array. Which is what is happening in the example.
You have to do one of the things I mentioned before. Using the value to get a reference to the selected sample map. Either using two arrays or using one array and offsetting the index, I'd probably go for the second option.
Ok thanks, I will try this, thanks a lot !