I want to display a list of values in a panel, as either a list box or dropdown box. The list should contain the names of custom float data layers for vertices of the active mesh object.
The vertex colors list in the Mesh buttons uses UILayout.template_list, but how can I get it to show arbitrary (non-color) custom data layers? I guess I'm looking for something like:
- The API to access the custom data as a list that
UILayout.template_listcan understand, or
- A way to populate a UI list with custom items.