Post #484: ![](https://blenderartists.org/user_avatar/blenderartists.org/draguu/48/15444_2.

📋 Metadata

🏷️ Tags

popup-dialog scripting intermediate solved

  • Popup Dialog Editor
  • Custom tab scripting
  • Conditional visibility

💬 Content

draguu:

hey man . is it possible to not to show button in popup . with if condition ,

like if object has materials then only show buttons , or if transparancy is on if ob.active_material.use transparent == True: then only show this button ,

Is it possible ?

Yes, you can do it in Custom tab.
I’ll post an example if you show me the code you use for that Materials panel.


🔗 View on Blender Artists