JSFL/XMLUI menulist/menupop help
I am new to Animate (2024) scripting, but have created CEP Panels/extendscript for AE and PPro.
This forum has been very useful (especially @JoãoCésar17023019 ) as there is a lot of outdated documentation that can be confusing.
Basically, I just want a UI for our pipeline. First part is reading a folder on our server and populating a dropdown with the names of all the job folders.
I can read the job names (folder names) into an array and then use a loop to create the xml with all the menulist menuitems. I will have other dropdowns that need to be populated based on other dropdowns.
How would I update a dropdown with new items? Do I somehow close the dialog, create a new xml and open it again?
I was looking at https://github.com/AdobeDocs/developers-animatesdk-docs/blob/master/XMLUI_object/xmlui8.md
fl.xmlui.setControlItemElements("myControlID", arrayOfElementObjects);
This is exactly what I need. I create the arrayOfElementObjects and add id to my menulist(tried menupop too), but it doesn't work. The docs say it is for comboboxes and listboxes, but I am not sure how to create these?
I hoping someone can help me with what is possible in today's animate.
thank you
