forked from millionart/MACHIN3tools_zh-Hans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitems.py
185 lines (133 loc) · 6.15 KB
/
items.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
from mathutils import Vector
axis_items = [('X', 'X', ''),
('Y', 'Y', ''),
('Z', 'Z', '')]
axis_vector_mappings = {'X': Vector((1, 0, 0)),
'Y': Vector((0, 1, 0)),
'Z': Vector((0, 0, 1))}
uv_axis_items = [('U', 'U', ''),
('V', 'V', '')]
# keys
ctrl = ['LEFT_CTRL', 'RIGHT_CTRL']
alt = ['LEFT_ALT', 'RIGHT_ALT']
shift = ['LEFT_SHIFT', 'RIGHT_SHIFT']
# PREFERENCES
preferences_tabs = [("GENERAL", "General", ""),
("KEYMAPS", "Keymaps", ""),
("ABOUT", "About", "")]
matcap_background_type_items = [("THEME", "Theme", ""),
("WORLD", "World", ""),
("VIEWPORT", "Viewport", "")]
# OPERATORS
smartvert_mode_items = [("MERGE", "Merge", ""),
("CONNECT", "Connect Paths", "")]
smartvert_merge_type_items = [("LAST", "Last", ""),
("CENTER", "Center", ""),
("PATHS", "Paths", "")]
smartvert_path_type_items = [("TOPO", "Topo", ""),
("LENGTH", "Length", "")]
smartedge_sharp_mode_items = [('SHARPEN', 'Sharpen', ''),
('CHAMFER', 'Chamfer', ''),
('KOREAN', 'Korean Bevel', '')]
smartedge_select_mode_items = [('BOUNDS', 'Bounds/Region', ''),
('ADJACENT', 'Adjacent', '')]
focus_method_items = [('VIEW_SELECTED', 'View Selected', ''),
('LOCAL_VIEW', 'Local View', '')]
focus_levels_items = [('SINGLE', 'Single', ''),
('MULTIPLE', 'Multiple', '')]
align_mode_items = [('VIEW', 'View', ''),
('AXES', 'Axes', '')]
align_type_items = [('MIN', 'Min', ''),
('MAX', 'Max', ''),
('AVERAGE', 'Average', ''),
('ZERO', 'Zero', ''),
('CURSOR', 'Cursor', '')]
align_direction_items = [('LEFT', 'Left', ''),
('RIGHT', 'Right', ''),
('TOP', 'Top', ''),
('BOTTOM', 'Bottom', ''),
('HORIZONTAL', 'Horizontal', ''),
('VERTICAL', 'Vertical', '')]
align_space_items = [('LOCAL', 'Local', ''),
('WORLD', 'World', ''),
('CURSOR', 'Cursor', '')]
obj_align_mode_items = [('ORIGIN', 'Origin', ''),
('CURSOR', 'Cursor', ''),
('ACTIVE', 'Active', ''),
('FLOOR', 'Floor', '')]
cleanup_select_items = [("NON-MANIFOLD", "Non-Manifold", ""),
("NON-PLANAR", "Non-Planar", ""),
("TRIS", "Tris", ""),
("NGONS", "Ngons", "")]
driver_limit_items = [('NONE', 'None', ''),
('START', 'Start', ''),
('END', 'End', ''),
('BOTH', 'Both', '')]
driver_transform_items = [('LOCATION', 'Location', ''),
('ROTATION_EULER', 'Rotation', '')]
driver_space_items = [('AUTO', 'Auto', 'Choose Local or World space based on whether driver object is parented'),
('LOCAL_SPACE', 'Local', ''),
('WORLD_SPACE', 'World', '')]
axis_mapping_dict = {'X': 0, 'Y': 1, 'Z': 2}
uv_align_axis_mapping_dict = {'U': 0, 'V': 1}
bridge_interpolation_items = [('LINEAR', 'Linear', ''),
('PATH', 'Path', ''),
('SURFACE', 'Surface', '')]
view_axis_items = [("FRONT", "Front", ""),
("BACK", "Back", ""),
("LEFT", "Left", ""),
("RIGHT", "Right", ""),
("TOP", "Top", ""),
("BOTTOM", "Bottom", "")]
group_location_items = [('AVERAGE', 'Average', ''),
('ACTIVE', 'Active', ''),
('CURSOR', 'Cursor', ''),
('WORLD', 'World', '')]
cursor_spin_angle_preset_items = [('None', 'None', ''),
('30', '30', ''),
('45', '45', ''),
('60', '60', ''),
('90', '90', ''),
('135', '135', ''),
('180', '180', '')]
# PIES
eevee_preset_items = [('NONE', 'None', ''),
('LOW', 'Low', 'Use Scene Lights, Ambient Occlusion and Screen Space Reflections'),
('HIGH', 'High', 'Use Bloom and Screen Space Refractions'),
('ULTRA', 'Ultra', 'Use Scene World and Volumetrics.\nCreate Principled Volume node if necessary')]
render_engine_items = [('BLENDER_EEVEE', 'Eevee', ''),
('CYCLES', 'Cycles', '')]
shading_light_items = [('STUDIO', 'Studio', ''),
('MATCAP', 'Matcap', ''),
('FLAT', 'Flat', '')]
cycles_device_items = [('CPU', 'CPU', ''),
('GPU', 'GPU', '')]
bc_orientation_items = [('LOCAL', 'Local', ''),
('NEAREST', 'Nearest', ''),
('LONGEST', 'Longest', '')]
tool_name_mapping_dict = {'BC': 'BoxCutter',
'Hops': 'HardOps',
'builtin.select_box': 'Select Box',
'machin3.tool_hyper_cursor': 'Hyper Cursor',
'machin3.tool_hyper_cursor_simple': 'Simple Hyper Cursor'}
# MODIFIERS
mirror_props = ['type',
'merge_threshold',
'mirror_object',
'mirror_offset_u',
'mirror_offset_v',
'offset_u',
'offset_v',
'show_expanded',
'show_in_editmode',
'show_on_cage',
'show_render',
'show_viewport',
'use_axis',
'use_bisect_axis',
'use_bisect_flip_axis',
'use_clip',
'use_mirror_merge',
'use_mirror_u',
'use_mirror_v',
'use_mirror_vertex_groups']