Post #1079: St

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2017-10-27 12:11:37
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01078

🏷️ Tags

v1-14-9 pie-menu custom-code intermediate solved

  • Pie Menu Editor
  • Custom Python Scripting
  • Menu Integration

πŸ’¬ Content

StroBlend:

Great! It will be possible to launch a command instead of a menu? don’t know if you understood me correctly I would like to have the appearance of a menu button but for a regular button that can run command or popup.

No, we can’t use regular button to open Import/Export menu. Because for some reason these menus are designed to be used as a sub-menu only.

In the next version you will be able to display clickable button in pies (Import button):

using this code in Custom tab:

L.menu("INFO_MT_file_import", text, icon=icon, icon_value=icon_value, use_mouse_over_open=False)

To test it you can extract this file (pme1.14.9_menu.zip (4.69 KB)) to scripts/addons/pie_menu_editor/ folder and restart Blender.


πŸ”— View on Blender Artists