generated from stilobique/BlenderTemplate
28 lines
839 B
Python
28 lines
839 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:')
|
|
layout.operator('graou.building_export', text='Export all assets', icon='EXPORT')
|