← All ideas
  • Published 4 Mar 2024

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

100%

Development Status: Open

Upvote 6 Downvote 0
maciejgliwa
4 Mar 2024

4 Comments

Brainzman

Just stubbled on this, but this was implemented as part of #136080 , and will be included in Blender 4.5.

matt6

Unless I'm misunderstanding what you want, you can already use custom icons

Custom Icons API Stack Exchange Question

maciejgliwa Author

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

matt6

Ah, my bad