Page MenuHome

Python API for Icons
Closed, ResolvedPublic

Description

For our own testing and for Python add-ons, it's useful to have a Python API so we can easily change the toolbar.

example usage:

icons_value = bpy.app.icons.new_triangles(coords, colors)

# pass to UI.
layout.operator("foo.bar", icon_value=icon_value)

# free.
bpy.app.icons.release(icon_value)

Details

Type
To Do

Event Timeline

Campbell Barton (campbellbarton) lowered the priority of this task from Needs Triage by Developer to Normal.Apr 20 2018, 11:46 AM
Campbell Barton (campbellbarton) moved this task from Tasks to Doing on the Code Quest board.
Campbell Barton (campbellbarton) triaged this task as Needs Triage by Developer priority.Apr 20 2018, 3:39 PM
Campbell Barton (campbellbarton) moved this task from Doing to Done on the Code Quest board.
Campbell Barton (campbellbarton) lowered the priority of this task from Needs Triage by Developer to Normal.Apr 20 2018, 3:41 PM
Dalai Felinto (dfelinto) closed this task as Resolved.Apr 23 2018, 1:19 PM