Post #2116: Wa

📋 Metadata

🏷️ Tags

popup-dialog custom-icons intermediate solved

  • Custom Icons
  • Python Scripting
  • Popup Dialog Editor

💬 Content

Way2Close:

I am drawing a button in the custom tab because it is conditional.
Can I set the icon to be a custom PME one?

Yes, use custom_icon() function:

L.operator("test.test", text="test", icon_value=custom_icon("icon_file_name_without_ext"))

🔗 View on Blender Artists