Hmm, I have an issue here, because this is in the __init__.py file of an add-on, so the enumerator is declared in the
register() function of the __init__.py file and is populated in a separate function in the __init__.py file, that reads the object library file. So I am not sure where I can declare the items list in this case? I am confused, because what I did definitely works and what I did before has not crashed Blender yet, but I accept it might…
Should I just have a separate items_list.py file with the three of these I require and then import them into the __init__.py file?
Sorry to seem thick, but this is a bit new to me…
If it helps here is the declaration of the EnumProperty:
Scene.pdt_lib_objects = EnumProperty(
items=enumlist_objects, name="Objects", description=PDT_DES_LIBOBS
And here is the menu in the UI: