Files
Blender-Fange-Pipeline/Fange Pipeline/ui.py
T
2024-05-09 16:00:54 +02:00

30 lines
905 B
Python

import bpy
class GRAOU_PT_panel(bpy.types.Panel):
bl_idname = 'GRAOU_PT_MAIN'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_label = 'Pipeline'
bl_category = 'Graou Studio'
def draw(self, context):
layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False
row = layout.row(align=False)
row.label(text='Main Config:')
layout.operator('graou.build_scene', text='Init Scene', icon='OUTLINER')
row = layout.row(align=False)
row.label(text='Asset:')
layout.operator('graou.make_collision', text='Make all collision', icon='MOD_PHYSICS')
row = layout.row(align=True)
row.label(text='Export scene:')
box = layout.box()
box.label(text='Sanity Check')
layout.operator('graou.building_export', text='Export all assets', icon='EXPORT')