@mehmethand said in Searching across all expansions:
const var exh= Engine.createExpansionHandler(); var presetList=[]; var expList= exh.getExpansionList(); for (e in Engine.getUserPresetList()) presetList.push(e); for (i=0;i<expList.length;i++) { for (e in expList[i].getUserPresetList()) presetList.push(e); } Console.print(trace(presetList));I'm not in front of the computer but this should work.
@mehmethand
Your code did work. I have now populated a viewport with the list of all presets across all expansions. I can also type into a 'search box' which is actually a label and then the matching results are shown which is a good start.
I am struggling to figure out how to link further code to it so that I can load the relevant preset when one of the results is clicked. Do you know if this is possible?
Thanks in advance