-
Notifications
You must be signed in to change notification settings - Fork 27
/
panel.py
54 lines (47 loc) · 1.5 KB
/
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
47
48
49
50
51
52
53
54
import bpy
class DiffGrowthPanel(bpy.types.Panel):
bl_label = "Differential Growth"
bl_idname = "OBJECT_PT_diffgrow_panel"
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = 'object'
def draw(self, context):
layout = self.layout
obj = context.object
settings = obj.diff_growth_settings
box = layout.box()
box.label(text='Basics')
row = box.row()
row.prop(settings, 'split_radius')
row = box.row()
row.prop(settings, 'repulsion_radius')
row = box.row()
row.prop(settings, 'dt')
row = box.row()
row.prop(settings, 'scale')
box = layout.box()
box.label(text='Forces')
row = box.row()
row.prop(settings, 'fac_attr')
row = box.row()
row.prop(settings, 'fac_rep')
row = box.row()
row.prop(settings, 'fac_noise')
row = box.row()
row.prop(settings, 'noise_scale')
row = box.row()
row.prop(settings, 'seed')
box = layout.box()
box.label(text='Growth Direction')
row = box.row()
row.prop(settings, 'growth_dir_obj')
row = box.row()
row.prop(settings, 'fac_growth_dir')
box = layout.box()
box.label(text='Growth Inhibitors')
row = box.row()
row.prop(settings, 'inhibit_base')
row = box.row()
row.prop(settings, 'inhibit_shell')
row = layout.row()
row.operator('object.diff_growth_step')