-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmiscPt.py
129 lines (93 loc) · 3.96 KB
/
miscPt.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import bpy
from . import miscFunc
from . import miscLay
from bpy.props import (StringProperty, BoolProperty, IntProperty, FloatProperty, FloatVectorProperty, EnumProperty, PointerProperty)
from bpy.types import (Panel, Operator, AddonPreferences, PropertyGroup)
# -----------------------------------------------------------------------------
# Panel
# -----------------------------------------------------------------------------
class VIEW3D_PT_ntzbu_delete_all_unselected_objects_options(Panel):
bl_label = 'NTZBU : "Delete Unselected Objects" Options'
bl_idname = 'VIEW3D_PT_ntzbu_delete_all_unselected_objects_options'
bl_category = ''
bl_space_type = 'VIEW_3D'
bl_region_type = 'WINDOW'
def draw(self, context):
scn = context.scene
lay = self.layout
lay.ui_units_x = 20
addonPrefs = context.preferences.addons[__package__].preferences
header = lay.row(align=True)
header.label(text='"Group with Empty" Options:', icon="EMPTY_DATA")
header.separator()
box = lay.box().column(align=True)
miscLay.delUnselObjs_options(addonPrefs, context, lay=box)
#END draw()
#END Panel
class VIEW3D_PT_ntzbu_group_with_empty_options(Panel):
bl_label = 'NTZBU : "Group With Empty" Options'
bl_idname = 'VIEW3D_PT_ntzbu_group_with_empty_options'
bl_category = ''
bl_space_type = 'VIEW_3D'
bl_region_type = 'WINDOW'
def draw(self, context):
scn = context.scene
lay = self.layout
lay.ui_units_x = 20
addonPrefs = context.preferences.addons[__package__].preferences
header = lay.row(align=True)
header.label(text='"Group with Empty" Options:', icon="EMPTY_DATA")
header.separator()
box = lay.box().column(align=True)
miscLay.groupWithEmpty_options(addonPrefs, context, lay=box)
#END draw()
#END Panel
class VIEW3D_PT_ntzbu_select_contiguous_edges_options(Panel):
bl_label = 'NTZBU : "Sel Contig Edges" Options'
bl_idname = 'VIEW3D_PT_ntzbu_select_contiguous_edges_options'
bl_category = ''
bl_space_type = 'VIEW_3D'
bl_region_type = 'WINDOW'
def draw(self, context):
scn = context.scene
lay = self.layout
lay.ui_units_x = 20
addonPrefs = context.preferences.addons[__package__].preferences
header = lay.row(align=True)
header.label(text='"Select Contiguous Edges" Options:', icon="SNAP_MIDPOINT")
header.separator()
box = lay.box().column(align=True)
miscLay.selContigEdg_options(addonPrefs, context, lay=box)
#END draw()
#END Panel
class VIEW3D_PT_ntzbu_modifier_tools_options(Panel):
bl_label = 'NTZBU : "Modifier Tools" Options'
bl_idname = 'VIEW3D_PT_ntzbu_modifier_tools_options'
bl_category = ''
bl_space_type = 'VIEW_3D'
bl_region_type = 'WINDOW'
def draw(self, context):
scn = context.scene
layout = self.layout
layout.ui_units_x = 15
optionsSection = layout.column(align=True)
miscLay.modifierToolsOptions(self, context, scn, optionsSection)
#END draw()
#END Panel
class VIEW3D_PT_ntzbu_sidebar_panel(Panel):
bl_label = 'Bonus Utils v1.0.6'
bl_category = 'Neltulz'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bUseCompactSidebarPanel = BoolProperty(
name = 'Use Compact Panel',
description = 'Use Compact Panel',
default = False
)
bUseCompactPopupAndPiePanel = BoolProperty(
name = 'Use Compact Popup & Pie Panel',
description = 'Use Compact Popup & Pie Panel',
default = True
)
def draw(self, context):
miscLay.mainBonusUtilsPanel(self, context, self.bUseCompactSidebarPanel, self.bUseCompactPopupAndPiePanel)