How To Get Icon List In Blender
GOAL
Today’s goal is to show Icon Viewer that shows the list of icon we can use in Blender and use it.
Environment
Blender2.83(LTS)
Windows10
Method
1. Activate addon “Development Icon Viewer”
2. Open Icon Viewer
Open text Editor and click “Dev” tab.
Click on any icon you like and it’s name will be copied to the clipboard. Then paste it into your editor.
Examples
1. Operator button
def draw(self, context): layout = self.layout col = layout.column(align=True) col.operator("mesh.primitive_monkey_add", icon="MONKEY")
2. EnumProperty
class MyProp(bpy.types.PropertyGroup): items = [("id1", "name1", "description 1", "HELP", 0), ("id2", "name2", "description 2", "GHOST_ENABLED", 1), ("id3", "mame3", "description 3", "FUND", 2),] enum: bpy.props.EnumProperty(items=items)
def draw(self, context): layout = self.layout col = layout.column(align=True) col.prop(context.scene.MyProp, "enum")