Where to prop_search for vertex groups?
This doesn't work:
row.prop_search(context.scene, "vertex_group_density", ob, "vertex_groups", text="Density")
context.scene seems to be the wrong place, but which is the right one? In e.g. the particle system dialog source, there's just a "psys" instead of context.scene, but that doesn't give me a further lead.
Man-pages say "Data from which to take property", I'm not exactly sure what is meant by that:
prop_search(data, property, search_data, search_property, text="", icon='NONE') Parameters: data (AnyType, (never None)) – Data from which to take property. property (string) – Identifier of property in data. search_data (AnyType, (never None)) – Data from which to take collection to search in. search_property (string) – Identifier of search collection property. text (string, (optional)) – Override automatic text of the item. icon