Post #4915: ![](https://blenderartists.org/user_avatar/blenderartists.org/adam_szalai/48/902

📋 Metadata

🏷️ Tags

popup-dialog panel-groups intermediate partially-solved

  • Panel Group Editor
  • Popup Dialog Editor
  • Python Scripting

💬 Content

Adam_Szalai:

i tried this option, but i can’t see where is the panel group placed if i’m using this option. I also checked youtube tutorials but don’t see info about this

My understanding is that this option ceased functioning with Blender 2.80. If it’s feasible, you might want to try it with Blender 2.79. Although I haven’t extensively tested this option myself, I’m under the impression that the UI (side panel) options should be available in the N-panel. (Someone please point out if I am wrong!)
Additionally, I haven’t used it much due to compatibility issues with the CleanPanels addon, which I use.

Adam_Szalai:

Also is there a way to use Panel Groups something like this:

It sounds like you might be trying to manage multiple panels as a single panel group. I’ve attempted this in the past but gave up due to minor issues. Would it be sufficient to arrange the necessary panels together in a popup dialog?

EDIT: Talk about actual coding

I’ve done some further research and discovered how to create sub-panels with PME Panel Groups. It seems that panels are linked using bl_parent_id.

To replicate this in PME, it would be necessary to investigate what identifiers Popup Dialogs or Panel Groups have and how they can be invoked. Here’s an example script to illustrate this concept in Blender:

import bpy

class MainPanel(bpy.types.Panel):
    bl_idname = "VIEW3D_PT_main_panel"
    bl_label = "Main Panel"
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'UI'
    bl_category = 'My Tools'

    def draw(self, context):
        layout = self.layout
        layout.label(text="This is the main panel")

class SubPanel1(bpy.types.Panel):
    bl_idname = "VIEW3D_PT_sub_panel_1"
    bl_label = "Sub Panel 1"
    bl_parent_id = "VIEW3D_PT_main_panel"
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'UI'

    def draw(self, context):
        layout = self.layout
        layout.label(text="This is sub panel 1")

class SubPanel2(bpy.types.Panel):
    bl_idname = "VIEW3D_PT_sub_panel_2"
    bl_label = "Sub Panel 2"
    bl_parent_id = "VIEW3D_PT_main_panel"
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'UI'

    def draw(self, context):
        layout = self.layout
        layout.label(text="This is sub panel 2")

def register():
    bpy.utils.register_class(MainPanel)
    bpy.utils.register_class(SubPanel1)
    bpy.utils.register_class(SubPanel2)

def unregister():
    bpy.utils.unregister_class(MainPanel)
    bpy.utils.unregister_class(SubPanel1)
    bpy.utils.unregister_class(SubPanel2)

if __name__ == "__main__":
    register()

The following addon allows you to customize panels like PME and even export them as an addon: Customize Menu Editor

Adam_Szalai:

but the windows should not disappear when i’m pressing a button, but could be closed with an X button.

Could you elaborate on the specific functionality you are imagining here?

something like this?
python - Floating UI window in 3D view - Blender Stack Exchange
Floating windows for Blender 2.8


🔗 View on Blender Artists