📋 Metadata

💬 Content

draguu:

Can we make Radio buttons in pop up dialog?

https://rightclickselect.com/p/gener…property-panel
something like this … very useful

It’s possible in PME 1.11.0. But you have to press “Update” button to register Radio buttons in Blender.

  • Download and extract custom_tabs.py file to pie_menu_editor/scripts folder.
  • Add a popup dialog for each radio button (e.g. Popup Dialog 1 and Popup Dialog 2)
  • Add your main popup dialog and use downloaded file as an external script in Custom tab:

Titles only:

execute_script("scripts/custom_tabs.py", names=["Popup Dialog 1", "Popup Dialog 2"])

Titles and icons:

execute_script("scripts/custom_tabs.py", names=["Popup Dialog 1", "Popup Dialog 2"], icons=['MESH_CUBE', 'SOLID'])

Icons only:

execute_script("scripts/custom_tabs.py", names=["Popup Dialog 1", "Popup Dialog 2"], icons=['MESH_CUBE', 'SOLID'], icon_only=True)

To find icon names you can use built-in “Icons” addon.

If you want to use 2+ radio button groups in the same popup dialog, you need to specify the unique id for them:

execute_script("scripts/custom_tabs.py", id="123456789", names=["Popup Dialog 1", "Popup Dialog 2"])

Attachments

custom_tabs.zip (609 Bytes)


🔗 View on Blender Artists