svn merge ^/trunk/blender -r43693:43733
[blender-staging.git] / release / scripts / presets / keyconfig / maya.py
1 # Configuration Maya
2 import bpy
3
4 wm = bpy.context.window_manager
5 kc = wm.keyconfigs.new('maya')
6
7 # Map 3D View
8 km = kc.keymaps.new('3D View', space_type='VIEW_3D', region_type='WINDOW', modal=False)
9
10 kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', any=True)
11 kmi.properties.release_confirm = True
12 kmi = km.keymap_items.new('view3d.cursor3d', 'ACTIONMOUSE', 'PRESS')
13 kmi = km.keymap_items.new('view3d.rotate', 'LEFTMOUSE', 'PRESS', alt=True)
14 kmi = km.keymap_items.new('view3d.move', 'MIDDLEMOUSE', 'PRESS', alt=True)
15 kmi = km.keymap_items.new('view3d.zoom', 'RIGHTMOUSE', 'PRESS', alt=True)
16 kmi = km.keymap_items.new('view3d.view_selected', 'NUMPAD_PERIOD', 'PRESS')
17 kmi = km.keymap_items.new('view3d.view_center_cursor', 'NUMPAD_PERIOD', 'PRESS', ctrl=True)
18 kmi = km.keymap_items.new('view3d.fly', 'F', 'PRESS', shift=True)
19 kmi = km.keymap_items.new('view3d.smoothview', 'TIMER1', 'ANY', any=True)
20 kmi = km.keymap_items.new('view3d.rotate', 'TRACKPADPAN', 'ANY', alt=True)
21 kmi = km.keymap_items.new('view3d.rotate', 'MOUSEROTATE', 'ANY')
22 kmi = km.keymap_items.new('view3d.move', 'TRACKPADPAN', 'ANY')
23 kmi = km.keymap_items.new('view3d.zoom', 'TRACKPADZOOM', 'ANY')
24 kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_PLUS', 'PRESS')
25 kmi.properties.delta = 1
26 kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_MINUS', 'PRESS')
27 kmi.properties.delta = -1
28 kmi = km.keymap_items.new('view3d.zoom', 'EQUAL', 'PRESS', ctrl=True)
29 kmi.properties.delta = 1
30 kmi = km.keymap_items.new('view3d.zoom', 'MINUS', 'PRESS', ctrl=True)
31 kmi.properties.delta = -1
32 kmi = km.keymap_items.new('view3d.zoom', 'WHEELINMOUSE', 'PRESS')
33 kmi.properties.delta = 1
34 kmi = km.keymap_items.new('view3d.zoom', 'WHEELOUTMOUSE', 'PRESS')
35 kmi.properties.delta = -1
36 kmi = km.keymap_items.new('view3d.view_all', 'HOME', 'PRESS')
37 kmi.properties.center = False
38 kmi = km.keymap_items.new('view3d.view_all', 'C', 'PRESS', shift=True)
39 kmi.properties.center = True
40 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_0', 'PRESS')
41 kmi.properties.type = 'CAMERA'
42 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS')
43 kmi.properties.type = 'FRONT'
44 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_2', 'PRESS')
45 kmi.properties.type = 'ORBITDOWN'
46 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS')
47 kmi.properties.type = 'RIGHT'
48 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_4', 'PRESS')
49 kmi.properties.type = 'ORBITLEFT'
50 kmi = km.keymap_items.new('view3d.view_persportho', 'NUMPAD_5', 'PRESS')
51 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_6', 'PRESS')
52 kmi.properties.type = 'ORBITRIGHT'
53 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS')
54 kmi.properties.type = 'TOP'
55 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_8', 'PRESS')
56 kmi.properties.type = 'ORBITUP'
57 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', ctrl=True)
58 kmi.properties.type = 'BACK'
59 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', ctrl=True)
60 kmi.properties.type = 'LEFT'
61 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', ctrl=True)
62 kmi.properties.type = 'BOTTOM'
63 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_2', 'PRESS', ctrl=True)
64 kmi.properties.type = 'PANDOWN'
65 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_4', 'PRESS', ctrl=True)
66 kmi.properties.type = 'PANLEFT'
67 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_6', 'PRESS', ctrl=True)
68 kmi.properties.type = 'PANRIGHT'
69 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_8', 'PRESS', ctrl=True)
70 kmi.properties.type = 'PANUP'
71 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', ctrl=True)
72 kmi.properties.type = 'PANRIGHT'
73 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True)
74 kmi.properties.type = 'PANLEFT'
75 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', shift=True)
76 kmi.properties.type = 'PANUP'
77 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
78 kmi.properties.type = 'PANDOWN'
79 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', ctrl=True, alt=True)
80 kmi.properties.type = 'ORBITLEFT'
81 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True, alt=True)
82 kmi.properties.type = 'ORBITRIGHT'
83 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', shift=True, alt=True)
84 kmi.properties.type = 'ORBITUP'
85 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', shift=True, alt=True)
86 kmi.properties.type = 'ORBITDOWN'
87 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True)
88 kmi.properties.align_active = True
89 kmi.properties.type = 'FRONT'
90 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True)
91 kmi.properties.align_active = True
92 kmi.properties.type = 'RIGHT'
93 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True)
94 kmi.properties.align_active = True
95 kmi.properties.type = 'TOP'
96 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True, ctrl=True)
97 kmi.properties.align_active = True
98 kmi.properties.type = 'BACK'
99 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True, ctrl=True)
100 kmi.properties.align_active = True
101 kmi.properties.type = 'LEFT'
102 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True, ctrl=True)
103 kmi.properties.align_active = True
104 kmi.properties.type = 'BOTTOM'
105 kmi = km.keymap_items.new('view3d.localview', 'NUMPAD_SLASH', 'PRESS')
106 kmi = km.keymap_items.new('view3d.layers', 'ACCENT_GRAVE', 'PRESS')
107 kmi.properties.nr = 0
108 kmi = km.keymap_items.new('view3d.layers', 'ONE', 'PRESS', any=True)
109 kmi.properties.nr = 1
110 kmi = km.keymap_items.new('view3d.layers', 'TWO', 'PRESS', any=True)
111 kmi.properties.nr = 2
112 kmi = km.keymap_items.new('view3d.layers', 'THREE', 'PRESS', any=True)
113 kmi.properties.nr = 3
114 kmi = km.keymap_items.new('view3d.layers', 'FOUR', 'PRESS', any=True)
115 kmi.properties.nr = 4
116 kmi = km.keymap_items.new('view3d.layers', 'FIVE', 'PRESS', any=True)
117 kmi.properties.nr = 5
118 kmi = km.keymap_items.new('view3d.layers', 'SIX', 'PRESS', any=True)
119 kmi.properties.nr = 6
120 kmi = km.keymap_items.new('view3d.layers', 'SEVEN', 'PRESS', any=True)
121 kmi.properties.nr = 7
122 kmi = km.keymap_items.new('view3d.layers', 'EIGHT', 'PRESS', any=True)
123 kmi.properties.nr = 8
124 kmi = km.keymap_items.new('view3d.layers', 'NINE', 'PRESS', any=True)
125 kmi.properties.nr = 9
126 kmi = km.keymap_items.new('view3d.layers', 'ZERO', 'PRESS', any=True)
127 kmi.properties.nr = 10
128 kmi = km.keymap_items.new('wm.context_toggle_enum', 'Z', 'PRESS')
129 kmi.properties.data_path = 'space_data.viewport_shade'
130 kmi.properties.value_1 = 'SOLID'
131 kmi.properties.value_2 = 'WIREFRAME'
132 kmi = km.keymap_items.new('wm.context_toggle_enum', 'Z', 'PRESS', alt=True)
133 kmi.properties.data_path = 'space_data.viewport_shade'
134 kmi.properties.value_1 = 'TEXTURED'
135 kmi.properties.value_2 = 'SOLID'
136 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS')
137 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True)
138 kmi.properties.extend = True
139 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
140 kmi.properties.center = True
141 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', alt=True)
142 kmi.properties.enumerate = True
143 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
144 kmi.properties.center = True
145 kmi.properties.extend = True
146 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
147 kmi.properties.center = True
148 kmi.properties.enumerate = True
149 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
150 kmi.properties.enumerate = True
151 kmi.properties.extend = True
152 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
153 kmi.properties.center = True
154 kmi.properties.enumerate = True
155 kmi.properties.extend = True
156 kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY')
157 kmi.properties.extend = False
158 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True)
159 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
160 kmi.properties.deselect = True
161 kmi = km.keymap_items.new('view3d.select_circle', 'C', 'PRESS')
162 kmi = km.keymap_items.new('view3d.clip_border', 'B', 'PRESS', alt=True)
163 kmi = km.keymap_items.new('view3d.zoom_border', 'B', 'PRESS', shift=True)
164 kmi = km.keymap_items.new('view3d.render_border', 'B', 'PRESS', shift=True)
165 kmi = km.keymap_items.new('view3d.camera_to_view', 'NUMPAD_0', 'PRESS', ctrl=True, alt=True)
166 kmi = km.keymap_items.new('view3d.object_as_camera', 'NUMPAD_0', 'PRESS', ctrl=True)
167 kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True)
168 kmi.properties.name = 'VIEW3D_MT_snap'
169 kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS')
170 kmi.properties.data_path = 'space_data.pivot_point'
171 kmi.properties.value = 'BOUNDING_BOX_CENTER'
172 kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS', ctrl=True)
173 kmi.properties.data_path = 'space_data.pivot_point'
174 kmi.properties.value = 'MEDIAN_POINT'
175 kmi = km.keymap_items.new('wm.context_toggle', 'COMMA', 'PRESS', alt=True)
176 kmi.properties.data_path = 'space_data.use_pivot_point'
177 kmi = km.keymap_items.new('wm.context_toggle', 'Q', 'PRESS')
178 kmi.properties.data_path = 'space_data.show_manipulator'
179 kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS')
180 kmi.properties.data_path = 'space_data.pivot_point'
181 kmi.properties.value = 'CURSOR'
182 kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', ctrl=True)
183 kmi.properties.data_path = 'space_data.pivot_point'
184 kmi.properties.value = 'INDIVIDUAL_ORIGINS'
185 kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', alt=True)
186 kmi.properties.data_path = 'space_data.pivot_point'
187 kmi.properties.value = 'ACTIVE_ELEMENT'
188 kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS', shift=True)
189 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
190 kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS', shift=True)
191 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS', shift=True)
192 kmi = km.keymap_items.new('transform.warp', 'W', 'PRESS', shift=True)
193 kmi = km.keymap_items.new('transform.tosphere', 'S', 'PRESS', shift=True, alt=True)
194 kmi = km.keymap_items.new('transform.shear', 'S', 'PRESS', shift=True, ctrl=True, alt=True)
195 kmi = km.keymap_items.new('transform.select_orientation', 'SPACE', 'PRESS', alt=True)
196 kmi = km.keymap_items.new('transform.create_orientation', 'SPACE', 'PRESS', ctrl=True, alt=True)
197 kmi.properties.use = True
198 kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
199 kmi = km.keymap_items.new('wm.context_toggle', 'TAB', 'PRESS', shift=True)
200 kmi.properties.data_path = 'tool_settings.use_snap'
201 kmi = km.keymap_items.new('transform.snap_type', 'TAB', 'PRESS', shift=True, ctrl=True)
202 kmi = km.keymap_items.new('view3d.enable_manipulator', 'W', 'PRESS')
203 kmi.properties.translate = True
204 kmi = km.keymap_items.new('view3d.enable_manipulator', 'E', 'PRESS')
205 kmi.properties.rotate = True
206 kmi = km.keymap_items.new('view3d.enable_manipulator', 'R', 'PRESS')
207 kmi.properties.scale = True
208 kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY', shift=True)
209 kmi.properties.extend = True
210
211 # Map Object Mode
212 km = kc.keymaps.new('Object Mode', space_type='EMPTY', region_type='WINDOW', modal=False)
213
214 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
215 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
216 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
217 kmi.properties.data_path = 'tool_settings.proportional_edit'
218 kmi.properties.value_1 = 'DISABLED'
219 kmi.properties.value_2 = 'ENABLED'
220 kmi = km.keymap_items.new('view3d.game_start', 'P', 'PRESS')
221 kmi = km.keymap_items.new('object.select_all', 'A', 'PRESS')
222 kmi = km.keymap_items.new('object.select_all', 'I', 'PRESS', ctrl=True)
223 kmi.properties.action = 'INVERT'
224 kmi = km.keymap_items.new('object.select_linked', 'L', 'PRESS', shift=True)
225 kmi = km.keymap_items.new('object.select_grouped', 'G', 'PRESS', shift=True)
226 kmi = km.keymap_items.new('object.select_mirror', 'M', 'PRESS', shift=True, ctrl=True)
227 kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
228 kmi.properties.direction = 'PARENT'
229 kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
230 kmi.properties.direction = 'PARENT'
231 kmi.properties.extend = True
232 kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
233 kmi.properties.direction = 'CHILD'
234 kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
235 kmi.properties.direction = 'CHILD'
236 kmi.properties.extend = True
237 kmi = km.keymap_items.new('object.parent_set', 'P', 'PRESS', ctrl=True)
238 kmi = km.keymap_items.new('object.parent_no_inverse_set', 'P', 'PRESS', shift=True, ctrl=True)
239 kmi = km.keymap_items.new('object.parent_clear', 'P', 'PRESS', alt=True)
240 kmi = km.keymap_items.new('object.track_set', 'T', 'PRESS', ctrl=True)
241 kmi = km.keymap_items.new('object.track_clear', 'T', 'PRESS', alt=True)
242 kmi = km.keymap_items.new('object.constraint_add_with_targets', 'C', 'PRESS', shift=True, ctrl=True)
243 kmi = km.keymap_items.new('object.constraints_clear', 'C', 'PRESS', ctrl=True, alt=True)
244 kmi = km.keymap_items.new('object.location_clear', 'G', 'PRESS', alt=True)
245 kmi = km.keymap_items.new('object.rotation_clear', 'R', 'PRESS', alt=True)
246 kmi = km.keymap_items.new('object.scale_clear', 'S', 'PRESS', alt=True)
247 kmi = km.keymap_items.new('object.origin_clear', 'O', 'PRESS', alt=True)
248 kmi = km.keymap_items.new('object.hide_view_clear', 'H', 'PRESS', alt=True)
249 kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS')
250 kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS', shift=True)
251 kmi.properties.unselected = True
252 kmi = km.keymap_items.new('object.move_to_layer', 'M', 'PRESS')
253 kmi = km.keymap_items.new('object.delete', 'X', 'PRESS')
254 kmi = km.keymap_items.new('object.delete', 'DEL', 'PRESS')
255 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
256 kmi.properties.name = 'INFO_MT_add'
257 kmi = km.keymap_items.new('object.duplicates_make_real', 'A', 'PRESS', shift=True, ctrl=True)
258 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', ctrl=True)
259 kmi.properties.name = 'VIEW3D_MT_object_apply'
260 kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
261 kmi.properties.name = 'VIEW3D_MT_make_single_user'
262 kmi = km.keymap_items.new('wm.call_menu', 'L', 'PRESS', ctrl=True)
263 kmi.properties.name = 'VIEW3D_MT_make_links'
264 kmi = km.keymap_items.new('object.duplicate_move', 'D', 'PRESS', shift=True)
265 kmi = km.keymap_items.new('object.duplicate_move_linked', 'D', 'PRESS', alt=True)
266 kmi = km.keymap_items.new('object.join', 'J', 'PRESS', ctrl=True)
267 kmi = km.keymap_items.new('object.convert', 'C', 'PRESS', alt=True)
268 kmi = km.keymap_items.new('object.proxy_make', 'P', 'PRESS', ctrl=True, alt=True)
269 kmi = km.keymap_items.new('object.make_local', 'L', 'PRESS')
270 kmi = km.keymap_items.new('anim.keyframe_insert_menu', 'I', 'PRESS')
271 kmi = km.keymap_items.new('anim.keyframe_delete_v3d', 'I', 'PRESS', alt=True)
272 kmi = km.keymap_items.new('anim.keying_set_active_set', 'I', 'PRESS', shift=True, ctrl=True, alt=True)
273 kmi = km.keymap_items.new('group.create', 'G', 'PRESS', ctrl=True)
274 kmi = km.keymap_items.new('group.objects_remove', 'G', 'PRESS', ctrl=True, alt=True)
275 kmi = km.keymap_items.new('group.objects_add_active', 'G', 'PRESS', shift=True, ctrl=True)
276 kmi = km.keymap_items.new('group.objects_remove_active', 'G', 'PRESS', shift=True, alt=True)
277 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', ctrl=True)
278 kmi.properties.name = 'VIEW3D_MT_object_specials'
279 kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS', ctrl=True)
280 kmi.properties.level = 0
281 kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS', ctrl=True)
282 kmi.properties.level = 1
283 kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS', ctrl=True)
284 kmi.properties.level = 2
285 kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS', ctrl=True)
286 kmi.properties.level = 3
287 kmi = km.keymap_items.new('object.subdivision_set', 'FOUR', 'PRESS', ctrl=True)
288 kmi.properties.level = 4
289 kmi = km.keymap_items.new('object.subdivision_set', 'FIVE', 'PRESS', ctrl=True)
290 kmi.properties.level = 5
291 kmi = km.keymap_items.new('object.select_all', 'SELECTMOUSE', 'CLICK')
292 kmi.properties.action = 'DESELECT'
293
294 # Map Mesh
295 km = kc.keymaps.new('Mesh', space_type='EMPTY', region_type='WINDOW', modal=False)
296
297 kmi = km.keymap_items.new('mesh.loopcut_slide', 'R', 'PRESS', ctrl=True)
298 kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
299 kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
300 kmi.properties.extend = True
301 kmi = km.keymap_items.new('mesh.edgering_select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
302 kmi = km.keymap_items.new('mesh.edgering_select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
303 kmi.properties.extend = True
304 kmi = km.keymap_items.new('mesh.select_shortest_path', 'SELECTMOUSE', 'PRESS', ctrl=True)
305 kmi = km.keymap_items.new('mesh.select_all', 'A', 'PRESS')
306 kmi = km.keymap_items.new('mesh.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
307 kmi = km.keymap_items.new('mesh.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
308 kmi = km.keymap_items.new('mesh.select_all', 'I', 'PRESS', ctrl=True)
309 kmi.properties.action = 'INVERT'
310 kmi = km.keymap_items.new('mesh.select_non_manifold', 'M', 'PRESS', shift=True, ctrl=True, alt=True)
311 kmi = km.keymap_items.new('mesh.select_linked', 'L', 'PRESS', ctrl=True)
312 kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS')
313 kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS', shift=True)
314 kmi.properties.deselect = True
315 kmi = km.keymap_items.new('mesh.faces_select_linked_flat', 'F', 'PRESS', shift=True, ctrl=True, alt=True)
316 kmi.properties.sharpness = 135.0
317 kmi = km.keymap_items.new('mesh.select_similar', 'G', 'PRESS', shift=True)
318 kmi = km.keymap_items.new('wm.call_menu', 'TAB', 'PRESS', ctrl=True)
319 kmi.properties.name = 'VIEW3D_MT_edit_mesh_select_mode'
320 kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS')
321 kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS', shift=True)
322 kmi.properties.unselected = True
323 kmi = km.keymap_items.new('mesh.reveal', 'H', 'PRESS', alt=True)
324 kmi = km.keymap_items.new('mesh.normals_make_consistent', 'N', 'PRESS', ctrl=True)
325 kmi = km.keymap_items.new('mesh.normals_make_consistent', 'N', 'PRESS', shift=True, ctrl=True)
326 kmi.properties.inside = True
327 kmi = km.keymap_items.new('view3d.edit_mesh_extrude_move_normal', 'E', 'PRESS', ctrl=True)
328 kmi = km.keymap_items.new('view3d.edit_mesh_extrude_individual_move', 'E', 'PRESS', shift=True)
329 kmi = km.keymap_items.new('wm.call_menu', 'E', 'PRESS', alt=True)
330 kmi.properties.name = 'VIEW3D_MT_edit_mesh_extrude'
331 kmi = km.keymap_items.new('mesh.spin', 'R', 'PRESS', alt=True)
332 kmi = km.keymap_items.new('mesh.fill', 'F', 'PRESS', alt=True)
333 kmi = km.keymap_items.new('mesh.beautify_fill', 'F', 'PRESS', shift=True, alt=True)
334 kmi = km.keymap_items.new('mesh.quads_convert_to_tris', 'T', 'PRESS', ctrl=True)
335 kmi = km.keymap_items.new('mesh.tris_convert_to_quads', 'J', 'PRESS', alt=True)
336 kmi = km.keymap_items.new('mesh.edge_flip', 'F', 'PRESS', shift=True, ctrl=True)
337 kmi = km.keymap_items.new('mesh.rip_move', 'V', 'PRESS')
338 kmi = km.keymap_items.new('mesh.merge', 'M', 'PRESS', alt=True)
339 kmi = km.keymap_items.new('transform.shrink_fatten', 'S', 'PRESS', ctrl=True, alt=True)
340 kmi = km.keymap_items.new('mesh.edge_face_add', 'F', 'PRESS')
341 kmi = km.keymap_items.new('mesh.duplicate_move', 'D', 'PRESS', shift=True)
342 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
343 kmi.properties.name = 'INFO_MT_mesh_add'
344 kmi = km.keymap_items.new('mesh.separate', 'P', 'PRESS')
345 kmi = km.keymap_items.new('mesh.split', 'Y', 'PRESS')
346 kmi = km.keymap_items.new('mesh.dupli_extrude_cursor', 'ACTIONMOUSE', 'CLICK', ctrl=True)
347 kmi = km.keymap_items.new('mesh.delete', 'X', 'PRESS')
348 kmi = km.keymap_items.new('mesh.delete', 'DEL', 'PRESS')
349 kmi = km.keymap_items.new('mesh.knifetool', 'K', 'PRESS')
350 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS', ctrl=True)
351 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', ctrl=True)
352 kmi.properties.name = 'VIEW3D_MT_edit_mesh_specials'
353 kmi = km.keymap_items.new('wm.call_menu', 'F', 'PRESS', ctrl=True)
354 kmi.properties.name = 'VIEW3D_MT_edit_mesh_faces'
355 kmi = km.keymap_items.new('wm.call_menu', 'E', 'PRESS', ctrl=True)
356 kmi.properties.name = 'VIEW3D_MT_edit_mesh_edges'
357 kmi = km.keymap_items.new('wm.call_menu', 'V', 'PRESS', ctrl=True)
358 kmi.properties.name = 'VIEW3D_MT_edit_mesh_vertices'
359 kmi = km.keymap_items.new('wm.call_menu', 'H', 'PRESS', ctrl=True)
360 kmi.properties.name = 'VIEW3D_MT_hook'
361 kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
362 kmi.properties.name = 'VIEW3D_MT_uv_map'
363 kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', ctrl=True)
364 kmi.properties.name = 'VIEW3D_MT_vertex_group'
365 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
366 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
367 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
368 kmi.properties.data_path = 'tool_settings.proportional_edit'
369 kmi.properties.value_1 = 'DISABLED'
370 kmi.properties.value_2 = 'ENABLED'
371 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
372 kmi.properties.data_path = 'tool_settings.proportional_edit'
373 kmi.properties.value_1 = 'DISABLED'
374 kmi.properties.value_2 = 'CONNECTED'
375 kmi = km.keymap_items.new('mesh.select_all', 'SELECTMOUSE', 'CLICK')
376 kmi.properties.action = 'DESELECT'
377
378 wm.keyconfigs.active = kc