Custom Icons in 2D Gizmos via Python
I think it would be fantastic if we could add custom icons to the 2D Gizmo Buttons using Python. Right now as an Add-On Developer I'm limited to the default set of icons Blender comes with.
Thanks!
Maciej
I think it would be fantastic if we could add custom icons to the 2D Gizmo Buttons using Python. Right now as an Add-On Developer I'm limited to the default set of icons Blender comes with.
Thanks!
Maciej
4 Comments
Just stubbled on this, but this was implemented as part of #136080 , and will be included in Blender 4.5.
Unless I'm misunderstanding what you want, you can already use custom icons
Custom Icons API Stack Exchange Question
Unfortunatelly gizmos don't have a property that would allow to set icons using icon_id. There is only a string property called "icon" that takes string as a parameter. So can't really pass that custom icon to the gizmo :(.
It is kind of silly really, seems like this should be no problem to fix that on the Blender side of things.
Someone actually made a fix by adding the icon_value property to the gizmos but it was never merged:
projects.blender.org/blender/blender/pulls/108988
Ah, my bad