-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathjrt_panel.py
62 lines (46 loc) · 1.63 KB
/
jrt_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
55
56
57
58
59
60
61
62
import bpy
from bpy.types import Panel
class JRT_PT_Panel(Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_label = "Remesh settings"
bl_category = "JRemesh"
def draw(self, context):
layout = self.layout
# UI
# row = layout.row()
# col = row.column()
# col.prop(context.scene, "remesher")
if context.scene.remesher == "Instant Meshes":
row = layout.row()
col = row.column()
col.prop(context.scene, "deterministic")
row = layout.row()
col = row.column()
col.prop(context.scene, "dominant")
row = layout.row()
col = row.column()
col.prop(context.scene, "intrinsic")
row = layout.row()
col = row.column()
col.prop(context.scene, "boundaries")
row = layout.row()
col = row.column()
col.prop(context.scene, "smooth")
row = layout.row()
col = row.column()
col.prop(context.scene, "crease")
row = layout.row()
col = row.column()
col.prop(context.scene, "vertex_count")
elif context.scene.remesher == "Quadriflow":
row = layout.row()
col = row.column()
col.prop(context.scene, "qf_sharp")
row = layout.row()
col = row.column()
col.prop(context.scene, "qf_face_count")
# Start remesh
row = layout.row()
col = row.column()
col.operator('object.jrt_remesh_op', icon='VIEW_PERSPECTIVE', text="Remesh")