generated from stilobique/BlenderTemplate
Make a dedicated folder about the interface
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user