Greetings to the community!!!
I am making a custom panel and I want to ask if is possible to add two (or more) layout boxes side by side?
If yes, can I have an example please?
Thank you for your time!!!
Greetings to the community!!!
I am making a custom panel and I want to ask if is possible to add two (or more) layout boxes side by side?
If yes, can I have an example please?
Thank you for your time!!!
import bpy
class HelloWorldPanel(bpy.types.Panel):
"""Creates a Panel in the Object properties window"""
bl_label = "Hello World Panel"
bl_idname = "OBJECT_PT_hello"
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "object"
def draw(self, context):
layout = self.layout
use_align = True
row = layout.row(align=use_align)
box1 = row.box()
box1.label(text="Box 1")
box2 = row.box()
box2.label(text="Box 2")
box3 = row.box()
box3.label(text="Box 3")
def register():
bpy.utils.register_class(HelloWorldPanel)
def unregister():
bpy.utils.unregister_class(HelloWorldPanel)
if __name__ == "__main__":
register()
Thank you very much for your answer!!! One more thing… Is there any resource which can help me understand how all this layout thing goes? Except Blender’s documentation, because it didn’t helped me at all.