0
$\begingroup$

i tried to insert some icon in an enumproperty

test_context: bpy.props.EnumProperty(
    name = 'Context',
    description = '',
    items = [
        ('GENERAL', 'General', '', icon='BLENDER'),
        ('FILEPATHS', 'File Paths', '', icon='KEYINGSET')],
    default = 'GENERAL')

this is obviously not working and i didnt saw any example out there, nothing in the documentation either. i saw this question but it didnt help How to add custom icon to EnumProperty in add-on

does someone here know how to do this ? is this even possible ?

original

test_context: bpy.props.EnumProperty(
    name = 'Context',
    description = '',
    items = [
        ('GENERAL', 'General', '', icon='BLENDER'),
        ('FILEPATHS', 'File Paths', '', icon='KEYINGSET')],
    default = 'GENERAL')
$\endgroup$
1
$\begingroup$
test_context: bpy.props.EnumProperty(
    name = 'Context',
    description = '',
    items = [
        ('GENERAL', 'General', '', 'BLENDER',1),
        ('FILEPATHS', 'File Paths', '', 'KEYINGSET',2)],
    default = 'GENERAL')
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.