-
Notifications
You must be signed in to change notification settings - Fork 0
/
properties.py
142 lines (118 loc) · 5.2 KB
/
properties.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
130
131
132
133
134
135
136
137
138
139
140
141
142
import bpy
from . import miscFunc
from bpy.props import (StringProperty, BoolProperty, IntProperty, FloatProperty, FloatVectorProperty, EnumProperty, PointerProperty)
from bpy.types import (Panel, Operator, AddonPreferences, PropertyGroup)
class NTZSYM_ignitproperties(PropertyGroup):
operatorShowOptions : BoolProperty (
name = "Show Options",
default = False,
)
defaultOperatorShowOptions_List = [
("UNSET", "Unset", "Use Last Known Settings", "", 0),
("HIDE", "Hide", "", "TRIA_RIGHT", 1),
("EXPAND", "Expand", "", "TRIA_UP", 2),
]
defaultOperatorShowOptions : EnumProperty (
items = defaultOperatorShowOptions_List,
name = "Default Operator Show Options",
description = "Hide/Expand Operator Options",
default = "UNSET"
)
bShowOptions : BoolProperty (
name="Show Options",
description="Reveals options.",
default = False,
)
optionsPopoverEnum_List = [
("OPTIONS", "Options", "", "SETTINGS", 0),
]
optionsPopoverEnum : EnumProperty (
items = optionsPopoverEnum_List,
name = "Options Popover Enum",
description = "Options Popover Enum",
default = "OPTIONS"
)
cutLocation_List = [
("UNSET", "Unset", "Use Last Known Settings", "", 0),
None,
("DEFAULT", "Default", "", "FAKE_USER_ON", 1),
None,
("GLOBAL", "Global", "", "ORIENTATION_GLOBAL", 2),
("OBJECT", "Object", "", "OBJECT_ORIGIN", 3),
("BOUNDING", "Bounding Box", "", "PIVOT_BOUNDBOX", 4),
("MEDIAN", "Median", "", "PIVOT_MEDIAN", 5),
("CURSOR", "Cursor", "", "ORIENTATION_CURSOR", 6),
]
cutLocation : EnumProperty (
items = cutLocation_List,
name = "Cut Location",
description = "Where the cut should begin",
default = "DEFAULT"
)
cutRotation_List = [
("UNSET", "Unset", "Use Last Known Settings", "", 0),
None,
("DEFAULT", "Default", "", "FAKE_USER_ON", 1),
None,
("GLOBAL", "Global", "", "ORIENTATION_GLOBAL", 2),
("LOCAL", "Local", "", "ORIENTATION_LOCAL", 3),
("NORMAL", "Normal", "", "ORIENTATION_NORMAL", 4),
("VIEW", "View", "", "ORIENTATION_VIEW", 5),
("CURSOR", "Cursor", "", "ORIENTATION_CURSOR", 6),
("CUSTOM", "Custom", "", "", 7),
]
cutRotation : EnumProperty (
items = cutRotation_List,
name = "Cut Rotation",
description = "The rotation of the cut should",
default = "DEFAULT"
)
fillAfterCut_List = [
("UNSET", "Unset", "Use Last Known Settings", "", 0),
None,
("NO_FILL", "No", "", "X", 1),
("FILL", "Yes", "", "CHECKMARK", 2),
]
fillAfterCut : EnumProperty (
items = fillAfterCut_List,
name = "Fill",
description = "Fill the empty hole with an NGON after performing a cut",
default = "NO_FILL"
)
keepModifiers_List = [
("UNSET", "Unset", "Use Last Known Settings", "", 0),
None,
("NO", "No", "", "X", 1),
("YES", "Yes", "", "CHECKMARK", 2),
]
keepModifiers : EnumProperty (
items = keepModifiers_List,
name = "Keep Modifiers",
description = "Preserves the mirror and bisect modifiers when complete",
default = "NO"
)
removeEmpties_List = [
("UNSET", "Unset", "Use Last Known Settings", "", 0),
None,
("NO", "No", "", "X", 1),
("YES", "Yes", "", "CHECKMARK", 2),
]
removeEmpties : EnumProperty (
items = removeEmpties_List,
name = "Remove Empties",
description = "Removes Empties when applying or removing modifiers",
default = "YES"
)
removeBisectPlanes_List = [
("UNSET", "Unset", "Use Last Known Settings", "", 0),
None,
("NO", "No", "", "X", 1),
("YES", "Yes", "", "CHECKMARK", 2),
]
removeBisectPlanes : EnumProperty (
items = removeBisectPlanes_List,
name = "Remove Bisect Planes",
description = "Removes Bisect Planes when applying or removing modifiers",
default = "YES"
)
#END NTZSYM_ignitproperties()