Post #572: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

  • Author: panosz
  • Date: 2017-03-02 12:29:01
  • Type: bug_report
  • Quality Score: 7/10

🏷️ Tags

popup-dialog panel-groups intermediate unsolved

  • Panel Group Editor
  • Command Panel
  • Popup Dialog Editor

💬 Content

roaoao:

[QUOTE=panosz]I’m using this code of yours to show one panel group in UI. In some cases I want more than one like for example Grease Pencil Layers and Grease Pencil. Is this possible with code?

from .scripts.command_panel import open_panel; open_panel("3D Cursor", region='ANY')

You can create a new Panel Group with “My Grease Pencil Tab” category/tab,
add the panels to the group and use this code in Command tab:

from .scripts.command_panel import open_tab; open_tab("My Grease Pencil Tab")

Thank you, Roaoao. It has some problems, though. Here is a screenshot with my setup.

Screen Shot 1.jpg2300×1294 174 KB

Here is a screenshot when using one panel in UI

Screen Shot 2.jpg2300×1294 157 KB

Here is a screenshot with “My Grease Pencil” Button

Screen Shot 3.jpg2300×1294 157 KB

And here is what happen when I click “My Grease Pencil” Button… Please check the next post for the image.


🔗 View on Blender Artists