forked from jayanam/batex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bex_panel.py
48 lines (33 loc) · 1.28 KB
/
bex_panel.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import bpy
from bpy.types import Panel
class BATEX_PT_Panel(Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_label = "Batch Fbx export"
bl_category = "Batex"
def draw(self, context):
layout = self.layout
scene = context.scene
row = layout.row()
row.label(text="Export folder:")
row = layout.row()
col = row.column()
col.prop(context.scene, "export_folder", text="")
col = row.column()
col.operator('object.bex_ot_openfolder', text='', icon='FILE_TICK')
row = layout.row()
row.prop(context.scene, "center_transform", text="Center transform")
row = layout.row()
row.prop(context.scene, "apply_transform", text="Apply transform")
row = layout.row()
row.prop(context.scene, "one_material_ID")
row_smooth = layout.row()
col_smooth_lbl = row_smooth.column()
col_smooth_lbl.label(text="Smoothing:")
col_smooth = row_smooth.column()
col_smooth.alignment = 'EXPAND'
col_smooth.prop(context.scene, "export_smoothing", text="")
row = layout.row()
row.prop(context.scene, "export_animations")
row = layout.row()
row.operator('object.bex_ot_operator', text='Export')