EnumProperty(Property)
base classes — bpy_struct, Property
- class bpy.types.EnumProperty(Property)
RNA enumeration property definition, to choose from a number of predefined options
- default
Default value for this enum (default
'DEFAULT', readonly)- Type:
Literal[‘DEFAULT’]
- default_flag
Default value for this enum (default set(), readonly)
- Type:
set[Literal[‘DEFAULT’]]
- enum_items
Possible values for the property (default None, readonly)
- enum_items_static
Possible values for the property (never calls optional dynamic generation of those) (default None, readonly)
- enum_items_static_ui
Possible values for the property (never calls optional dynamic generation of those). Includes UI elements (separators and section headings). (default None, readonly)
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
- Returns:
The class or default when not found.
- Return type:
type