How to get a list with all possible values of an EnumProperty
To correctly set values to an EnumProperty type we need to know all its possible entries.
If we try to set a value to an EnumProperty that is out of its available variants, Blender will throw an error:
TypeError: bpy_struct: item.attr = val: enum “xxx” not found in (‘value_001′, value_002’, …)
where:
xxx – the value we tried to set to an EnumProperty
value_001, value_002, … – possible EnumProperty values
How to get a list with all possible values of an EnumPropertyRead More »