-
Notifications
You must be signed in to change notification settings - Fork 1
/
btm_panel.py
34 lines (24 loc) · 884 Bytes
/
btm_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
from bpy.types import Panel
class GDEV_PT_Panel(Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_label = "Bones to mesh"
bl_category = "BonesToMesh"
@classmethod
def poll(cls, context):
obj = context.object
if obj.mode == "OBJECT":
return True
return False
def draw(self, context):
layout = self.layout
# 2 Column buttons
row = layout.row()
row.operator("object.create_bones_vertex_groups", text="Create constrained bones")
row = layout.row()
row.operator("object.bake_all_pose", text="Bake bones")
#col = row.column()
row = layout.row()
row.operator("object.remove_all_bone_constrains", text="Remove IK constraints")
row = layout.row()
row.operator("object.remove_all_vertexgroups", text="Remove vertex groups")