Post #988: Wa

πŸ“‹ Metadata

  • Author: roaoao
  • Date: 2017-09-26 01:07:11
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00986

🏷️ Tags

popup-dialog hotkeys intermediate

  • Popup Dialog Editor
  • Python Scripting
  • Panel Group Editor

πŸ’¬ Content

Way2Close:

Hey guys, anyone know if there is a way to hide everything in the β€˜TOOLS’ panel, and then have a pie or popup dialog where you could click a button to show certain panels?

Try scripts/command_panel.py script.

Open panel by name:

from .scripts.command_panel import open_panel; open_panel(name="Grease Pencil", region='TOOLS')

Open panels by tab:

from .scripts.command_panel import open_tab; open_tab("Tools", region='ANY')

Restore hidden panels:

from .scripts.command_panel import restore_panels; restore_panels()

You can modify the script but don’t forget to rename it.


πŸ”— View on Blender Artists