Created
August 15, 2019 11:30
-
-
Save florianfelix/4cfdff72c4c3e4864384e42c19ab082a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from bpy.types import Panel | |
class RENDER_PT_Panel(Panel): | |
bl_space_type = 'PROPERTIES' | |
bl_region_type = 'WINDOW' | |
bl_context = "render" | |
bl_label = "Parent Panel" | |
@classmethod | |
def poll(cls, context): | |
return True | |
def draw(self, context): | |
layout = self.layout | |
class RENDER_PT_Panel_Child_A(Panel): | |
bl_space_type = 'PROPERTIES' | |
bl_region_type = 'WINDOW' | |
bl_context = "render" | |
bl_label = "Child_A" | |
bl_parent_id = "RENDER_PT_Panel" | |
@classmethod | |
def poll(cls, context): | |
return True | |
def draw(self, context): | |
layout = self.layout | |
class RENDER_PT_Panel_Child_B(Panel): | |
bl_space_type = 'PROPERTIES' | |
bl_region_type = 'WINDOW' | |
bl_context = "render" | |
bl_label = "Child_B" | |
bl_parent_id = "RENDER_PT_Panel" | |
@classmethod | |
def poll(cls, context): | |
return True | |
def draw(self, context): | |
layout = self.layout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment