Merge branch 'master' into blender2.8
[blender.git] / release / scripts / presets / keyconfig / maya.py
1 # Configuration Maya
2 import bpy
3 import os
4
5 wm = bpy.context.window_manager
6 kc = wm.keyconfigs.new(os.path.splitext(os.path.basename(__file__))[0])
7
8 # Map Window
9 km = kc.keymaps.new('Window', space_type='EMPTY', region_type='WINDOW', modal=False)
10
11 kmi = km.keymap_items.new('wm.window_new', 'W', 'PRESS', ctrl=True, alt=True)
12 kmi = km.keymap_items.new('wm.read_homefile', 'N', 'PRESS', ctrl=True)
13 kmi = km.keymap_items.new('wm.save_homefile', 'U', 'PRESS', ctrl=True)
14 kmi = km.keymap_items.new('wm.call_menu', 'O', 'PRESS', shift=True, ctrl=True)
15 kmi.properties.name = 'INFO_MT_file_open_recent'
16 kmi = km.keymap_items.new('wm.open_mainfile', 'O', 'PRESS', ctrl=True)
17 kmi = km.keymap_items.new('wm.open_mainfile', 'F1', 'PRESS')
18 kmi = km.keymap_items.new('wm.link', 'O', 'PRESS', ctrl=True, alt=True)
19 kmi = km.keymap_items.new('wm.append', 'F1', 'PRESS', shift=True)
20 kmi.properties.link = False
21 kmi.properties.instance_groups = False
22 kmi = km.keymap_items.new('wm.save_mainfile', 'S', 'PRESS', ctrl=True)
23 kmi = km.keymap_items.new('wm.save_as_mainfile', 'S', 'PRESS', shift=True, ctrl=True)
24 kmi = km.keymap_items.new('wm.save_as_mainfile', 'F2', 'PRESS')
25 kmi = km.keymap_items.new('wm.save_as_mainfile', 'S', 'PRESS', ctrl=True, alt=True)
26 kmi.properties.copy = True
27 kmi = km.keymap_items.new('wm.window_fullscreen_toggle', 'F11', 'PRESS', alt=True)
28 kmi = km.keymap_items.new('wm.quit_blender', 'Q', 'PRESS', ctrl=True)
29 kmi = km.keymap_items.new('wm.redraw_timer', 'T', 'PRESS', ctrl=True, alt=True)
30 kmi = km.keymap_items.new('wm.debug_menu', 'D', 'PRESS', ctrl=True, alt=True)
31 kmi = km.keymap_items.new('wm.search_menu', 'SPACE', 'PRESS', ctrl=True)
32 kmi = km.keymap_items.new('wm.call_menu', 'NDOF_BUTTON_MENU', 'PRESS')
33 kmi.properties.name = 'USERPREF_MT_ndof_settings'
34 kmi = km.keymap_items.new('wm.context_set_enum', 'F2', 'PRESS', shift=True)
35 kmi.properties.data_path = 'area.type'
36 kmi.properties.value = 'LOGIC_EDITOR'
37 kmi = km.keymap_items.new('wm.context_set_enum', 'F3', 'PRESS', shift=True)
38 kmi.properties.data_path = 'area.type'
39 kmi.properties.value = 'NODE_EDITOR'
40 kmi = km.keymap_items.new('wm.context_set_enum', 'F4', 'PRESS', shift=True)
41 kmi.properties.data_path = 'area.type'
42 kmi.properties.value = 'CONSOLE'
43 kmi = km.keymap_items.new('wm.context_set_enum', 'F5', 'PRESS', shift=True)
44 kmi.properties.data_path = 'area.type'
45 kmi.properties.value = 'VIEW_3D'
46 kmi = km.keymap_items.new('wm.context_set_enum', 'F6', 'PRESS', shift=True)
47 kmi.properties.data_path = 'area.type'
48 kmi.properties.value = 'GRAPH_EDITOR'
49 kmi = km.keymap_items.new('wm.context_set_enum', 'F7', 'PRESS', shift=True)
50 kmi.properties.data_path = 'area.type'
51 kmi.properties.value = 'PROPERTIES'
52 kmi = km.keymap_items.new('wm.context_set_enum', 'F8', 'PRESS', shift=True)
53 kmi.properties.data_path = 'area.type'
54 kmi.properties.value = 'SEQUENCE_EDITOR'
55 kmi = km.keymap_items.new('wm.context_set_enum', 'F9', 'PRESS', shift=True)
56 kmi.properties.data_path = 'area.type'
57 kmi.properties.value = 'OUTLINER'
58 kmi = km.keymap_items.new('wm.context_set_enum', 'F10', 'PRESS', shift=True)
59 kmi.properties.data_path = 'area.type'
60 kmi.properties.value = 'IMAGE_EDITOR'
61 kmi = km.keymap_items.new('wm.context_set_enum', 'F11', 'PRESS', shift=True)
62 kmi.properties.data_path = 'area.type'
63 kmi.properties.value = 'TEXT_EDITOR'
64 kmi = km.keymap_items.new('wm.context_set_enum', 'F12', 'PRESS', shift=True)
65 kmi.properties.data_path = 'area.type'
66 kmi.properties.value = 'DOPESHEET_EDITOR'
67 kmi = km.keymap_items.new('wm.context_scale_float', 'NDOF_BUTTON_PLUS', 'PRESS')
68 kmi.properties.data_path = 'user_preferences.inputs.ndof_sensitivity'
69 kmi.properties.value = 1.1
70 kmi = km.keymap_items.new('wm.context_scale_float', 'NDOF_BUTTON_MINUS', 'PRESS')
71 kmi.properties.data_path = 'user_preferences.inputs.ndof_sensitivity'
72 kmi.properties.value = 1.0 / 1.1
73 kmi = km.keymap_items.new('wm.context_scale_float', 'NDOF_BUTTON_PLUS', 'PRESS', shift=True)
74 kmi.properties.data_path = 'user_preferences.inputs.ndof_sensitivity'
75 kmi.properties.value = 1.5
76 kmi = km.keymap_items.new('wm.context_scale_float', 'NDOF_BUTTON_MINUS', 'PRESS', shift=True)
77 kmi.properties.data_path = 'user_preferences.inputs.ndof_sensitivity'
78 kmi.properties.value = 1.0 / 1.5
79 kmi = km.keymap_items.new('info.reports_display_update', 'TIMER', 'ANY', any=True)
80
81 # Map Screen
82 km = kc.keymaps.new('Screen', space_type='EMPTY', region_type='WINDOW', modal=False)
83
84 kmi = km.keymap_items.new('screen.animation_step', 'TIMER0', 'ANY', any=True)
85 kmi = km.keymap_items.new('screen.region_blend', 'TIMERREGION', 'ANY', any=True)
86 kmi = km.keymap_items.new('screen.screen_set', 'RIGHT_ARROW', 'PRESS', ctrl=True)
87 kmi.properties.delta = 1
88 kmi = km.keymap_items.new('screen.screen_set', 'LEFT_ARROW', 'PRESS', ctrl=True)
89 kmi.properties.delta = -1
90 kmi = km.keymap_items.new('screen.screen_full_area', 'SPACE', 'PRESS', shift=True)
91 kmi = km.keymap_items.new('screen.screenshot', 'F3', 'PRESS', ctrl=True)
92 kmi = km.keymap_items.new('screen.screencast', 'F3', 'PRESS', alt=True)
93 kmi = km.keymap_items.new('screen.region_quadview', 'SPACE', 'PRESS')
94 kmi = km.keymap_items.new('screen.repeat_history', 'F3', 'PRESS')
95 kmi = km.keymap_items.new('screen.repeat_last', 'G', 'PRESS')
96 kmi = km.keymap_items.new('screen.region_flip', 'F5', 'PRESS')
97 kmi = km.keymap_items.new('screen.redo_last', 'F6', 'PRESS')
98 kmi = km.keymap_items.new('script.reload', 'F8', 'PRESS')
99 kmi = km.keymap_items.new('file.execute', 'RET', 'PRESS')
100 kmi = km.keymap_items.new('file.execute', 'NUMPAD_ENTER', 'PRESS')
101 kmi = km.keymap_items.new('file.cancel', 'ESC', 'PRESS')
102 kmi = km.keymap_items.new('ed.undo', 'Z', 'PRESS', ctrl=True)
103 kmi = km.keymap_items.new('ed.redo', 'Z', 'PRESS', shift=True, ctrl=True)
104 kmi = km.keymap_items.new('ed.undo_history', 'Z', 'PRESS', ctrl=True, alt=True)
105 kmi = km.keymap_items.new('render.render', 'F12', 'PRESS')
106 kmi = km.keymap_items.new('render.render', 'F12', 'PRESS', ctrl=True)
107 kmi.properties.animation = True
108 kmi = km.keymap_items.new('render.view_cancel', 'ESC', 'PRESS')
109 kmi = km.keymap_items.new('render.view_show', 'F11', 'PRESS')
110 kmi = km.keymap_items.new('render.play_rendered_anim', 'F11', 'PRESS', ctrl=True)
111 kmi = km.keymap_items.new('screen.userpref_show', 'U', 'PRESS', ctrl=True, alt=True)
112
113 # Map View2D
114 km = kc.keymaps.new('View2D', space_type='EMPTY', region_type='WINDOW', modal=False)
115
116 kmi = km.keymap_items.new('view2d.scroller_activate', 'LEFTMOUSE', 'PRESS')
117 kmi = km.keymap_items.new('view2d.scroller_activate', 'MIDDLEMOUSE', 'PRESS')
118 kmi = km.keymap_items.new('view2d.pan', 'MIDDLEMOUSE', 'PRESS', alt=True)
119 kmi = km.keymap_items.new('view2d.pan', 'MIDDLEMOUSE', 'PRESS', shift=True)
120 kmi = km.keymap_items.new('view2d.pan', 'TRACKPADPAN', 'ANY')
121 kmi = km.keymap_items.new('view2d.scroll_right', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True)
122 kmi = km.keymap_items.new('view2d.scroll_left', 'WHEELUPMOUSE', 'PRESS', ctrl=True)
123 kmi = km.keymap_items.new('view2d.scroll_down', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
124 kmi = km.keymap_items.new('view2d.scroll_up', 'WHEELUPMOUSE', 'PRESS', shift=True)
125 kmi = km.keymap_items.new('view2d.zoom_out', 'WHEELOUTMOUSE', 'PRESS')
126 kmi = km.keymap_items.new('view2d.zoom_in', 'WHEELINMOUSE', 'PRESS')
127 kmi = km.keymap_items.new('view2d.zoom_out', 'NUMPAD_MINUS', 'PRESS')
128 kmi = km.keymap_items.new('view2d.zoom_in', 'NUMPAD_PLUS', 'PRESS')
129 kmi = km.keymap_items.new('view2d.smoothview', 'TIMER1', 'ANY')
130 kmi = km.keymap_items.new('view2d.scroll_down', 'WHEELDOWNMOUSE', 'PRESS')
131 kmi = km.keymap_items.new('view2d.scroll_up', 'WHEELUPMOUSE', 'PRESS')
132 kmi = km.keymap_items.new('view2d.scroll_right', 'WHEELDOWNMOUSE', 'PRESS')
133 kmi = km.keymap_items.new('view2d.scroll_left', 'WHEELUPMOUSE', 'PRESS')
134 kmi = km.keymap_items.new('view2d.zoom', 'RIGHTMOUSE', 'PRESS', alt=True)
135 kmi = km.keymap_items.new('view2d.zoom', 'TRACKPADZOOM', 'ANY')
136 kmi = km.keymap_items.new('view2d.zoom_border', 'B', 'PRESS', shift=True)
137
138 # Map Frames
139 km = kc.keymaps.new('Frames', space_type='EMPTY', region_type='WINDOW', modal=False)
140
141 kmi = km.keymap_items.new('screen.frame_offset', 'LEFT_ARROW', 'PRESS')
142 kmi.properties.delta = -1
143 kmi = km.keymap_items.new('screen.frame_offset', 'RIGHT_ARROW', 'PRESS')
144 kmi.properties.delta = 1
145 kmi = km.keymap_items.new('screen.frame_offset', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True, alt=True)
146 kmi.properties.delta = 1
147 kmi = km.keymap_items.new('screen.frame_offset', 'WHEELUPMOUSE', 'PRESS', ctrl=True, alt=True)
148 kmi.properties.delta = -1
149 kmi = km.keymap_items.new('screen.frame_jump', 'V', 'PRESS', shift=True, alt=True)
150 kmi.properties.end = False
151 kmi = km.keymap_items.new('screen.keyframe_jump', 'UP_ARROW', 'PRESS')
152 kmi.properties.next = True
153 kmi = km.keymap_items.new('screen.keyframe_jump', 'COMMA', 'PRESS')
154 kmi.properties.next = False
155 kmi = km.keymap_items.new('screen.keyframe_jump', 'MEDIA_LAST', 'PRESS')
156 kmi.properties.next = True
157 kmi = km.keymap_items.new('screen.keyframe_jump', 'MEDIA_FIRST', 'PRESS')
158 kmi.properties.next = False
159 kmi = km.keymap_items.new('screen.animation_play', 'V', 'PRESS', alt=True)
160 kmi = km.keymap_items.new('screen.animation_cancel', 'ESC', 'PRESS')
161 kmi = km.keymap_items.new('screen.animation_play', 'MEDIA_PLAY', 'PRESS')
162 kmi = km.keymap_items.new('screen.animation_cancel', 'MEDIA_STOP', 'PRESS')
163
164 # Map View2D Buttons List
165 km = kc.keymaps.new('View2D Buttons List', space_type='EMPTY', region_type='WINDOW', modal=False)
166
167 kmi = km.keymap_items.new('view2d.scroller_activate', 'LEFTMOUSE', 'PRESS')
168 kmi = km.keymap_items.new('view2d.scroller_activate', 'MIDDLEMOUSE', 'PRESS')
169 kmi = km.keymap_items.new('view2d.pan', 'MIDDLEMOUSE', 'PRESS')
170 kmi = km.keymap_items.new('view2d.pan', 'TRACKPADPAN', 'ANY')
171 kmi = km.keymap_items.new('view2d.scroll_down', 'WHEELDOWNMOUSE', 'PRESS')
172 kmi = km.keymap_items.new('view2d.scroll_up', 'WHEELUPMOUSE', 'PRESS')
173 kmi = km.keymap_items.new('view2d.scroll_down', 'PAGE_DOWN', 'PRESS')
174 kmi.properties.page = True
175 kmi = km.keymap_items.new('view2d.scroll_up', 'PAGE_UP', 'PRESS')
176 kmi.properties.page = True
177 kmi = km.keymap_items.new('view2d.zoom', 'MIDDLEMOUSE', 'PRESS', ctrl=True)
178 kmi = km.keymap_items.new('view2d.zoom', 'TRACKPADZOOM', 'ANY')
179 kmi = km.keymap_items.new('view2d.zoom_out', 'NUMPAD_MINUS', 'PRESS')
180 kmi = km.keymap_items.new('view2d.zoom_in', 'NUMPAD_PLUS', 'PRESS')
181 kmi = km.keymap_items.new('view2d.reset', 'A', 'PRESS')
182
183 # Map Markers
184 km = kc.keymaps.new('Markers', space_type='EMPTY', region_type='WINDOW', modal=False)
185
186 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
187 kmi = km.keymap_items.new('marker.move', 'EVT_TWEAK_S', 'ANY')
188 kmi = km.keymap_items.new('marker.duplicate', 'D', 'PRESS', ctrl=True)
189 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS')
190 kmi.properties.extend = False
191 kmi.properties.camera = False
192 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS', shift=True)
193 kmi.properties.extend = True
194 kmi.properties.camera = False
195 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
196 kmi.properties.extend = False
197 kmi.properties.camera = True
198 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
199 kmi.properties.extend = True
200 kmi.properties.camera = True
201 kmi = km.keymap_items.new('marker.select_border', 'EVT_TWEAK_S', 'ANY')
202 kmi.properties.extend = False
203 kmi = km.keymap_items.new('marker.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
204 kmi = km.keymap_items.new('marker.select_all', 'A', 'PRESS', ctrl=True)
205 kmi = km.keymap_items.new('marker.delete', 'BACK_SPACE', 'PRESS')
206 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
207 kmi = km.keymap_items.new('marker.move', 'W', 'PRESS')
208 kmi = km.keymap_items.new('marker.camera_bind', 'B', 'PRESS', ctrl=True)
209
210 # Map Animation
211 km = kc.keymaps.new('Animation', space_type='EMPTY', region_type='WINDOW', modal=False)
212
213 kmi = km.keymap_items.new('anim.change_frame', 'RIGHTMOUSE', 'PRESS')
214 kmi = km.keymap_items.new('wm.context_toggle', 'T', 'PRESS', ctrl=True)
215 kmi.properties.data_path = 'space_data.show_seconds'
216 kmi = km.keymap_items.new('anim.previewrange_set', 'P', 'PRESS')
217 kmi = km.keymap_items.new('anim.previewrange_clear', 'P', 'PRESS', alt=True)
218
219 # Map Timeline
220 km = kc.keymaps.new('Timeline', space_type='TIMELINE', region_type='WINDOW', modal=False)
221
222 kmi = km.keymap_items.new('time.start_frame_set', 'S', 'PRESS')
223 kmi = km.keymap_items.new('time.end_frame_set', 'E', 'PRESS')
224 kmi = km.keymap_items.new('time.view_all', 'A', 'PRESS')
225
226 # Map Outliner
227 km = kc.keymaps.new('Outliner', space_type='OUTLINER', region_type='WINDOW', modal=False)
228
229 kmi = km.keymap_items.new('outliner.item_rename', 'LEFTMOUSE', 'DOUBLE_CLICK')
230 kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK')
231 kmi.properties.extend = False
232 kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK', shift=True)
233 kmi.properties.extend = True
234 kmi = km.keymap_items.new('outliner.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
235 kmi = km.keymap_items.new('outliner.item_openclose', 'RET', 'PRESS')
236 kmi.properties.all = False
237 kmi = km.keymap_items.new('outliner.item_openclose', 'RET', 'PRESS', shift=True)
238 kmi.properties.all = True
239 kmi = km.keymap_items.new('outliner.item_rename', 'LEFTMOUSE', 'PRESS', ctrl=True)
240 kmi = km.keymap_items.new('outliner.operation', 'RIGHTMOUSE', 'PRESS')
241 kmi = km.keymap_items.new('outliner.show_hierarchy', 'A', 'PRESS')
242 kmi = km.keymap_items.new('outliner.show_active', 'F', 'PRESS')
243 kmi = km.keymap_items.new('outliner.scroll_page', 'PAGE_DOWN', 'PRESS')
244 kmi = km.keymap_items.new('outliner.scroll_page', 'PAGE_UP', 'PRESS')
245 kmi.properties.up = True
246 kmi = km.keymap_items.new('outliner.show_one_level', 'PERIOD', 'PRESS', shift=True)
247 kmi = km.keymap_items.new('outliner.show_one_level', 'COMMA', 'PRESS', shift=True)
248 kmi.properties.open = False
249 kmi = km.keymap_items.new('outliner.selected_toggle', 'A', 'PRESS', ctrl=True)
250 kmi = km.keymap_items.new('outliner.expanded_toggle', 'A', 'PRESS', shift=True)
251 kmi = km.keymap_items.new('outliner.renderability_toggle', 'R', 'PRESS')
252 kmi = km.keymap_items.new('outliner.selectability_toggle', 'S', 'PRESS')
253 kmi = km.keymap_items.new('outliner.visibility_toggle', 'V', 'PRESS')
254 kmi = km.keymap_items.new('outliner.keyingset_add_selected', 'K', 'PRESS')
255 kmi = km.keymap_items.new('outliner.keyingset_remove_selected', 'K', 'PRESS', alt=True)
256 kmi = km.keymap_items.new('anim.keyframe_insert', 'I', 'PRESS')
257 kmi = km.keymap_items.new('anim.keyframe_delete', 'I', 'PRESS', alt=True)
258 kmi = km.keymap_items.new('outliner.drivers_add_selected', 'D', 'PRESS')
259 kmi = km.keymap_items.new('outliner.drivers_delete_selected', 'D', 'PRESS', alt=True)
260
261 # Map Face Mask
262 km = kc.keymaps.new('Face Mask', space_type='EMPTY', region_type='WINDOW', modal=False)
263
264 kmi = km.keymap_items.new('paint.face_select_all', 'A', 'PRESS', ctrl=True)
265 kmi.properties.action = 'SELECT'
266 kmi = km.keymap_items.new('paint.face_select_all', 'I', 'PRESS', ctrl=True)
267 kmi.properties.action = 'INVERT'
268 kmi = km.keymap_items.new('paint.face_select_hide', 'H', 'PRESS', ctrl=True)
269 kmi.properties.unselected = False
270 kmi = km.keymap_items.new('paint.face_select_hide', 'H', 'PRESS', alt=True)
271 kmi.properties.unselected = True
272 kmi = km.keymap_items.new('paint.face_select_reveal', 'H', 'PRESS', shift=True, ctrl=True)
273 kmi = km.keymap_items.new('paint.face_select_linked', 'L', 'PRESS', ctrl=True)
274 kmi = km.keymap_items.new('paint.face_select_linked_pick', 'L', 'PRESS')
275
276 # Map Pose
277 km = kc.keymaps.new('Pose', space_type='EMPTY', region_type='WINDOW', modal=False)
278
279 kmi = km.keymap_items.new('object.parent_set', 'P', 'PRESS')
280 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
281 kmi.properties.name = 'INFO_MT_add'
282 kmi = km.keymap_items.new('pose.hide', 'H', 'PRESS', ctrl=True)
283 kmi.properties.unselected = False
284 kmi = km.keymap_items.new('pose.hide', 'H', 'PRESS', alt=True)
285 kmi.properties.unselected = True
286 kmi = km.keymap_items.new('pose.reveal', 'H', 'PRESS', shift=True)
287 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', ctrl=True, alt=True)
288 kmi.properties.name = 'VIEW3D_MT_pose_apply'
289 kmi = km.keymap_items.new('pose.rot_clear', 'E', 'PRESS', alt=True)
290 kmi = km.keymap_items.new('pose.loc_clear', 'W', 'PRESS', alt=True)
291 kmi = km.keymap_items.new('pose.scale_clear', 'R', 'PRESS', alt=True)
292 kmi = km.keymap_items.new('pose.quaternions_flip', 'F', 'PRESS', alt=True)
293 kmi = km.keymap_items.new('pose.rotation_mode_set', 'R', 'PRESS', ctrl=True)
294 kmi = km.keymap_items.new('pose.copy', 'C', 'PRESS', ctrl=True)
295 kmi = km.keymap_items.new('pose.paste', 'V', 'PRESS', ctrl=True)
296 kmi.properties.flipped = False
297 kmi = km.keymap_items.new('pose.paste', 'V', 'PRESS', shift=True, ctrl=True)
298 kmi.properties.flipped = True
299 kmi = km.keymap_items.new('pose.select_all', 'A', 'PRESS', ctrl=True)
300 kmi.properties.action = 'TOGGLE'
301 kmi = km.keymap_items.new('pose.select_all', 'I', 'PRESS', ctrl=True)
302 kmi.properties.action = 'INVERT'
303 kmi = km.keymap_items.new('pose.select_parent', 'P', 'PRESS', shift=True)
304 kmi = km.keymap_items.new('pose.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
305 kmi.properties.direction = 'PARENT'
306 kmi.properties.extend = False
307 kmi = km.keymap_items.new('pose.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
308 kmi.properties.direction = 'PARENT'
309 kmi.properties.extend = True
310 kmi = km.keymap_items.new('pose.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
311 kmi.properties.direction = 'CHILD'
312 kmi.properties.extend = False
313 kmi = km.keymap_items.new('pose.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
314 kmi.properties.direction = 'CHILD'
315 kmi.properties.extend = True
316 kmi = km.keymap_items.new('pose.select_linked', 'L', 'PRESS')
317 kmi = km.keymap_items.new('pose.select_grouped', 'G', 'PRESS', shift=True)
318 kmi = km.keymap_items.new('pose.select_mirror', 'F', 'PRESS', shift=True)
319 kmi.properties.only_active = True
320 kmi = km.keymap_items.new('pose.constraint_add_with_targets', 'C', 'PRESS', shift=True, ctrl=True)
321 kmi = km.keymap_items.new('pose.constraints_clear', 'C', 'PRESS', ctrl=True, alt=True)
322 kmi = km.keymap_items.new('pose.ik_add', 'I', 'PRESS', shift=True)
323 kmi = km.keymap_items.new('pose.ik_clear', 'I', 'PRESS', ctrl=True, alt=True)
324 kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', ctrl=True)
325 kmi.properties.name = 'VIEW3D_MT_pose_group'
326 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS')
327 kmi.properties.name = 'VIEW3D_MT_bone_options_toggle'
328 kmi = km.keymap_items.new('armature.layers_show_all', 'ACCENT_GRAVE', 'PRESS', ctrl=True)
329 kmi = km.keymap_items.new('armature.armature_layers', 'M', 'PRESS', shift=True)
330 kmi = km.keymap_items.new('pose.bone_layers', 'M', 'PRESS')
331 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', ctrl=True, alt=True)
332 kmi.properties.mode = 'BONE_SIZE'
333 kmi = km.keymap_items.new('anim.keyframe_insert_menu', 'S', 'PRESS')
334 kmi = km.keymap_items.new('anim.keyframe_delete_v3d', 'S', 'PRESS', alt=True)
335 kmi = km.keymap_items.new('anim.keying_set_active_set', 'I', 'PRESS', shift=True, ctrl=True, alt=True)
336 kmi = km.keymap_items.new('poselib.browse_interactive', 'L', 'PRESS', ctrl=True)
337 kmi = km.keymap_items.new('poselib.pose_add', 'L', 'PRESS', shift=True)
338 kmi = km.keymap_items.new('poselib.pose_remove', 'L', 'PRESS', alt=True)
339 kmi = km.keymap_items.new('poselib.pose_rename', 'L', 'PRESS', shift=True, ctrl=True)
340 kmi = km.keymap_items.new('pose.copy', 'C', 'PRESS', oskey=True)
341 kmi = km.keymap_items.new('pose.paste', 'V', 'PRESS', oskey=True)
342 kmi = km.keymap_items.new('pose.paste', 'V', 'PRESS', shift=True, oskey=True)
343 kmi.properties.flipped = True
344
345 # Map Object Mode
346 km = kc.keymaps.new('Object Mode', space_type='EMPTY', region_type='WINDOW', modal=False)
347
348 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
349 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
350 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
351 kmi.properties.data_path = 'tool_settings.proportional_edit'
352 kmi.properties.value_1 = 'DISABLED'
353 kmi.properties.value_2 = 'ENABLED'
354 kmi = km.keymap_items.new('object.select_all', 'A', 'PRESS', ctrl=True)
355 kmi.properties.action = 'TOGGLE'
356 kmi = km.keymap_items.new('object.select_all', 'I', 'PRESS', ctrl=True)
357 kmi.properties.action = 'INVERT'
358 kmi = km.keymap_items.new('object.select_linked', 'L', 'PRESS', shift=True)
359 kmi = km.keymap_items.new('object.select_grouped', 'G', 'PRESS', shift=True)
360 kmi = km.keymap_items.new('object.select_mirror', 'M', 'PRESS', shift=True, ctrl=True)
361 kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
362 kmi.properties.direction = 'PARENT'
363 kmi.properties.extend = False
364 kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
365 kmi.properties.direction = 'PARENT'
366 kmi.properties.extend = True
367 kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
368 kmi.properties.direction = 'CHILD'
369 kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
370 kmi.properties.direction = 'CHILD'
371 kmi.properties.extend = True
372 kmi = km.keymap_items.new('object.parent_set', 'P', 'PRESS')
373 kmi = km.keymap_items.new('object.parent_no_inverse_set', 'P', 'PRESS', shift=True, ctrl=True)
374 kmi = km.keymap_items.new('object.parent_clear', 'P', 'PRESS', shift=True)
375 kmi = km.keymap_items.new('object.track_set', 'T', 'PRESS', ctrl=True)
376 kmi = km.keymap_items.new('object.track_clear', 'T', 'PRESS', alt=True)
377 kmi = km.keymap_items.new('object.constraint_add_with_targets', 'C', 'PRESS', shift=True, ctrl=True)
378 kmi = km.keymap_items.new('object.constraints_clear', 'C', 'PRESS', ctrl=True, alt=True)
379 kmi = km.keymap_items.new('object.location_clear', 'W', 'PRESS', alt=True)
380 kmi = km.keymap_items.new('object.rotation_clear', 'E', 'PRESS', alt=True)
381 kmi = km.keymap_items.new('object.scale_clear', 'R', 'PRESS', alt=True)
382 kmi = km.keymap_items.new('object.origin_clear', 'O', 'PRESS', alt=True)
383 kmi = km.keymap_items.new('object.hide_view_clear', 'H', 'PRESS', shift=True, ctrl=True)
384 kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS', ctrl=True)
385 kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS', alt=True)
386 kmi.properties.unselected = True
387 kmi = km.keymap_items.new('object.delete', 'BACK_SPACE', 'PRESS')
388 kmi = km.keymap_items.new('object.delete', 'DEL', 'PRESS')
389 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
390 kmi.properties.name = 'INFO_MT_add'
391 kmi = km.keymap_items.new('object.duplicates_make_real', 'A', 'PRESS', shift=True, ctrl=True)
392 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', ctrl=True, alt=True)
393 kmi.properties.name = 'VIEW3D_MT_object_apply'
394 kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
395 kmi.properties.name = 'VIEW3D_MT_make_single_user'
396 kmi = km.keymap_items.new('wm.call_menu', 'L', 'PRESS', ctrl=True)
397 kmi.properties.name = 'VIEW3D_MT_make_links'
398 kmi = km.keymap_items.new('object.duplicate_move', 'D', 'PRESS', ctrl=True)
399 kmi = km.keymap_items.new('object.duplicate_move_linked', 'D', 'PRESS', alt=True)
400 kmi = km.keymap_items.new('object.join', 'J', 'PRESS', ctrl=True)
401 kmi = km.keymap_items.new('object.convert', 'C', 'PRESS', alt=True)
402 kmi = km.keymap_items.new('object.proxy_make', 'P', 'PRESS', ctrl=True, alt=True)
403 kmi = km.keymap_items.new('object.make_local', 'L', 'PRESS')
404 kmi = km.keymap_items.new('anim.keyframe_insert_menu', 'S', 'PRESS')
405 kmi = km.keymap_items.new('group.create', 'G', 'PRESS', ctrl=True)
406 kmi = km.keymap_items.new('group.objects_remove', 'G', 'PRESS', ctrl=True, alt=True)
407 kmi = km.keymap_items.new('group.objects_add_active', 'G', 'PRESS', shift=True, ctrl=True)
408 kmi = km.keymap_items.new('group.objects_remove_active', 'G', 'PRESS', shift=True, alt=True)
409 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)
410 kmi.properties.name = 'VIEW3D_MT_object_specials'
411 kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS')
412 kmi.properties.level = 0
413 kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS')
414 kmi.properties.level = 1
415 kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS')
416 kmi.properties.level = 2
417 kmi = km.keymap_items.new('anim.keyframe_delete_v3d', 'S', 'PRESS', alt=True)
418
419 # Map Image Paint
420 km = kc.keymaps.new('Image Paint', space_type='EMPTY', region_type='WINDOW', modal=False)
421
422 kmi = km.keymap_items.new('paint.image_paint', 'LEFTMOUSE', 'PRESS')
423 kmi.properties.mode = 'NORMAL'
424 kmi = km.keymap_items.new('paint.image_paint', 'LEFTMOUSE', 'PRESS', ctrl=True)
425 kmi.properties.mode = 'INVERT'
426 kmi = km.keymap_items.new('paint.grab_clone', 'RIGHTMOUSE', 'PRESS')
427 kmi = km.keymap_items.new('paint.sample_color', 'RIGHTMOUSE', 'PRESS')
428 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
429 kmi.properties.scalar = 0.8999999761581421
430 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
431 kmi.properties.scalar = 1.1111111640930176
432 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS')
433 kmi.properties.data_path_primary = 'tool_settings.image_paint.brush.size'
434 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
435 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
436 kmi.properties.rotation_path = 'tool_settings.image_paint.brush.texture_slot.angle'
437 kmi.properties.color_path = 'tool_settings.image_paint.brush.cursor_color_add'
438 kmi.properties.fill_color_path = 'tool_settings.image_paint.brush.color'
439 kmi.properties.zoom_path = 'space_data.zoom'
440 kmi.properties.image_id = 'tool_settings.image_paint.brush'
441 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS', shift=True)
442 kmi.properties.data_path_primary = 'tool_settings.image_paint.brush.strength'
443 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
444 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
445 kmi.properties.rotation_path = 'tool_settings.image_paint.brush.texture_slot.angle'
446 kmi.properties.color_path = 'tool_settings.image_paint.brush.cursor_color_add'
447 kmi.properties.fill_color_path = 'tool_settings.image_paint.brush.color'
448 kmi.properties.zoom_path = 'space_data.zoom'
449 kmi.properties.image_id = 'tool_settings.image_paint.brush'
450 kmi = km.keymap_items.new('wm.context_toggle', 'RIGHTMOUSE', 'PRESS', ctrl=True)
451 kmi.properties.data_path = 'image_paint_object.data.use_paint_mask'
452
453 # Map Vertex Paint
454 km = kc.keymaps.new('Vertex Paint', space_type='EMPTY', region_type='WINDOW', modal=False)
455
456 kmi = km.keymap_items.new('paint.vertex_paint', 'LEFTMOUSE', 'PRESS')
457 kmi = km.keymap_items.new('paint.sample_color', 'RIGHTMOUSE', 'PRESS')
458 kmi = km.keymap_items.new('paint.vertex_color_set', 'K', 'PRESS', shift=True)
459 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
460 kmi.properties.scalar = 0.8999999761581421
461 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
462 kmi.properties.scalar = 1.1111111640930176
463 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS')
464 kmi.properties.data_path_primary = 'tool_settings.vertex_paint.brush.size'
465 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
466 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
467 kmi.properties.rotation_path = 'tool_settings.vertex_paint.brush.texture_slot.angle'
468 kmi.properties.color_path = 'tool_settings.vertex_paint.brush.cursor_color_add'
469 kmi.properties.fill_color_path = 'tool_settings.vertex_paint.brush.color'
470 kmi.properties.zoom_path = ''
471 kmi.properties.image_id = 'tool_settings.vertex_paint.brush'
472 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS', shift=True)
473 kmi.properties.data_path_primary = 'tool_settings.vertex_paint.brush.strength'
474 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
475 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
476 kmi.properties.rotation_path = 'tool_settings.vertex_paint.brush.texture_slot.angle'
477 kmi.properties.color_path = 'tool_settings.vertex_paint.brush.cursor_color_add'
478 kmi.properties.fill_color_path = 'tool_settings.vertex_paint.brush.color'
479 kmi.properties.zoom_path = ''
480 kmi.properties.image_id = 'tool_settings.vertex_paint.brush'
481 kmi = km.keymap_items.new('wm.context_toggle', 'M', 'PRESS')
482 kmi.properties.data_path = 'vertex_paint_object.data.use_paint_mask'
483
484 # Map Weight Paint
485 km = kc.keymaps.new('Weight Paint', space_type='EMPTY', region_type='WINDOW', modal=False)
486
487 kmi = km.keymap_items.new('paint.weight_paint', 'LEFTMOUSE', 'PRESS')
488 kmi = km.keymap_items.new('paint.weight_sample', 'LEFTMOUSE', 'PRESS', ctrl=True)
489 kmi = km.keymap_items.new('paint.weight_sample_group', 'LEFTMOUSE', 'PRESS', shift=True)
490 kmi = km.keymap_items.new('paint.weight_set', 'K', 'PRESS', shift=True)
491 kmi = km.keymap_items.new('paint.weight_gradient', 'LEFTMOUSE', 'PRESS', alt=True, shift=True)
492 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
493 kmi.properties.scalar = 0.8999999761581421
494 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
495 kmi.properties.scalar = 1.1111111640930176
496 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS')
497 kmi.properties.data_path_primary = 'tool_settings.weight_paint.brush.size'
498 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
499 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
500 kmi.properties.rotation_path = 'tool_settings.weight_paint.brush.texture_slot.angle'
501 kmi.properties.color_path = 'tool_settings.weight_paint.brush.cursor_color_add'
502 kmi.properties.fill_color_path = ''
503 kmi.properties.zoom_path = ''
504 kmi.properties.image_id = 'tool_settings.weight_paint.brush'
505 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS', shift=True)
506 kmi.properties.data_path_primary = 'tool_settings.weight_paint.brush.strength'
507 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
508 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
509 kmi.properties.rotation_path = 'tool_settings.weight_paint.brush.texture_slot.angle'
510 kmi.properties.color_path = 'tool_settings.weight_paint.brush.cursor_color_add'
511 kmi.properties.fill_color_path = ''
512 kmi.properties.zoom_path = ''
513 kmi.properties.image_id = 'tool_settings.weight_paint.brush'
514 kmi = km.keymap_items.new('paint.weight_from_bones', 'RIGHTMOUSE', 'PRESS', ctrl=True)
515
516 # Map Sculpt
517 km = kc.keymaps.new('Sculpt', space_type='EMPTY', region_type='WINDOW', modal=False)
518
519 kmi = km.keymap_items.new('sculpt.brush_stroke', 'LEFTMOUSE', 'PRESS')
520 kmi.properties.mode = 'NORMAL'
521 kmi = km.keymap_items.new('sculpt.brush_stroke', 'LEFTMOUSE', 'PRESS', ctrl=True)
522 kmi.properties.mode = 'INVERT'
523 kmi = km.keymap_items.new('sculpt.brush_stroke', 'LEFTMOUSE', 'PRESS', shift=True)
524 kmi.properties.mode = 'SMOOTH'
525 kmi = km.keymap_items.new('paint.hide_show', 'H', 'PRESS', shift=True)
526 kmi.properties.action = 'SHOW'
527 kmi.properties.area = 'INSIDE'
528 kmi = km.keymap_items.new('paint.hide_show', 'H', 'PRESS')
529 kmi.properties.action = 'HIDE'
530 kmi.properties.area = 'INSIDE'
531 kmi = km.keymap_items.new('paint.hide_show', 'H', 'PRESS', alt=True)
532 kmi.properties.action = 'SHOW'
533 kmi.properties.area = 'ALL'
534 kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS')
535 kmi.properties.level = 0
536 kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS')
537 kmi.properties.level = 1
538 kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS')
539 kmi.properties.level = 2
540 kmi = km.keymap_items.new('object.subdivision_set', 'PAGE_UP', 'PRESS')
541 kmi.properties.level = 1
542 kmi.properties.relative = True
543 kmi = km.keymap_items.new('object.subdivision_set', 'PAGE_DOWN', 'PRESS')
544 kmi.properties.level = -1
545 kmi.properties.relative = True
546 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
547 kmi.properties.scalar = 0.8999999761581421
548 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
549 kmi.properties.scalar = 1.1111111640930176
550 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS')
551 kmi.properties.data_path_primary = 'tool_settings.sculpt.brush.size'
552 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
553 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
554 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
555 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
556 kmi.properties.fill_color_path = ''
557 kmi.properties.zoom_path = ''
558 kmi.properties.image_id = 'tool_settings.sculpt.brush'
559 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS', shift=True)
560 kmi.properties.data_path_primary = 'tool_settings.sculpt.brush.strength'
561 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
562 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
563 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
564 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
565 kmi.properties.fill_color_path = ''
566 kmi.properties.zoom_path = ''
567 kmi.properties.image_id = 'tool_settings.sculpt.brush'
568 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS', ctrl=True)
569 kmi.properties.data_path_primary = 'tool_settings.sculpt.brush.texture_slot.angle'
570 kmi.properties.data_path_secondary = ''
571 kmi.properties.use_secondary = ''
572 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
573 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
574 kmi.properties.fill_color_path = ''
575 kmi.properties.zoom_path = ''
576 kmi.properties.image_id = 'tool_settings.sculpt.brush'
577 kmi = km.keymap_items.new('paint.brush_select', 'D', 'PRESS')
578 kmi.properties.paint_mode = 'SCULPT'
579 kmi.properties.sculpt_tool = 'DRAW'
580 kmi = km.keymap_items.new('paint.brush_select', 'S', 'PRESS')
581 kmi.properties.paint_mode = 'SCULPT'
582 kmi.properties.sculpt_tool = 'SMOOTH'
583 kmi = km.keymap_items.new('paint.brush_select', 'P', 'PRESS')
584 kmi.properties.paint_mode = 'SCULPT'
585 kmi.properties.sculpt_tool = 'PINCH'
586 kmi = km.keymap_items.new('paint.brush_select', 'I', 'PRESS')
587 kmi.properties.paint_mode = 'SCULPT'
588 kmi.properties.sculpt_tool = 'INFLATE'
589 kmi = km.keymap_items.new('paint.brush_select', 'G', 'PRESS')
590 kmi.properties.paint_mode = 'SCULPT'
591 kmi.properties.sculpt_tool = 'GRAB'
592 kmi = km.keymap_items.new('paint.brush_select', 'L', 'PRESS')
593 kmi.properties.paint_mode = 'SCULPT'
594 kmi.properties.sculpt_tool = 'LAYER'
595 kmi = km.keymap_items.new('paint.brush_select', 'T', 'PRESS', shift=True)
596 kmi.properties.paint_mode = 'SCULPT'
597 kmi.properties.sculpt_tool = 'FLATTEN'
598 kmi = km.keymap_items.new('paint.brush_select', 'C', 'PRESS')
599 kmi.properties.paint_mode = 'SCULPT'
600 kmi.properties.sculpt_tool = 'CLAY'
601 kmi = km.keymap_items.new('paint.brush_select', 'C', 'PRESS', shift=True)
602 kmi.properties.paint_mode = 'SCULPT'
603 kmi.properties.sculpt_tool = 'CREASE'
604 kmi = km.keymap_items.new('wm.context_menu_enum', 'RIGHTMOUSE', 'PRESS')
605 kmi.properties.data_path = 'tool_settings.sculpt.brush.stroke_method'
606
607 # Map Mesh
608 km = kc.keymaps.new('Mesh', space_type='EMPTY', region_type='WINDOW', modal=False)
609
610 kmi = km.keymap_items.new('mesh.loopcut_slide', 'R', 'PRESS', ctrl=True)
611 kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
612 kmi.properties.extend = False
613 kmi.properties.deselect = False
614 kmi.properties.toggle = False
615 kmi.properties.ring = False
616 kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
617 kmi.properties.extend = True
618 kmi.properties.deselect = False
619 kmi.properties.toggle = False
620 kmi.properties.ring = False
621 kmi = km.keymap_items.new('mesh.edgering_select', 'RIGHTMOUSE', 'PRESS', ctrl=True, alt=True)
622 kmi.properties.extend = False
623 kmi.properties.deselect = False
624 kmi.properties.toggle = False
625 kmi = km.keymap_items.new('mesh.edgering_select', 'RIGHTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
626 kmi.properties.extend = True
627 kmi.properties.deselect = False
628 kmi.properties.toggle = False
629 kmi = km.keymap_items.new('mesh.select_all', 'A', 'PRESS', ctrl=True)
630 kmi.properties.action = 'TOGGLE'
631 kmi = km.keymap_items.new('mesh.select_more', 'PERIOD', 'PRESS', shift=True)
632 kmi = km.keymap_items.new('mesh.select_less', 'COMMA', 'PRESS', shift=True)
633 kmi = km.keymap_items.new('mesh.select_all', 'I', 'PRESS', ctrl=True)
634 kmi.properties.action = 'INVERT'
635 kmi = km.keymap_items.new('mesh.select_non_manifold', 'M', 'PRESS', shift=True, ctrl=True, alt=True)
636 kmi = km.keymap_items.new('mesh.select_linked', 'L', 'PRESS', ctrl=True)
637 kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS')
638 kmi.properties.deselect = False
639 kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS', shift=True)
640 kmi.properties.deselect = True
641 kmi = km.keymap_items.new('mesh.faces_select_linked_flat', 'F', 'PRESS', shift=True, ctrl=True, alt=True)
642 kmi.properties.sharpness = 135.0
643 kmi = km.keymap_items.new('mesh.select_similar', 'G', 'PRESS', shift=True)
644 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS')
645 kmi.properties.name = 'VIEW3D_MT_edit_mesh_select_mode'
646 kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS', ctrl=True)
647 kmi.properties.unselected = False
648 kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS', alt=True)
649 kmi.properties.unselected = True
650 kmi = km.keymap_items.new('mesh.reveal', 'H', 'PRESS', shift=True, ctrl=True)
651 kmi = km.keymap_items.new('view3d.edit_mesh_extrude_move_normal', 'X', 'PRESS', alt=True)
652 kmi = km.keymap_items.new('mesh.rip_move', 'V', 'PRESS', alt=True)
653 kmi = km.keymap_items.new('mesh.merge', 'M', 'PRESS', alt=True)
654 kmi = km.keymap_items.new('mesh.edge_face_add', 'F', 'PRESS', alt=True)
655 kmi = km.keymap_items.new('mesh.duplicate_move', 'D', 'PRESS', ctrl=True)
656 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
657 kmi.properties.name = 'INFO_MT_mesh_add'
658 kmi = km.keymap_items.new('mesh.dupli_extrude_cursor', 'MIDDLEMOUSE', 'CLICK', ctrl=True)
659 kmi = km.keymap_items.new('wm.call_menu', 'BACK_SPACE', 'PRESS')
660 kmi.properties.name = 'VIEW3D_MT_edit_mesh_delete'
661 kmi = km.keymap_items.new('wm.call_menu', 'DEL', 'PRESS')
662 kmi.properties.name = 'VIEW3D_MT_edit_mesh_delete'
663 kmi = km.keymap_items.new('mesh.knife_tool', 'LEFTMOUSE', 'PRESS', key_modifier='K')
664 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS')
665 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)
666 kmi.properties.name = 'VIEW3D_MT_edit_mesh_specials'
667 kmi = km.keymap_items.new('wm.call_menu', 'F', 'PRESS', ctrl=True)
668 kmi.properties.name = 'VIEW3D_MT_edit_mesh_faces'
669 kmi = km.keymap_items.new('wm.call_menu', 'E', 'PRESS', ctrl=True)
670 kmi.properties.name = 'VIEW3D_MT_edit_mesh_edges'
671 kmi = km.keymap_items.new('wm.call_menu', 'V', 'PRESS', ctrl=True)
672 kmi.properties.name = 'VIEW3D_MT_edit_mesh_vertices'
673 kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
674 kmi.properties.name = 'VIEW3D_MT_uv_map'
675 kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', ctrl=True)
676 kmi.properties.name = 'VIEW3D_MT_vertex_group'
677 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
678 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
679 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
680 kmi.properties.data_path = 'tool_settings.proportional_edit'
681 kmi.properties.value_1 = 'DISABLED'
682 kmi.properties.value_2 = 'ENABLED'
683 kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS', ctrl=True)
684 kmi.properties.level = 0
685 kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS', ctrl=True)
686 kmi.properties.level = 1
687 kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS', ctrl=True)
688 kmi.properties.level = 2
689 kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS', ctrl=True)
690 kmi.properties.level = 3
691 kmi = km.keymap_items.new('object.subdivision_set', 'FOUR', 'PRESS', ctrl=True)
692 kmi.properties.level = 4
693 kmi = km.keymap_items.new('object.subdivision_set', 'FIVE', 'PRESS', ctrl=True)
694 kmi.properties.level = 5
695
696 # Knife Tool
697 km = kc.keymaps.new('Knife Tool Modal Map', space_type='EMPTY', region_type='WINDOW', modal=True)
698
699 kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'ANY', any=True)
700 kmi = km.keymap_items.new_modal('ADD_CUT', 'LEFTMOUSE', 'ANY', any=True)
701 kmi = km.keymap_items.new_modal('PANNING', 'LEFTMOUSE', 'ANY', alt=True)
702 kmi = km.keymap_items.new_modal('PANNING', 'MIDDLEMOUSE', 'ANY', alt=True)
703 kmi = km.keymap_items.new_modal('PANNING', 'RIGHTMOUSE', 'ANY', alt=True)
704 kmi = km.keymap_items.new_modal('CANCEL', 'RIGHTMOUSE', 'ANY')
705 kmi = km.keymap_items.new_modal('CONFIRM', 'RET', 'PRESS', any=True)
706 kmi = km.keymap_items.new_modal('CONFIRM', 'NUMPAD_ENTER', 'PRESS', any=True)
707 kmi = km.keymap_items.new_modal('CONFIRM', 'SPACE', 'PRESS', any=True)
708 kmi = km.keymap_items.new_modal('NEW_CUT', 'E', 'PRESS')
709
710 kmi = km.keymap_items.new_modal('SNAP_MIDPOINTS_ON', 'LEFT_CTRL', 'PRESS', any=True)
711 kmi = km.keymap_items.new_modal('SNAP_MIDPOINTS_OFF', 'LEFT_CTRL', 'RELEASE', any=True)
712 kmi = km.keymap_items.new_modal('SNAP_MIDPOINTS_ON', 'RIGHT_CTRL', 'PRESS', any=True)
713 kmi = km.keymap_items.new_modal('SNAP_MIDPOINTS_OFF', 'RIGHT_CTRL', 'RELEASE', any=True)
714
715 kmi = km.keymap_items.new_modal('IGNORE_SNAP_ON', 'LEFT_SHIFT', 'PRESS', any=True)
716 kmi = km.keymap_items.new_modal('IGNORE_SNAP_OFF', 'LEFT_SHIFT', 'RELEASE', any=True)
717 kmi = km.keymap_items.new_modal('IGNORE_SNAP_ON', 'RIGHT_SHIFT', 'PRESS', any=True)
718 kmi = km.keymap_items.new_modal('IGNORE_SNAP_OFF', 'RIGHT_SHIFT', 'RELEASE', any=True)
719
720 kmi = km.keymap_items.new_modal('ANGLE_SNAP_TOGGLE', 'C', 'PRESS')
721 kmi = km.keymap_items.new_modal('CUT_THROUGH_TOGGLE', 'Z', 'PRESS')
722
723 # Map Curve
724 km = kc.keymaps.new('Curve', space_type='EMPTY', region_type='WINDOW', modal=False)
725
726 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
727 kmi.properties.name = 'INFO_MT_edit_curve_add'
728 kmi = km.keymap_items.new('curve.handle_type_set', 'RIGHTMOUSE', 'PRESS')
729 kmi = km.keymap_items.new('curve.vertex_add', 'MIDDLEMOUSE', 'CLICK', ctrl=True)
730 kmi = km.keymap_items.new('curve.select_all', 'A', 'PRESS', ctrl=True)
731 kmi.properties.action = 'TOGGLE'
732 kmi = km.keymap_items.new('curve.select_all', 'I', 'PRESS', ctrl=True)
733 kmi.properties.action = 'INVERT'
734 kmi = km.keymap_items.new('curve.select_row', 'T', 'PRESS', shift=True)
735 kmi = km.keymap_items.new('curve.select_more', 'PERIOD', 'PRESS', shift=True)
736 kmi = km.keymap_items.new('curve.select_less', 'COMMA', 'PRESS', shift=True)
737 kmi = km.keymap_items.new('curve.select_linked', 'L', 'PRESS', ctrl=True)
738 kmi = km.keymap_items.new('curve.select_linked_pick', 'L', 'PRESS')
739 kmi.properties.deselect = False
740 kmi = km.keymap_items.new('curve.select_linked_pick', 'L', 'PRESS', shift=True)
741 kmi.properties.deselect = True
742 kmi = km.keymap_items.new('curve.separate', 'P', 'PRESS', alt=True)
743 kmi = km.keymap_items.new('curve.extrude_move', 'X', 'PRESS', alt=True)
744 kmi = km.keymap_items.new('curve.duplicate_move', 'D', 'PRESS', ctrl=True)
745 kmi = km.keymap_items.new('curve.make_segment', 'F', 'PRESS', alt=True)
746 kmi = km.keymap_items.new('curve.cyclic_toggle', 'C', 'PRESS', alt=True)
747 kmi = km.keymap_items.new('curve.delete', 'BACK_SPACE', 'PRESS')
748 kmi = km.keymap_items.new('curve.delete', 'DEL', 'PRESS')
749 kmi = km.keymap_items.new('curve.tilt_clear', 'T', 'PRESS', alt=True)
750 kmi = km.keymap_items.new('transform.tilt', 'T', 'PRESS', ctrl=True)
751 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', alt=True)
752 kmi = km.keymap_items.new('curve.reveal', 'H', 'PRESS', shift=True, ctrl=True)
753 kmi = km.keymap_items.new('curve.hide', 'H', 'PRESS', ctrl=True)
754 kmi.properties.unselected = False
755 kmi = km.keymap_items.new('curve.hide', 'H', 'PRESS', alt=True)
756 kmi.properties.unselected = True
757 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS')
758 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)
759 kmi.properties.name = 'VIEW3D_MT_edit_curve_specials'
760 kmi = km.keymap_items.new('wm.call_menu', 'K', 'PRESS', alt=True)
761 kmi.properties.name = 'VIEW3D_MT_hook'
762 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
763 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
764 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
765 kmi.properties.data_path = 'tool_settings.proportional_edit'
766 kmi.properties.value_1 = 'DISABLED'
767 kmi.properties.value_2 = 'ENABLED'
768 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
769 kmi.properties.data_path = 'tool_settings.proportional_edit'
770 kmi.properties.value_1 = 'DISABLED'
771 kmi.properties.value_2 = 'CONNECTED'
772
773 # Map Armature
774 km = kc.keymaps.new('Armature', space_type='EMPTY', region_type='WINDOW', modal=False)
775
776 kmi = km.keymap_items.new('sketch.delete', 'BACK_SPACE', 'PRESS')
777 kmi = km.keymap_items.new('sketch.delete', 'DEL', 'PRESS')
778 kmi = km.keymap_items.new('sketch.finish_stroke', 'RIGHTMOUSE', 'PRESS')
779 kmi = km.keymap_items.new('sketch.cancel_stroke', 'ESC', 'PRESS')
780 kmi = km.keymap_items.new('sketch.gesture', 'LEFTMOUSE', 'PRESS', shift=True)
781 kmi = km.keymap_items.new('sketch.draw_stroke', 'LEFTMOUSE', 'PRESS')
782 kmi = km.keymap_items.new('sketch.draw_stroke', 'LEFTMOUSE', 'PRESS', ctrl=True)
783 kmi.properties.snap = True
784 kmi = km.keymap_items.new('sketch.draw_preview', 'MOUSEMOVE', 'ANY')
785 kmi = km.keymap_items.new('sketch.draw_preview', 'MOUSEMOVE', 'ANY', ctrl=True)
786 kmi.properties.snap = True
787 kmi = km.keymap_items.new('armature.hide', 'H', 'PRESS', ctrl=True)
788 kmi.properties.unselected = False
789 kmi = km.keymap_items.new('armature.hide', 'H', 'PRESS', alt=True)
790 kmi.properties.unselected = True
791 kmi = km.keymap_items.new('armature.reveal', 'H', 'PRESS', shift=True, ctrl=True)
792 kmi = km.keymap_items.new('armature.align', 'A', 'PRESS', ctrl=True, alt=True)
793 kmi = km.keymap_items.new('armature.calculate_roll', 'N', 'PRESS', alt=True)
794 kmi = km.keymap_items.new('armature.switch_direction', 'F', 'PRESS', alt=True)
795 kmi = km.keymap_items.new('armature.parent_set', 'P', 'PRESS', ctrl=True)
796 kmi = km.keymap_items.new('armature.parent_clear', 'P', 'PRESS', alt=True)
797 kmi = km.keymap_items.new('armature.select_all', 'A', 'PRESS', ctrl=True)
798 kmi.properties.action = 'TOGGLE'
799 kmi = km.keymap_items.new('armature.select_all', 'I', 'PRESS', ctrl=True)
800 kmi.properties.action = 'INVERT'
801 kmi = km.keymap_items.new('armature.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
802 kmi.properties.direction = 'PARENT'
803 kmi.properties.extend = False
804 kmi = km.keymap_items.new('armature.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
805 kmi.properties.direction = 'PARENT'
806 kmi.properties.extend = True
807 kmi = km.keymap_items.new('armature.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
808 kmi.properties.direction = 'CHILD'
809 kmi.properties.extend = False
810 kmi = km.keymap_items.new('armature.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
811 kmi.properties.direction = 'CHILD'
812 kmi.properties.extend = True
813 kmi = km.keymap_items.new('armature.select_linked', 'L', 'PRESS')
814 kmi = km.keymap_items.new('armature.delete', 'BACK_SPACE', 'PRESS')
815 kmi = km.keymap_items.new('armature.delete', 'DEL', 'PRESS')
816 kmi = km.keymap_items.new('armature.duplicate_move', 'D', 'PRESS', ctrl=True)
817 kmi = km.keymap_items.new('armature.extrude_move', 'X', 'PRESS', alt=True)
818 kmi = km.keymap_items.new('armature.extrude_forked', 'X', 'PRESS', shift=True, alt=True)
819 kmi = km.keymap_items.new('armature.click_extrude', 'MIDDLEMOUSE', 'CLICK', ctrl=True)
820 kmi = km.keymap_items.new('armature.fill', 'F', 'PRESS', alt=True)
821 kmi = km.keymap_items.new('armature.merge', 'M', 'PRESS', alt=True)
822 kmi = km.keymap_items.new('armature.separate', 'P', 'PRESS', ctrl=True, alt=True)
823 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS')
824 kmi.properties.name = 'VIEW3D_MT_bone_options_toggle'
825 kmi = km.keymap_items.new('armature.layers_show_all', 'ACCENT_GRAVE', 'PRESS', ctrl=True)
826 kmi = km.keymap_items.new('armature.armature_layers', 'M', 'PRESS', shift=True)
827 kmi = km.keymap_items.new('armature.bone_layers', 'M', 'PRESS')
828 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', ctrl=True, alt=True)
829 kmi = km.keymap_items.new('transform.transform', 'E', 'PRESS', ctrl=True)
830 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)
831 kmi.properties.name = 'VIEW3D_MT_armature_specials'
832
833 # Map Metaball
834 km = kc.keymaps.new('Metaball', space_type='EMPTY', region_type='WINDOW', modal=False)
835
836 kmi = km.keymap_items.new('object.metaball_add', 'A', 'PRESS', shift=True)
837 kmi = km.keymap_items.new('mball.reveal_metaelems', 'H', 'PRESS', shift=True, ctrl=True)
838 kmi = km.keymap_items.new('mball.hide_metaelems', 'H', 'PRESS', ctrl=True)
839 kmi.properties.unselected = False
840 kmi = km.keymap_items.new('mball.hide_metaelems', 'H', 'PRESS', alt=True)
841 kmi.properties.unselected = True
842 kmi = km.keymap_items.new('mball.delete_metaelems', 'BACK_SPACE', 'PRESS')
843 kmi = km.keymap_items.new('mball.delete_metaelems', 'DEL', 'PRESS')
844 kmi = km.keymap_items.new('mball.duplicate_metaelems', 'D', 'PRESS', ctrl=True)
845 kmi = km.keymap_items.new('mball.select_all', 'A', 'PRESS', ctrl=True)
846 kmi.properties.action = 'TOGGLE'
847 kmi = km.keymap_items.new('mball.select_all', 'I', 'PRESS', ctrl=True)
848 kmi.properties.action = 'INVERT'
849 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
850 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
851 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
852 kmi.properties.data_path = 'tool_settings.proportional_edit'
853 kmi.properties.value_1 = 'DISABLED'
854 kmi.properties.value_2 = 'ENABLED'
855 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
856 kmi.properties.data_path = 'tool_settings.proportional_edit'
857 kmi.properties.value_1 = 'DISABLED'
858 kmi.properties.value_2 = 'CONNECTED'
859
860 # Map Lattice
861 km = kc.keymaps.new('Lattice', space_type='EMPTY', region_type='WINDOW', modal=False)
862
863 kmi = km.keymap_items.new('lattice.select_all', 'A', 'PRESS')
864 kmi.properties.action = 'TOGGLE'
865 kmi = km.keymap_items.new('lattice.select_all', 'I', 'PRESS', ctrl=True)
866 kmi.properties.action = 'INVERT'
867 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS')
868 kmi = km.keymap_items.new('wm.call_menu', 'K', 'PRESS', alt=True)
869 kmi.properties.name = 'VIEW3D_MT_hook'
870 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
871 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
872 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
873 kmi.properties.data_path = 'tool_settings.proportional_edit'
874 kmi.properties.value_1 = 'DISABLED'
875 kmi.properties.value_2 = 'ENABLED'
876
877 # Map Particle
878 km = kc.keymaps.new('Particle', space_type='EMPTY', region_type='WINDOW', modal=False)
879
880 kmi = km.keymap_items.new('particle.select_all', 'A', 'PRESS', ctrl=True)
881 kmi.properties.action = 'TOGGLE'
882 kmi = km.keymap_items.new('particle.select_all', 'I', 'PRESS', ctrl=True)
883 kmi.properties.action = 'INVERT'
884 kmi = km.keymap_items.new('particle.select_more', 'PERIOD', 'PRESS', shift=True)
885 kmi = km.keymap_items.new('particle.select_less', 'COMMA', 'PRESS', shift=True)
886 kmi = km.keymap_items.new('particle.select_linked', 'L', 'PRESS')
887 kmi.properties.deselect = False
888 kmi = km.keymap_items.new('particle.select_linked', 'L', 'PRESS', shift=True)
889 kmi.properties.deselect = True
890 kmi = km.keymap_items.new('particle.delete', 'BACK_SPACE', 'PRESS')
891 kmi = km.keymap_items.new('particle.delete', 'DEL', 'PRESS')
892 kmi = km.keymap_items.new('particle.reveal', 'H', 'PRESS', shift=True, ctrl=True)
893 kmi = km.keymap_items.new('particle.hide', 'H', 'PRESS', ctrl=True)
894 kmi.properties.unselected = False
895 kmi = km.keymap_items.new('particle.hide', 'H', 'PRESS', alt=True)
896 kmi.properties.unselected = True
897 kmi = km.keymap_items.new('particle.brush_edit', 'LEFTMOUSE', 'PRESS')
898 kmi = km.keymap_items.new('particle.brush_edit', 'LEFTMOUSE', 'PRESS', shift=True)
899 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS')
900 kmi.properties.data_path_primary = 'tool_settings.particle_edit.brush.size'
901 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS', shift=True)
902 kmi.properties.data_path_primary = 'tool_settings.particle_edit.brush.strength'
903 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)
904 kmi.properties.name = 'VIEW3D_MT_particle_specials'
905 kmi = km.keymap_items.new('particle.weight_set', 'K', 'PRESS', shift=True)
906 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
907 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
908 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
909 kmi.properties.data_path = 'tool_settings.proportional_edit'
910 kmi.properties.value_1 = 'DISABLED'
911 kmi.properties.value_2 = 'ENABLED'
912
913 # Map Object Non-modal
914 km = kc.keymaps.new('Object Non-modal', space_type='EMPTY', region_type='WINDOW', modal=False)
915
916 kmi = km.keymap_items.new('object.mode_set', 'TAB', 'PRESS')
917 kmi.properties.mode = 'EDIT'
918 kmi.properties.toggle = True
919
920 # TODO: Doesn't work because of invalid context check, see [#30554]
921 #kmi = km.keymap_items.new('object.mode_set', 'TAB', 'PRESS', ctrl=True)
922 #kmi.properties.mode = 'POSE'
923
924 kmi.properties.toggle = True
925 kmi = km.keymap_items.new('object.mode_set', 'TAB', 'PRESS', ctrl=True)
926 kmi.properties.mode = 'WEIGHT_PAINT'
927 kmi.properties.toggle = True
928 kmi = km.keymap_items.new('object.origin_set', 'C', 'PRESS', shift=True, ctrl=True, alt=True)
929
930 # Map 3D View
931 km = kc.keymaps.new('3D View', space_type='VIEW_3D', region_type='WINDOW', modal=False)
932
933 kmi = km.keymap_items.new('view3d.cursor3d', 'ACTIONMOUSE', 'PRESS')
934 kmi = km.keymap_items.new('view3d.rotate', 'LEFTMOUSE', 'PRESS', alt=True)
935 kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', shift=True)
936 kmi.properties.release_confirm = True
937 kmi.properties.use_planar_constraint = True
938 kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', shift=True)
939 kmi.properties.release_confirm = True
940 kmi.properties.use_accurate = True
941 kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', any=True)
942 kmi.properties.release_confirm = True
943 kmi = km.keymap_items.new('view3d.move', 'MIDDLEMOUSE', 'PRESS', alt=True)
944 kmi = km.keymap_items.new('view3d.zoom', 'RIGHTMOUSE', 'PRESS', alt=True)
945 kmi = km.keymap_items.new('view3d.view_selected', 'F', 'PRESS')
946 kmi = km.keymap_items.new('view3d.view_center_cursor', 'NUMPAD_PERIOD', 'PRESS', ctrl=True)
947 kmi = km.keymap_items.new('view3d.fly', 'F', 'PRESS', shift=True)
948 kmi = km.keymap_items.new('view3d.smoothview', 'TIMER1', 'ANY', any=True)
949 kmi = km.keymap_items.new('view3d.rotate', 'TRACKPADPAN', 'ANY', alt=True)
950 kmi = km.keymap_items.new('view3d.rotate', 'MOUSEROTATE', 'ANY')
951 kmi = km.keymap_items.new('view3d.move', 'TRACKPADPAN', 'ANY')
952 kmi = km.keymap_items.new('view3d.zoom', 'TRACKPADZOOM', 'ANY')
953 kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_PLUS', 'PRESS')
954 kmi.properties.delta = 1
955 kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_MINUS', 'PRESS')
956 kmi.properties.delta = -1
957 kmi = km.keymap_items.new('view3d.zoom', 'EQUAL', 'PRESS', ctrl=True)
958 kmi.properties.delta = 1
959 kmi = km.keymap_items.new('view3d.zoom', 'MINUS', 'PRESS', ctrl=True)
960 kmi.properties.delta = -1
961 kmi = km.keymap_items.new('view3d.zoom', 'WHEELINMOUSE', 'PRESS')
962 kmi.properties.delta = 1
963 kmi = km.keymap_items.new('view3d.zoom', 'WHEELOUTMOUSE', 'PRESS')
964 kmi.properties.delta = -1
965 kmi = km.keymap_items.new('view3d.zoom', 'WHEELINMOUSE', 'PRESS', alt=True)
966 kmi.properties.delta = 1
967 kmi = km.keymap_items.new('view3d.zoom', 'WHEELOUTMOUSE', 'PRESS', alt=True)
968 kmi.properties.delta = -1
969 kmi = km.keymap_items.new('view3d.view_all', 'A', 'PRESS')
970 kmi.properties.center = False
971 kmi = km.keymap_items.new('view3d.viewnumpad', 'ZERO', 'PRESS', ctrl=True)
972 kmi.properties.type = 'CAMERA'
973 kmi = km.keymap_items.new('view3d.viewnumpad', 'ONE', 'PRESS', ctrl=True)
974 kmi.properties.type = 'FRONT'
975 kmi = km.keymap_items.new('view3d.viewnumpad', 'THREE', 'PRESS', ctrl=True)
976 kmi.properties.type = 'LEFT'
977 kmi = km.keymap_items.new('view3d.view_persportho', 'SEVEN', 'PRESS', ctrl=True)
978 kmi = km.keymap_items.new('view3d.viewnumpad', 'FIVE', 'PRESS', ctrl=True)
979 kmi.properties.type = 'TOP'
980 kmi = km.keymap_items.new('view3d.viewnumpad', 'TWO', 'PRESS', ctrl=True)
981 kmi.properties.type = 'BACK'
982 kmi = km.keymap_items.new('view3d.viewnumpad', 'FOUR', 'PRESS', ctrl=True)
983 kmi.properties.type = 'RIGHT'
984 kmi = km.keymap_items.new('view3d.viewnumpad', 'SIX', 'PRESS', ctrl=True)
985 kmi.properties.type = 'BOTTOM'
986 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', ctrl=True)
987 kmi.properties.type = 'PANRIGHT'
988 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True)
989 kmi.properties.type = 'PANLEFT'
990 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', shift=True)
991 kmi.properties.type = 'PANUP'
992 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
993 kmi.properties.type = 'PANDOWN'
994 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', ctrl=True, alt=True)
995 kmi.properties.type = 'ORBITLEFT'
996 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True, alt=True)
997 kmi.properties.type = 'ORBITRIGHT'
998 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', shift=True, alt=True)
999 kmi.properties.type = 'ORBITUP'
1000 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', shift=True, alt=True)
1001 kmi.properties.type = 'ORBITDOWN'
1002 kmi = km.keymap_items.new('view3d.localview', 'I', 'PRESS', shift=True)
1003 kmi = km.keymap_items.new('wm.context_toggle_enum', 'FOUR', 'PRESS')
1004 kmi.properties.data_path = 'space_data.viewport_shade'
1005 kmi.properties.value_1 = 'WIREFRAME'
1006 kmi.properties.value_2 = 'WIREFRAME'
1007 kmi = km.keymap_items.new('wm.context_toggle_enum', 'FIVE', 'PRESS')
1008 kmi.properties.data_path = 'space_data.viewport_shade'
1009 kmi.properties.value_1 = 'TEXTURED'
1010 kmi.properties.value_2 = 'SOLID'
1011 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK')
1012 kmi.properties.extend = False
1013 kmi.properties.toggle = False
1014 kmi.properties.deselect = False
1015 kmi.properties.center = False
1016 kmi.properties.object = False
1017 kmi.properties.enumerate = False
1018 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', shift=True)
1019 kmi.properties.extend = False
1020 kmi.properties.toggle = True
1021 kmi.properties.deselect = False
1022 kmi.properties.center = False
1023 kmi.properties.object = False
1024 kmi.properties.enumerate = False
1025 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', ctrl=True)
1026 kmi.properties.center = False
1027 kmi.properties.extend = False
1028 kmi.properties.toggle = False
1029 kmi.properties.deselect = True
1030 kmi.properties.object = False
1031 kmi.properties.enumerate = False
1032 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', alt=True)
1033 kmi.properties.enumerate = True
1034 kmi.properties.extend = False
1035 kmi.properties.toggle = False
1036 kmi.properties.deselect = False
1037 kmi.properties.center = False
1038 kmi.properties.object = False
1039 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', shift=True, ctrl=True)
1040 kmi.properties.extend = True
1041 kmi.properties.center = True
1042 kmi.properties.toggle = False
1043 kmi.properties.deselect = False
1044 kmi.properties.object = False
1045 kmi.properties.enumerate = False
1046 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', ctrl=True, alt=True)
1047 kmi.properties.center = True
1048 kmi.properties.enumerate = True
1049 kmi.properties.extend = False
1050 kmi.properties.toggle = False
1051 kmi.properties.deselect = False
1052 kmi.properties.object = False
1053 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', shift=True, alt=True)
1054 kmi.properties.extend = True
1055 kmi.properties.enumerate = True
1056 kmi.properties.toggle = False
1057 kmi.properties.deselect = False
1058 kmi.properties.center = False
1059 kmi.properties.object = False
1060 kmi = km.keymap_items.new('view3d.select_or_deselect_all', 'SELECTMOUSE', 'CLICK', shift=True, ctrl=True, alt=True)
1061 kmi.properties.extend = True
1062 kmi.properties.center = True
1063 kmi.properties.enumerate = True
1064 kmi.properties.toggle = False
1065 kmi.properties.deselect = False
1066 kmi.properties.object = False
1067 kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY')
1068 kmi.properties.extend = False
1069 kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1070 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_M', 'ANY')
1071 kmi.properties.extend = False
1072 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_M', 'ANY', ctrl=True)
1073 kmi.properties.deselect = True
1074 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_M', 'ANY', any=True)
1075 kmi = km.keymap_items.new('view3d.select_circle', 'Q', 'PRESS', shift=True)
1076 kmi = km.keymap_items.new('view3d.clip_border', 'B', 'PRESS', alt=True)
1077 kmi = km.keymap_items.new('view3d.zoom_border', 'B', 'PRESS', shift=True)
1078 kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True, ctrl=True)
1079 kmi.properties.name = 'VIEW3D_MT_snap'
1080 kmi = km.keymap_items.new('view3d.enable_manipulator', 'Q', 'PRESS')
1081 kmi = km.keymap_items.new('transform.select_orientation', 'RIGHTMOUSE', 'PRESS', shift=True)
1082 kmi = km.keymap_items.new('transform.create_orientation', 'SPACE', 'PRESS', ctrl=True, alt=True)
1083 kmi.properties.use = True
1084 kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
1085 kmi = km.keymap_items.new('wm.context_toggle', 'TAB', 'PRESS', shift=True)
1086 kmi.properties.data_path = 'tool_settings.use_snap'
1087 kmi = km.keymap_items.new('wm.context_set_enum', 'C', 'PRESS')
1088 kmi.properties.data_path = 'tool_settings.snap_element'
1089 kmi.properties.value = 'EDGE'
1090 kmi = km.keymap_items.new('view3d.enable_manipulator', 'W', 'PRESS')
1091 kmi.properties.translate = True
1092 kmi = km.keymap_items.new('view3d.enable_manipulator', 'E', 'PRESS')
1093 kmi.properties.rotate = True
1094 kmi = km.keymap_items.new('view3d.enable_manipulator', 'R', 'PRESS')
1095 kmi.properties.scale = True
1096 kmi = km.keymap_items.new('wm.context_toggle_enum', 'SIX', 'PRESS')
1097 kmi.properties.data_path = 'space_data.viewport_shade'
1098 kmi.properties.value_1 = 'TEXTURED'
1099 kmi.properties.value_2 = 'TEXTURED'
1100 kmi = km.keymap_items.new('wm.context_set_enum', 'X', 'PRESS')
1101 kmi.properties.data_path = 'tool_settings.snap_element'
1102 kmi.properties.value = 'INCREMENT'
1103 kmi = km.keymap_items.new('wm.context_set_enum', 'V', 'PRESS')
1104 kmi.properties.data_path = 'tool_settings.snap_element'
1105 kmi.properties.value = 'VERTEX'
1106
1107 km.keymap_items.new('view3d.render_border', 'B', 'PRESS', ctrl=True)
1108
1109 # Map Animation Channels
1110 km = kc.keymaps.new('Animation Channels', space_type='EMPTY', region_type='WINDOW', modal=False)
1111
1112 kmi = km.keymap_items.new('anim.channels_click', 'LEFTMOUSE', 'PRESS')
1113 kmi.properties.extend = False
1114 kmi = km.keymap_items.new('anim.channels_click', 'LEFTMOUSE', 'CLICK', shift=True)
1115 kmi.properties.extend = True
1116 kmi = km.keymap_items.new('anim.channels_click', 'LEFTMOUSE', 'PRESS', shift=True, ctrl=True)
1117 kmi.properties.children_only = True
1118 kmi = km.keymap_items.new('anim.channels_rename', 'LEFTMOUSE', 'PRESS', ctrl=True)
1119 kmi = km.keymap_items.new('anim.channels_select_all_toggle', 'A', 'PRESS', ctrl=True)
1120 kmi = km.keymap_items.new('anim.channels_select_all_toggle', 'I', 'PRESS', ctrl=True)
1121 kmi.properties.invert = True
1122 kmi = km.keymap_items.new('anim.channels_select_border', 'EVT_TWEAK_S', 'ANY')
1123 kmi.properties.extend = False
1124 kmi = km.keymap_items.new('anim.channels_select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1125 kmi = km.keymap_items.new('anim.channels_delete', 'BACK_SPACE', 'PRESS')
1126 kmi = km.keymap_items.new('anim.channels_delete', 'DEL', 'PRESS')
1127 kmi = km.keymap_items.new('anim.channels_setting_toggle', 'W', 'PRESS', shift=True)
1128 kmi = km.keymap_items.new('anim.channels_setting_enable', 'W', 'PRESS', shift=True, ctrl=True)
1129 kmi = km.keymap_items.new('anim.channels_setting_disable', 'W', 'PRESS', alt=True)
1130 kmi = km.keymap_items.new('anim.channels_editable_toggle', 'TAB', 'PRESS')
1131 kmi = km.keymap_items.new('anim.channels_expand', 'PERIOD', 'PRESS', shift=True)
1132 kmi = km.keymap_items.new('anim.channels_collapse', 'COMMA', 'PRESS', shift=True)
1133 kmi = km.keymap_items.new('anim.channels_expand', 'PERIOD', 'PRESS', ctrl=True)
1134 kmi.properties.all = False
1135 kmi = km.keymap_items.new('anim.channels_collapse', 'COMMA', 'PRESS', ctrl=True)
1136 kmi.properties.all = False
1137 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_UP', 'PRESS')
1138 kmi.properties.direction = 'UP'
1139 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_DOWN', 'PRESS')
1140 kmi.properties.direction = 'DOWN'
1141 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_UP', 'PRESS', shift=True)
1142 kmi.properties.direction = 'TOP'
1143 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_DOWN', 'PRESS', shift=True)
1144 kmi.properties.direction = 'BOTTOM'
1145
1146 # Map UV Editor
1147 km = kc.keymaps.new('UV Editor', space_type='EMPTY', region_type='WINDOW', modal=False)
1148
1149 kmi = km.keymap_items.new('wm.context_toggle', 'Q', 'PRESS')
1150 kmi.properties.data_path = 'tool_settings.use_uv_sculpt'
1151 kmi = km.keymap_items.new('uv.mark_seam', 'E', 'PRESS', ctrl=True)
1152 kmi = km.keymap_items.new('uv.select', 'SELECTMOUSE', 'CLICK')
1153 kmi.properties.extend = False
1154 kmi = km.keymap_items.new('uv.select', 'SELECTMOUSE', 'CLICK', shift=True)
1155 kmi.properties.extend = True
1156 kmi = km.keymap_items.new('uv.select_loop', 'LEFTMOUSE', 'PRESS', ctrl=True, alt=True)
1157 kmi.properties.extend = False
1158 kmi = km.keymap_items.new('uv.select_loop', 'LEFTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
1159 kmi.properties.extend = True
1160 kmi = km.keymap_items.new('uv.select_border', 'EVT_TWEAK_S', 'ANY')
1161 kmi.properties.extend = False
1162 kmi.properties.pinned = False
1163 kmi = km.keymap_items.new('uv.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1164 kmi.properties.pinned = False
1165 kmi = km.keymap_items.new('uv.circle_select', 'Q', 'PRESS', shift=True)
1166 kmi = km.keymap_items.new('uv.select_linked', 'L', 'PRESS', ctrl=True)
1167 kmi.properties.extend = False
1168 kmi = km.keymap_items.new('uv.select_linked_pick', 'L', 'PRESS')
1169 kmi.properties.extend = False
1170 kmi = km.keymap_items.new('uv.select_linked', 'L', 'PRESS', shift=True, ctrl=True)
1171 kmi.properties.extend = True
1172 kmi = km.keymap_items.new('uv.select_linked_pick', 'L', 'PRESS', shift=True)
1173 kmi.properties.extend = True
1174 kmi = km.keymap_items.new('uv.select_all', 'A', 'PRESS', ctrl=True)
1175 kmi.properties.action = 'TOGGLE'
1176 kmi = km.keymap_items.new('uv.select_all', 'I', 'PRESS', ctrl=True)
1177 kmi.properties.action = 'INVERT'
1178 kmi = km.keymap_items.new('uv.select_pinned', 'P', 'PRESS', shift=True)
1179 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)
1180 kmi.properties.name = 'IMAGE_MT_uvs_weldalign'
1181 kmi = km.keymap_items.new('uv.stitch', 'V', 'PRESS')
1182 kmi = km.keymap_items.new('uv.pin', 'P', 'PRESS')
1183 kmi.properties.clear = False
1184 kmi = km.keymap_items.new('uv.pin', 'P', 'PRESS', alt=True)
1185 kmi.properties.clear = True
1186 kmi = km.keymap_items.new('uv.unwrap', 'U', 'PRESS')
1187 kmi = km.keymap_items.new('uv.hide', 'H', 'PRESS', ctrl=True)
1188 kmi.properties.unselected = False
1189 kmi = km.keymap_items.new('uv.hide', 'H', 'PRESS', alt=True)
1190 kmi.properties.unselected = True
1191 kmi = km.keymap_items.new('uv.reveal', 'H', 'PRESS', shift=True)
1192 kmi = km.keymap_items.new('uv.cursor_set', 'RIGHTMOUSE', 'PRESS', key_modifier='C')
1193 kmi = km.keymap_items.new('uv.tile_set', 'ACTIONMOUSE', 'PRESS', shift=True, key_modifier='C')
1194 kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True)
1195 kmi.properties.name = 'IMAGE_MT_uvs_snap'
1196 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS')
1197 kmi.properties.name = 'IMAGE_MT_uvs_select_mode'
1198 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
1199 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
1200 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
1201 kmi.properties.data_path = 'tool_settings.proportional_edit'
1202 kmi.properties.value_1 = 'DISABLED'
1203 kmi.properties.value_2 = 'ENABLED'
1204 kmi = km.keymap_items.new('transform.translate', 'W', 'PRESS')
1205 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_M', 'ANY')
1206 kmi = km.keymap_items.new('transform.rotate', 'E', 'PRESS')
1207 kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS')
1208 kmi = km.keymap_items.new('transform.shear', 'S', 'PRESS', shift=True, ctrl=True, alt=True)
1209 kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
1210 kmi = km.keymap_items.new('wm.context_toggle', 'TAB', 'PRESS', shift=True)
1211 kmi.properties.data_path = 'tool_settings.use_snap'
1212
1213 # Map Transform Modal Map
1214 km = kc.keymaps.new('Transform Modal Map', space_type='EMPTY', region_type='WINDOW', modal=True)
1215
1216 kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'PRESS', any=True)
1217 kmi = km.keymap_items.new_modal('CONFIRM', 'LEFTMOUSE', 'PRESS', any=True)
1218 kmi = km.keymap_items.new_modal('CONFIRM', 'RET', 'PRESS', any=True)
1219 kmi = km.keymap_items.new_modal('CONFIRM', 'NUMPAD_ENTER', 'PRESS', any=True)
1220 kmi = km.keymap_items.new_modal('TRANSLATE', 'G', 'PRESS')
1221 kmi = km.keymap_items.new_modal('ROTATE', 'R', 'PRESS')
1222 kmi = km.keymap_items.new_modal('RESIZE', 'S', 'PRESS')
1223 kmi = km.keymap_items.new_modal('SNAP_TOGGLE', 'TAB', 'PRESS', shift=True)
1224 kmi = km.keymap_items.new_modal('SNAP_INV_ON', 'LEFT_CTRL', 'PRESS', any=True)
1225 kmi = km.keymap_items.new_modal('SNAP_INV_OFF', 'LEFT_CTRL', 'RELEASE', any=True)
1226 kmi = km.keymap_items.new_modal('SNAP_INV_ON', 'RIGHT_CTRL', 'PRESS', any=True)
1227 kmi = km.keymap_items.new_modal('SNAP_INV_OFF', 'RIGHT_CTRL', 'RELEASE', any=True)
1228 kmi = km.keymap_items.new_modal('ADD_SNAP', 'A', 'PRESS')
1229 kmi = km.keymap_items.new_modal('REMOVE_SNAP', 'A', 'PRESS', alt=True)
1230 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_UP', 'PAGE_UP', 'PRESS')
1231 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_DOWN', 'PAGE_DOWN', 'PRESS')
1232 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_UP', 'WHEELDOWNMOUSE', 'PRESS')
1233 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_DOWN', 'WHEELUPMOUSE', 'PRESS')
1234 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_UP', 'PAGE_UP', 'PRESS', shift=True)
1235 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_DOWN', 'PAGE_DOWN', 'PRESS', shift=True)
1236 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_UP', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
1237 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_DOWN', 'WHEELUPMOUSE', 'PRESS', shift=True)
1238 kmi = km.keymap_items.new_modal('CONFIRM', 'MIDDLEMOUSE', 'RELEASE')
1239
1240 # Map View3D Gesture Circle
1241 km = kc.keymaps.new('View3D Gesture Circle', space_type='EMPTY', region_type='WINDOW', modal=True)
1242
1243 kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'PRESS', any=True)
1244 kmi = km.keymap_items.new_modal('CANCEL', 'RIGHTMOUSE', 'ANY', any=True)
1245 kmi = km.keymap_items.new_modal('CONFIRM', 'RET', 'PRESS', any=True)
1246 kmi = km.keymap_items.new_modal('CONFIRM', 'NUMPAD_ENTER', 'PRESS')
1247 kmi = km.keymap_items.new_modal('SELECT', 'LEFTMOUSE', 'PRESS')
1248 kmi = km.keymap_items.new_modal('DESELECT', 'MIDDLEMOUSE', 'PRESS')
1249 kmi = km.keymap_items.new_modal('NOP', 'MIDDLEMOUSE', 'RELEASE')
1250 kmi = km.keymap_items.new_modal('NOP', 'LEFTMOUSE', 'RELEASE')
1251 kmi = km.keymap_items.new_modal('SUBTRACT', 'WHEELUPMOUSE', 'PRESS')
1252 kmi = km.keymap_items.new_modal('SUBTRACT', 'NUMPAD_MINUS', 'PRESS')
1253 kmi = km.keymap_items.new_modal('ADD', 'WHEELDOWNMOUSE', 'PRESS')
1254 kmi = km.keymap_items.new_modal('ADD', 'NUMPAD_PLUS', 'PRESS')
1255 kmi = km.keymap_items.new_modal('SIZE', 'TRACKPADPAN', 'ANY')
1256
1257 # Map Gesture Border
1258 km = kc.keymaps.new('Gesture Border', space_type='EMPTY', region_type='WINDOW', modal=True)
1259
1260 kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'PRESS', any=True)
1261 kmi = km.keymap_items.new_modal('CANCEL', 'RIGHTMOUSE', 'PRESS', any=True)
1262 kmi = km.keymap_items.new_modal('BEGIN', 'LEFTMOUSE', 'PRESS')
1263 kmi = km.keymap_items.new_modal('DESELECT', 'LEFTMOUSE', 'RELEASE', ctrl=True)
1264 kmi = km.keymap_items.new_modal('SELECT', 'LEFTMOUSE', 'RELEASE', any=True)
1265 kmi = km.keymap_items.new_modal('SELECT', 'RIGHTMOUSE', 'RELEASE', any=True)
1266 kmi = km.keymap_items.new_modal('BEGIN', 'MIDDLEMOUSE', 'PRESS')
1267 kmi = km.keymap_items.new_modal('DESELECT', 'MIDDLEMOUSE', 'RELEASE')
1268
1269 # Map UV Sculpt
1270 km = kc.keymaps.new('UV Sculpt', space_type='EMPTY', region_type='WINDOW', modal=False)
1271
1272 kmi = km.keymap_items.new('wm.context_toggle', 'Q', 'PRESS')
1273 kmi.properties.data_path = 'tool_settings.use_uv_sculpt'
1274 kmi = km.keymap_items.new('sculpt.uv_sculpt_stroke', 'LEFTMOUSE', 'PRESS')
1275 kmi.properties.mode = 'NORMAL'
1276 kmi = km.keymap_items.new('sculpt.uv_sculpt_stroke', 'LEFTMOUSE', 'PRESS', ctrl=True)
1277 kmi.properties.mode = 'INVERT'
1278 kmi = km.keymap_items.new('sculpt.uv_sculpt_stroke', 'LEFTMOUSE', 'PRESS', shift=True)
1279 kmi.properties.mode = 'RELAX'
1280 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
1281 kmi.properties.scalar = 0.8999999761581421
1282 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
1283 kmi.properties.scalar = 1.1111111640930176
1284 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS')
1285 kmi.properties.data_path_primary = 'tool_settings.uv_sculpt.brush.size'
1286 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
1287 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
1288 kmi.properties.rotation_path = 'tool_settings.uv_sculpt.brush.texture_slot.angle'
1289 kmi.properties.color_path = 'tool_settings.uv_sculpt.brush.cursor_color_add'
1290 kmi.properties.fill_color_path = ''
1291 kmi.properties.zoom_path = ''
1292 kmi.properties.image_id = 'tool_settings.uv_sculpt.brush'
1293 kmi = km.keymap_items.new('wm.radial_control', 'B', 'PRESS', shift=True)
1294 kmi.properties.data_path_primary = 'tool_settings.uv_sculpt.brush.strength'
1295 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
1296 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
1297 kmi.properties.rotation_path = 'tool_settings.uv_sculpt.brush.texture_slot.angle'
1298 kmi.properties.color_path = 'tool_settings.uv_sculpt.brush.cursor_color_add'
1299 kmi.properties.fill_color_path = ''
1300 kmi.properties.zoom_path = ''
1301 kmi.properties.image_id = 'tool_settings.uv_sculpt.brush'
1302 kmi = km.keymap_items.new('brush.uv_sculpt_tool_set', 'S', 'PRESS')
1303 kmi.properties.tool = 'RELAX'
1304 kmi = km.keymap_items.new('brush.uv_sculpt_tool_set', 'P', 'PRESS')
1305 kmi.properties.tool = 'PINCH'
1306 kmi = km.keymap_items.new('brush.uv_sculpt_tool_set', 'G', 'PRESS')
1307 kmi.properties.tool = 'GRAB'
1308
1309 # Map Graph Editor Generic
1310 km = kc.keymaps.new('Graph Editor Generic', space_type='GRAPH_EDITOR', region_type='WINDOW', modal=False)
1311
1312 kmi = km.keymap_items.new('graph.properties', 'N', 'PRESS')
1313 kmi = km.keymap_items.new('graph.extrapolation_type', 'RIGHTMOUSE', 'PRESS', shift=True)
1314
1315 # Map Graph Editor
1316 km = kc.keymaps.new('Graph Editor', space_type='GRAPH_EDITOR', region_type='WINDOW', modal=False)
1317
1318 kmi = km.keymap_items.new('wm.context_toggle', 'H', 'PRESS', ctrl=True)
1319 kmi.properties.data_path = 'space_data.show_handles'
1320 kmi = km.keymap_items.new('graph.cursor_set', 'LEFTMOUSE', 'PRESS', key_modifier='K')
1321 kmi.properties.value = 1.1754943508222875e-38
1322 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'CLICK')
1323 kmi.properties.extend = False
1324 kmi.properties.column = False
1325 kmi.properties.curves = False
1326 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS', alt=True)
1327 kmi.properties.extend = False
1328 kmi.properties.column = True
1329 kmi.properties.curves = False
1330 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'CLICK', shift=True)
1331 kmi.properties.extend = True
1332 kmi.properties.column = False
1333 kmi.properties.curves = False
1334 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'CLICK', shift=True, alt=True)
1335 kmi.properties.extend = True
1336 kmi.properties.column = True
1337 kmi.properties.curves = False
1338 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
1339 kmi.properties.extend = False
1340 kmi.properties.column = False
1341 kmi.properties.curves = True
1342 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'CLICK', shift=True, ctrl=True, alt=True)
1343 kmi.properties.extend = True
1344 kmi.properties.column = False
1345 kmi.properties.curves = True
1346 kmi = km.keymap_items.new('graph.select_leftright', 'LEFT_BRACKET', 'PRESS')
1347 kmi.properties.mode = 'LEFT'
1348 kmi.properties.extend = False
1349 kmi = km.keymap_items.new('graph.select_leftright', 'RIGHT_BRACKET', 'PRESS')
1350 kmi.properties.mode = 'RIGHT'
1351 kmi.properties.extend = False
1352 kmi = km.keymap_items.new('graph.select_all_toggle', 'A', 'PRESS', ctrl=True)
1353 kmi.properties.invert = False
1354 kmi = km.keymap_items.new('graph.select_all_toggle', 'I', 'PRESS', ctrl=True)
1355 kmi.properties.invert = True
1356 kmi = km.keymap_items.new('graph.select_border', 'EVT_TWEAK_S', 'ANY')
1357 kmi.properties.extend = False
1358 kmi.properties.axis_range = False
1359 kmi.properties.include_handles = False
1360 kmi = km.keymap_items.new('graph.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1361 kmi.properties.axis_range = False
1362 kmi.properties.include_handles = False
1363 kmi = km.keymap_items.new('graph.select_more', 'PERIOD', 'PRESS', shift=True)
1364 kmi = km.keymap_items.new('graph.select_less', 'COMMA', 'PRESS', shift=True)
1365 kmi = km.keymap_items.new('graph.frame_jump', 'S', 'PRESS', shift=True, ctrl=True)
1366 kmi = km.keymap_items.new('graph.snap', 'S', 'PRESS', shift=True)
1367 kmi = km.keymap_items.new('graph.mirror', 'M', 'PRESS', shift=True)
1368 kmi = km.keymap_items.new('graph.handle_type', 'RIGHTMOUSE', 'PRESS')
1369 kmi = km.keymap_items.new('graph.interpolation_type', 'RIGHTMOUSE', 'PRESS', ctrl=True)
1370 kmi = km.keymap_items.new('graph.delete', 'BACK_SPACE', 'PRESS')
1371 kmi = km.keymap_items.new('graph.delete', 'DEL', 'PRESS')
1372 kmi = km.keymap_items.new('graph.duplicate_move', 'D', 'PRESS', ctrl=True)
1373 kmi = km.keymap_items.new('graph.keyframe_insert', 'I', 'PRESS')
1374 kmi = km.keymap_items.new('graph.click_insert', 'LEFTMOUSE', 'CLICK', ctrl=True)
1375 kmi = km.keymap_items.new('graph.copy', 'C', 'PRESS', ctrl=True)
1376 kmi = km.keymap_items.new('graph.paste', 'V', 'PRESS', ctrl=True)
1377 kmi = km.keymap_items.new('graph.previewrange_set', 'P', 'PRESS', ctrl=True, alt=True)
1378 kmi = km.keymap_items.new('graph.view_all', 'A', 'PRESS')
1379 kmi = km.keymap_items.new('graph.view_selected', 'F', 'PRESS')
1380 kmi = km.keymap_items.new('anim.channels_editable_toggle', 'TAB', 'PRESS')
1381 kmi = km.keymap_items.new('transform.translate', 'W', 'PRESS')
1382 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_M', 'ANY')
1383 kmi = km.keymap_items.new('transform.rotate', 'E', 'PRESS')
1384 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
1385 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
1386 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
1387 kmi = km.keymap_items.new('graph.copy', 'C', 'PRESS', oskey=True)
1388 kmi = km.keymap_items.new('graph.paste', 'V', 'PRESS', oskey=True)
1389 kmi = km.keymap_items.new('graph.select_all_toggle', 'SELECTMOUSE', 'DOUBLE_CLICK')
1390
1391 # Map Image
1392 km = kc.keymaps.new('Image', space_type='IMAGE_EDITOR', region_type='WINDOW', modal=False)
1393
1394 kmi = km.keymap_items.new('image.view_all', 'A', 'PRESS')
1395 kmi = km.keymap_items.new('image.view_selected', 'F', 'PRESS')
1396 kmi = km.keymap_items.new('image.view_pan', 'MIDDLEMOUSE', 'PRESS', alt=True)
1397 kmi = km.keymap_items.new('image.view_pan', 'TRACKPADPAN', 'ANY')
1398 kmi = km.keymap_items.new('image.view_all', 'NDOF_BUTTON_FIT', 'PRESS')
1399 kmi = km.keymap_items.new('image.view_ndof', 'NDOF_BUTTON_MENU', 'ANY')
1400 kmi = km.keymap_items.new('image.view_zoom_in', 'WHEELINMOUSE', 'PRESS')
1401 kmi = km.keymap_items.new('image.view_zoom_out', 'WHEELOUTMOUSE', 'PRESS')
1402 kmi = km.keymap_items.new('image.view_zoom_in', 'NUMPAD_PLUS', 'PRESS')
1403 kmi = km.keymap_items.new('image.view_zoom_out', 'NUMPAD_MINUS', 'PRESS')
1404 kmi = km.keymap_items.new('image.view_zoom', 'MIDDLEMOUSE', 'PRESS', ctrl=True)
1405 kmi = km.keymap_items.new('image.view_zoom', 'TRACKPADZOOM', 'ANY')
1406 kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_8', 'PRESS', shift=True)
1407 kmi.properties.ratio = 8.0
1408 kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_4', 'PRESS', shift=True)
1409 kmi.properties.ratio = 4.0
1410 kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_2', 'PRESS', shift=True)
1411 kmi.properties.ratio = 2.0
1412 kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_1', 'PRESS')
1413 kmi.properties.ratio = 1.0
1414 kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_2', 'PRESS')
1415 kmi.properties.ratio = 0.5
1416 kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_4', 'PRESS')
1417 kmi.properties.ratio = 0.25
1418 kmi = km.keymap_items.new('image.view_zoom_ratio', 'NUMPAD_8', 'PRESS')
1419 kmi.properties.ratio = 0.125
1420 kmi = km.keymap_items.new('image.sample', 'ACTIONMOUSE', 'PRESS')
1421 kmi = km.keymap_items.new('image.curves_point_set', 'ACTIONMOUSE', 'PRESS', ctrl=True)
1422 kmi.properties.point = 'BLACK_POINT'
1423 kmi = km.keymap_items.new('image.curves_point_set', 'ACTIONMOUSE', 'PRESS', shift=True)
1424 kmi.properties.point = 'WHITE_POINT'
1425 kmi = km.keymap_items.new('object.mode_set', 'TAB', 'PRESS')
1426 kmi.properties.mode = 'EDIT'
1427 kmi.properties.toggle = True
1428 kmi = km.keymap_items.new('wm.context_set_int', 'ONE', 'PRESS')
1429 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1430 kmi.properties.value = 0
1431 kmi = km.keymap_items.new('wm.context_set_int', 'TWO', 'PRESS')
1432 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1433 kmi.properties.value = 1
1434 kmi = km.keymap_items.new('wm.context_set_int', 'THREE', 'PRESS')
1435 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1436 kmi.properties.value = 2
1437 kmi = km.keymap_items.new('wm.context_set_int', 'FOUR', 'PRESS')
1438 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1439 kmi.properties.value = 3
1440 kmi = km.keymap_items.new('wm.context_set_int', 'FIVE', 'PRESS')
1441 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1442 kmi.properties.value = 4
1443 kmi = km.keymap_items.new('wm.context_set_int', 'SIX', 'PRESS')
1444 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1445 kmi.properties.value = 5
1446 kmi = km.keymap_items.new('wm.context_set_int', 'SEVEN', 'PRESS')
1447 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1448 kmi.properties.value = 6
1449 kmi = km.keymap_items.new('wm.context_set_int', 'EIGHT', 'PRESS')
1450 kmi.properties.data_path = 'space_data.image.render_slots.active_index'
1451 kmi.properties.value = 7
1452
1453 # Map Node Editor
1454 km = kc.keymaps.new('Node Editor', space_type='NODE_EDITOR', region_type='WINDOW', modal=False)
1455
1456 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS')
1457 kmi.properties.extend = False
1458 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', shift=True)
1459 kmi.properties.extend = True
1460 kmi = km.keymap_items.new('node.select_border', 'EVT_TWEAK_S', 'ANY')
1461 kmi.properties.extend = False
1462 kmi.properties.tweak = True
1463 kmi = km.keymap_items.new('node.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1464 kmi.properties.tweak = True
1465 kmi = km.keymap_items.new('node.link', 'LEFTMOUSE', 'PRESS')
1466 kmi = km.keymap_items.new('node.resize', 'LEFTMOUSE', 'PRESS')
1467 kmi = km.keymap_items.new('node.links_cut', 'LEFTMOUSE', 'PRESS', ctrl=True)
1468 kmi = km.keymap_items.new('node.select_link_viewer', 'LEFTMOUSE', 'PRESS', shift=True, ctrl=True)
1469 kmi = km.keymap_items.new('node.backimage_move', 'MIDDLEMOUSE', 'PRESS', alt=True)
1470 kmi = km.keymap_items.new('node.backimage_zoom', 'V', 'PRESS')
1471 kmi.properties.factor = 0.833329975605011
1472 kmi = km.keymap_items.new('node.backimage_zoom', 'V', 'PRESS', alt=True)
1473 kmi.properties.factor = 1.2000000476837158
1474 kmi = km.keymap_items.new('node.backimage_sample', 'ACTIONMOUSE', 'PRESS', alt=True)
1475 kmi = km.keymap_items.new('node.link_make', 'F', 'PRESS')
1476 kmi.properties.replace = False
1477 kmi = km.keymap_items.new('node.link_make', 'F', 'PRESS', ctrl=True)
1478 kmi.properties.replace = True
1479 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
1480 kmi.properties.name = 'NODE_MT_add'
1481 kmi = km.keymap_items.new('node.duplicate_move', 'D', 'PRESS', ctrl=True)
1482 kmi = km.keymap_items.new('node.duplicate_move_keep_inputs', 'D', 'PRESS', shift=True, ctrl=True)
1483 kmi = km.keymap_items.new('node.hide_toggle', 'H', 'PRESS', ctrl=True)
1484 kmi = km.keymap_items.new('node.mute_toggle', 'M', 'PRESS')
1485 kmi = km.keymap_items.new('node.preview_toggle', 'H', 'PRESS', shift=True)
1486 kmi = km.keymap_items.new('node.hide_socket_toggle', 'H', 'PRESS', shift=True, ctrl=True)
1487 kmi = km.keymap_items.new('node.view_all', 'A', 'PRESS')
1488 kmi = km.keymap_items.new('node.delete', 'BACK_SPACE', 'PRESS')
1489 kmi = km.keymap_items.new('node.delete', 'DEL', 'PRESS')
1490 kmi = km.keymap_items.new('node.delete_reconnect', 'X', 'PRESS', ctrl=True)
1491 kmi = km.keymap_items.new('node.select_all', 'A', 'PRESS', ctrl=True)
1492 kmi = km.keymap_items.new('node.select_linked_to', 'L', 'PRESS', shift=True)
1493 kmi = km.keymap_items.new('node.select_linked_from', 'L', 'PRESS')
1494 kmi = km.keymap_items.new('node.select_grouped', 'G', 'PRESS', shift=True)
1495 kmi = km.keymap_items.new('node.select_same_type_step', 'RIGHT_BRACKET', 'PRESS', shift=True)
1496 kmi.properties.prev = True
1497 kmi = km.keymap_items.new('node.select_same_type_step', 'LEFT_BRACKET', 'PRESS', shift=True)
1498 kmi.properties.prev = False
1499 kmi = km.keymap_items.new('node.group_make', 'G', 'PRESS', ctrl=True)
1500 kmi = km.keymap_items.new('node.group_ungroup', 'G', 'PRESS', alt=True)
1501 kmi = km.keymap_items.new('node.group_edit', 'TAB', 'PRESS')
1502 kmi = km.keymap_items.new('node.read_renderlayers', 'R', 'PRESS', ctrl=True)
1503 kmi = km.keymap_items.new('node.read_fullsamplelayers', 'R', 'PRESS', shift=True)
1504 kmi = km.keymap_items.new('node.render_changed', 'Z', 'PRESS')
1505 kmi = km.keymap_items.new('node.translate_attach', 'W', 'PRESS')
1506 kmi = km.keymap_items.new('node.translate_attach', 'EVT_TWEAK_A', 'ANY')
1507 kmi = km.keymap_items.new('node.translate_attach', 'EVT_TWEAK_S', 'ANY')
1508 kmi = km.keymap_items.new('transform.rotate', 'E', 'PRESS')
1509 kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS')
1510 kmi = km.keymap_items.new('node.move_detach_links', 'D', 'PRESS', alt=True)
1511 kmi = km.keymap_items.new('node.move_detach_links', 'EVT_TWEAK_A', 'ANY', alt=True)
1512 kmi = km.keymap_items.new('node.move_detach_links', 'EVT_TWEAK_S', 'ANY', alt=True)
1513
1514 # Map File Browser Main
1515 km = kc.keymaps.new('File Browser Main', space_type='FILE_BROWSER', region_type='WINDOW', modal=False)
1516
1517 kmi = km.keymap_items.new('file.execute', 'LEFTMOUSE', 'DOUBLE_CLICK')
1518 kmi.properties.need_active = True
1519 kmi = km.keymap_items.new('file.select', 'LEFTMOUSE', 'CLICK')
1520 kmi.properties.extend = False
1521 kmi = km.keymap_items.new('file.select', 'LEFTMOUSE', 'CLICK', shift=True)
1522 kmi.properties.extend = True
1523 kmi = km.keymap_items.new('file.select', 'LEFTMOUSE', 'CLICK', alt=True)
1524 kmi.properties.extend = True
1525 kmi.properties.fill = True
1526 kmi = km.keymap_items.new('file.select_all_toggle', 'A', 'PRESS', ctrl=True)
1527 kmi = km.keymap_items.new('file.refresh', 'F', 'PRESS')
1528 kmi = km.keymap_items.new('file.select_border', 'EVT_TWEAK_S', 'ANY')
1529 kmi.properties.extend = False
1530 kmi = km.keymap_items.new('file.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1531 kmi = km.keymap_items.new('file.rename', 'LEFTMOUSE', 'PRESS', ctrl=True)
1532 kmi = km.keymap_items.new('file.highlight', 'MOUSEMOVE', 'ANY', any=True)
1533 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_PLUS', 'PRESS')
1534 kmi.properties.increment = 1
1535 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_PLUS', 'PRESS', shift=True)
1536 kmi.properties.increment = 10
1537 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
1538 kmi.properties.increment = 100
1539 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_MINUS', 'PRESS')
1540 kmi.properties.increment = -1
1541 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_MINUS', 'PRESS', shift=True)
1542 kmi.properties.increment = -10
1543 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
1544 kmi.properties.increment = -100
1545
1546 # Map Dopesheet
1547 km = kc.keymaps.new('Dopesheet', space_type='DOPESHEET_EDITOR', region_type='WINDOW', modal=False)
1548
1549 kmi = km.keymap_items.new('action.clickselect', 'LEFTMOUSE', 'CLICK')
1550 kmi.properties.extend = False
1551 kmi.properties.column = False
1552 kmi = km.keymap_items.new('action.clickselect', 'LEFTMOUSE', 'PRESS', alt=True)
1553 kmi.properties.extend = False
1554 kmi.properties.column = True
1555 kmi = km.keymap_items.new('action.clickselect', 'LEFTMOUSE', 'CLICK', shift=True)
1556 kmi.properties.extend = True
1557 kmi.properties.column = False
1558 kmi = km.keymap_items.new('action.clickselect', 'LEFTMOUSE', 'PRESS', shift=True, alt=True)
1559 kmi.properties.extend = True
1560 kmi.properties.column = True
1561 kmi = km.keymap_items.new('action.select_leftright', 'LEFT_BRACKET', 'PRESS')
1562 kmi.properties.mode = 'LEFT'
1563 kmi.properties.extend = False
1564 kmi = km.keymap_items.new('action.select_leftright', 'RIGHT_BRACKET', 'PRESS')
1565 kmi.properties.mode = 'RIGHT'
1566 kmi.properties.extend = False
1567 kmi = km.keymap_items.new('action.select_all_toggle', 'A', 'PRESS', ctrl=True)
1568 kmi.properties.invert = False
1569 kmi = km.keymap_items.new('action.select_all_toggle', 'I', 'PRESS', ctrl=True)
1570 kmi.properties.invert = True
1571 kmi = km.keymap_items.new('action.select_border', 'EVT_TWEAK_S', 'ANY')
1572 kmi.properties.extend = False
1573 kmi.properties.axis_range = False
1574 kmi = km.keymap_items.new('action.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1575 kmi.properties.axis_range = False
1576 kmi = km.keymap_items.new('action.select_more', 'PERIOD', 'PRESS', shift=True)
1577 kmi = km.keymap_items.new('action.select_less', 'COMMA', 'PRESS', shift=True)
1578 kmi = km.keymap_items.new('action.select_linked', 'L', 'PRESS')
1579 kmi = km.keymap_items.new('action.frame_jump', 'S', 'PRESS', shift=True, ctrl=True)
1580 kmi = km.keymap_items.new('action.snap', 'S', 'PRESS', shift=True)
1581 kmi = km.keymap_items.new('action.mirror', 'M', 'PRESS', shift=True)
1582 kmi = km.keymap_items.new('action.handle_type', 'RIGHTMOUSE', 'PRESS', ctrl=True, alt=True)
1583 kmi = km.keymap_items.new('action.interpolation_type', 'RIGHTMOUSE', 'PRESS', ctrl=True)
1584 kmi = km.keymap_items.new('action.extrapolation_type', 'RIGHTMOUSE', 'PRESS', shift=True)
1585 kmi = km.keymap_items.new('action.keyframe_type', 'T', 'PRESS')
1586 kmi = km.keymap_items.new('action.delete', 'BACK_SPACE', 'PRESS')
1587 kmi = km.keymap_items.new('action.delete', 'DEL', 'PRESS')
1588 kmi = km.keymap_items.new('action.duplicate_move', 'D', 'PRESS', ctrl=True)
1589 kmi = km.keymap_items.new('action.keyframe_insert', 'I', 'PRESS')
1590 kmi = km.keymap_items.new('action.copy', 'C', 'PRESS', ctrl=True)
1591 kmi = km.keymap_items.new('action.paste', 'V', 'PRESS', ctrl=True)
1592 kmi = km.keymap_items.new('action.previewrange_set', 'P', 'PRESS', ctrl=True, alt=True)
1593 kmi = km.keymap_items.new('action.view_all', 'A', 'PRESS')
1594 kmi = km.keymap_items.new('action.view_selected', 'F', 'PRESS')
1595 kmi = km.keymap_items.new('anim.channels_editable_toggle', 'TAB', 'PRESS')
1596 kmi = km.keymap_items.new('transform.transform', 'W', 'PRESS')
1597 kmi.properties.mode = 'TIME_TRANSLATE'
1598 kmi = km.keymap_items.new('transform.transform', 'EVT_TWEAK_M', 'ANY')
1599 kmi.properties.mode = 'TIME_TRANSLATE'
1600 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS')
1601 kmi.properties.mode = 'TIME_SCALE'
1602 kmi = km.keymap_items.new('transform.transform', 'T', 'PRESS', shift=True)
1603 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
1604 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
1605 kmi = km.keymap_items.new('action.copy', 'C', 'PRESS', oskey=True)
1606 kmi = km.keymap_items.new('action.paste', 'V', 'PRESS', oskey=True)
1607 kmi = km.keymap_items.new('action.select_all_toggle', 'SELECTMOUSE', 'DOUBLE_CLICK')
1608
1609 # Map NLA Channels
1610 km = kc.keymaps.new('NLA Channels', space_type='NLA_EDITOR', region_type='WINDOW', modal=False)
1611
1612 kmi = km.keymap_items.new('nla.channels_click', 'LEFTMOUSE', 'PRESS')
1613 kmi.properties.extend = False
1614 kmi = km.keymap_items.new('nla.channels_click', 'LEFTMOUSE', 'PRESS', shift=True)
1615 kmi.properties.extend = True
1616 kmi = km.keymap_items.new('nla.tracks_add', 'A', 'PRESS', shift=True)
1617 kmi.properties.above_selected = False
1618 kmi = km.keymap_items.new('nla.tracks_add', 'A', 'PRESS', shift=True, ctrl=True)
1619 kmi.properties.above_selected = True
1620 kmi = km.keymap_items.new('nla.tracks_delete', 'BACK_SPACE', 'PRESS')
1621 kmi = km.keymap_items.new('nla.tracks_delete', 'DEL', 'PRESS')
1622
1623 # Map NLA Editor
1624 km = kc.keymaps.new('NLA Editor', space_type='NLA_EDITOR', region_type='WINDOW', modal=False)
1625
1626 kmi = km.keymap_items.new('nla.click_select', 'SELECTMOUSE', 'CLICK')
1627 kmi.properties.extend = False
1628 kmi = km.keymap_items.new('nla.click_select', 'SELECTMOUSE', 'PRESS', shift=True)
1629 kmi.properties.extend = True
1630 kmi = km.keymap_items.new('nla.select_leftright', 'SELECTMOUSE', 'PRESS', ctrl=True)
1631 kmi.properties.mode = 'CHECK'
1632 kmi.properties.extend = False
1633 kmi = km.keymap_items.new('nla.select_leftright', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
1634 kmi.properties.mode = 'CHECK'
1635 kmi.properties.extend = True
1636 kmi = km.keymap_items.new('nla.select_leftright', 'LEFT_BRACKET', 'PRESS')
1637 kmi.properties.mode = 'LEFT'
1638 kmi.properties.extend = False
1639 kmi = km.keymap_items.new('nla.select_leftright', 'RIGHT_BRACKET', 'PRESS')
1640 kmi.properties.mode = 'RIGHT'
1641 kmi.properties.extend = False
1642 kmi = km.keymap_items.new('nla.select_all_toggle', 'A', 'PRESS', ctrl=True)
1643 kmi.properties.invert = False
1644 kmi = km.keymap_items.new('nla.select_all_toggle', 'I', 'PRESS', ctrl=True)
1645 kmi.properties.invert = True
1646 kmi = km.keymap_items.new('nla.select_border', 'EVT_TWEAK_S', 'ANY')
1647 kmi.properties.extend = False
1648 kmi.properties.axis_range = False
1649 kmi = km.keymap_items.new('nla.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1650 kmi.properties.axis_range = False
1651 kmi = km.keymap_items.new('nla.view_all', 'A', 'PRESS')
1652 kmi = km.keymap_items.new('nla.view_selected', 'F', 'PRESS')
1653 kmi = km.keymap_items.new('nla.tweakmode_enter', 'TAB', 'PRESS')
1654 kmi = km.keymap_items.new('nla.tweakmode_exit', 'TAB', 'PRESS')
1655 kmi = km.keymap_items.new('nla.actionclip_add', 'A', 'PRESS', shift=True)
1656 kmi = km.keymap_items.new('nla.transition_add', 'T', 'PRESS', shift=True)
1657 kmi = km.keymap_items.new('nla.soundclip_add', 'K', 'PRESS', shift=True)
1658 kmi = km.keymap_items.new('nla.meta_add', 'G', 'PRESS', shift=True)
1659 kmi = km.keymap_items.new('nla.meta_remove', 'G', 'PRESS', alt=True)
1660 kmi = km.keymap_items.new('nla.duplicate', 'D', 'PRESS', ctrl=True)
1661 kmi = km.keymap_items.new('nla.delete', 'BACK_SPACE', 'PRESS')
1662 kmi = km.keymap_items.new('nla.delete', 'DEL', 'PRESS')
1663 kmi = km.keymap_items.new('nla.split', 'Y', 'PRESS')
1664 kmi = km.keymap_items.new('nla.mute_toggle', 'H', 'PRESS')
1665 kmi = km.keymap_items.new('nla.swap', 'F', 'PRESS', alt=True)
1666 kmi = km.keymap_items.new('nla.move_up', 'PAGE_UP', 'PRESS')
1667 kmi = km.keymap_items.new('nla.move_down', 'PAGE_DOWN', 'PRESS')
1668 kmi = km.keymap_items.new('nla.apply_scale', 'R', 'PRESS', ctrl=True)
1669 kmi = km.keymap_items.new('nla.clear_scale', 'R', 'PRESS', alt=True)
1670 kmi = km.keymap_items.new('nla.snap', 'S', 'PRESS', shift=True)
1671 kmi = km.keymap_items.new('nla.fmodifier_add', 'M', 'PRESS', shift=True, ctrl=True)
1672 kmi = km.keymap_items.new('transform.transform', 'W', 'PRESS')
1673 kmi = km.keymap_items.new('transform.transform', 'EVT_TWEAK_M', 'ANY')
1674 kmi = km.keymap_items.new('transform.transform', 'R', 'PRESS')
1675 kmi.properties.mode = 'TIME_SCALE'
1676 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
1677 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
1678 kmi = km.keymap_items.new('nla.select_all_toggle', 'LEFTMOUSE', 'DOUBLE_CLICK')
1679
1680 # Map Sequencer
1681 km = kc.keymaps.new('Sequencer', space_type='SEQUENCE_EDITOR', region_type='WINDOW', modal=False)
1682
1683 kmi = km.keymap_items.new('sequencer.properties', 'N', 'PRESS')
1684 kmi = km.keymap_items.new('sequencer.select_all', 'A', 'PRESS', ctrl=True)
1685 kmi.properties.action = 'TOGGLE'
1686 kmi = km.keymap_items.new('sequencer.select_all', 'I', 'PRESS', ctrl=True)
1687 kmi.properties.action = 'INVERT'
1688 kmi = km.keymap_items.new('sequencer.cut', 'K', 'PRESS')
1689 kmi.properties.type = 'SOFT'
1690 kmi = km.keymap_items.new('sequencer.cut', 'K', 'PRESS', shift=True)
1691 kmi.properties.type = 'HARD'
1692 kmi = km.keymap_items.new('sequencer.mute', 'H', 'PRESS', ctrl=True)
1693 kmi.properties.unselected = False
1694 kmi = km.keymap_items.new('sequencer.mute', 'H', 'PRESS', alt=True)
1695 kmi.properties.unselected = True
1696 kmi = km.keymap_items.new('sequencer.unmute', 'H', 'PRESS', shift=True, ctrl=True)
1697 kmi.properties.unselected = False
1698 kmi = km.keymap_items.new('sequencer.unmute', 'H', 'PRESS', shift=True, alt=True)
1699 kmi.properties.unselected = True
1700 kmi = km.keymap_items.new('sequencer.lock', 'L', 'PRESS', shift=True)
1701 kmi = km.keymap_items.new('sequencer.unlock', 'L', 'PRESS', shift=True, alt=True)
1702 kmi = km.keymap_items.new('sequencer.reassign_inputs', 'R', 'PRESS')
1703 kmi = km.keymap_items.new('sequencer.reload', 'R', 'PRESS', alt=True)
1704 kmi = km.keymap_items.new('sequencer.reload', 'R', 'PRESS', shift=True, alt=True)
1705 kmi.properties.adjust_length = True
1706 kmi = km.keymap_items.new('sequencer.offset_clear', 'O', 'PRESS', alt=True)
1707 kmi = km.keymap_items.new('sequencer.duplicate', 'D', 'PRESS', ctrl=True)
1708 kmi = km.keymap_items.new('sequencer.delete', 'BACK_SPACE', 'PRESS')
1709 kmi = km.keymap_items.new('sequencer.delete', 'DEL', 'PRESS')
1710 kmi = km.keymap_items.new('sequencer.copy', 'C', 'PRESS', ctrl=True)
1711 kmi = km.keymap_items.new('sequencer.paste', 'V', 'PRESS', ctrl=True)
1712 kmi = km.keymap_items.new('sequencer.images_separate', 'Y', 'PRESS')
1713 kmi = km.keymap_items.new('sequencer.meta_toggle', 'TAB', 'PRESS')
1714 kmi = km.keymap_items.new('sequencer.meta_make', 'G', 'PRESS', ctrl=True)
1715 kmi = km.keymap_items.new('sequencer.meta_separate', 'G', 'PRESS', alt=True)
1716 kmi = km.keymap_items.new('sequencer.view_all', 'A', 'PRESS')
1717 kmi = km.keymap_items.new('sequencer.view_selected', 'F', 'PRESS')
1718 kmi = km.keymap_items.new('sequencer.strip_jump', 'PAGE_UP', 'PRESS')
1719 kmi.properties.next = True
1720 kmi = km.keymap_items.new('sequencer.strip_jump', 'PAGE_DOWN', 'PRESS')
1721 kmi.properties.next = False
1722 kmi = km.keymap_items.new('sequencer.swap', 'LEFT_ARROW', 'PRESS', alt=True)
1723 kmi.properties.side = 'LEFT'
1724 kmi = km.keymap_items.new('sequencer.swap', 'RIGHT_ARROW', 'PRESS', alt=True)
1725 kmi.properties.side = 'RIGHT'
1726 kmi = km.keymap_items.new('sequencer.snap', 'S', 'PRESS', shift=True)
1727 kmi = km.keymap_items.new('sequencer.swap_inputs', 'S', 'PRESS', alt=True)
1728 kmi = km.keymap_items.new('sequencer.cut_multicam', 'ONE', 'PRESS')
1729 kmi.properties.camera = 1
1730 kmi = km.keymap_items.new('sequencer.cut_multicam', 'TWO', 'PRESS')
1731 kmi.properties.camera = 2
1732 kmi = km.keymap_items.new('sequencer.cut_multicam', 'THREE', 'PRESS')
1733 kmi.properties.camera = 3
1734 kmi = km.keymap_items.new('sequencer.cut_multicam', 'FOUR', 'PRESS')
1735 kmi.properties.camera = 4
1736 kmi = km.keymap_items.new('sequencer.cut_multicam', 'FIVE', 'PRESS')
1737 kmi.properties.camera = 5
1738 kmi = km.keymap_items.new('sequencer.cut_multicam', 'SIX', 'PRESS')
1739 kmi.properties.camera = 6
1740 kmi = km.keymap_items.new('sequencer.cut_multicam', 'SEVEN', 'PRESS')
1741 kmi.properties.camera = 7
1742 kmi = km.keymap_items.new('sequencer.cut_multicam', 'EIGHT', 'PRESS')
1743 kmi.properties.camera = 8
1744 kmi = km.keymap_items.new('sequencer.cut_multicam', 'NINE', 'PRESS')
1745 kmi.properties.camera = 9
1746 kmi = km.keymap_items.new('sequencer.cut_multicam', 'ZERO', 'PRESS')
1747 kmi.properties.camera = 10
1748 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'CLICK')
1749 kmi.properties.extend = False
1750 kmi.properties.linked_handle = False
1751 kmi.properties.left_right = 'NONE'
1752 kmi.properties.linked_time = False
1753 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'CLICK', shift=True)
1754 kmi.properties.extend = True
1755 kmi.properties.linked_handle = False
1756 kmi.properties.left_right = 'NONE'
1757 kmi.properties.linked_time = False
1758 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', alt=True)
1759 kmi.properties.extend = False
1760 kmi.properties.linked_handle = True
1761 kmi.properties.left_right = 'NONE'
1762 kmi.properties.linked_time = False
1763 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'CLICK', shift=True, alt=True)
1764 kmi.properties.extend = True
1765 kmi.properties.linked_handle = True
1766 kmi.properties.left_right = 'NONE'
1767 kmi.properties.linked_time = False
1768 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
1769 kmi.properties.extend = False
1770 kmi.properties.linked_handle = False
1771 kmi.properties.left_right = 'MOUSE'
1772 kmi.properties.linked_time = True
1773 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
1774 kmi.properties.extend = True
1775 kmi.properties.linked_handle = False
1776 kmi.properties.left_right = 'NONE'
1777 kmi.properties.linked_time = True
1778 kmi = km.keymap_items.new('sequencer.select_more', 'PERIOD', 'PRESS', shift=True)
1779 kmi = km.keymap_items.new('sequencer.select_less', 'COMMA', 'PRESS', shift=True)
1780 kmi = km.keymap_items.new('sequencer.select_linked_pick', 'L', 'PRESS')
1781 kmi.properties.extend = False
1782 kmi = km.keymap_items.new('sequencer.select_linked_pick', 'L', 'PRESS', shift=True)
1783 kmi.properties.extend = True
1784 kmi = km.keymap_items.new('sequencer.select_linked', 'L', 'PRESS', ctrl=True)
1785 kmi = km.keymap_items.new('sequencer.select_border', 'EVT_TWEAK_S', 'ANY')
1786 kmi.properties.extend = False
1787 kmi = km.keymap_items.new('sequencer.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1788 kmi = km.keymap_items.new('sequencer.select_grouped', 'G', 'PRESS', shift=True)
1789 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
1790 kmi.properties.name = 'SEQUENCER_MT_add'
1791 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', shift=True)
1792 kmi.properties.name = 'SEQUENCER_MT_change'
1793 kmi = km.keymap_items.new('wm.context_set_int', 'O', 'PRESS')
1794 kmi.properties.data_path = 'scene.sequence_editor.overlay_frame'
1795 kmi.properties.value = 0
1796 kmi = km.keymap_items.new('transform.seq_slide', 'W', 'PRESS')
1797 kmi = km.keymap_items.new('transform.seq_slide', 'EVT_TWEAK_M', 'ANY')
1798 kmi = km.keymap_items.new('transform.transform', 'E', 'PRESS')
1799 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
1800 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
1801
1802 # Map Clip Editor
1803 km = kc.keymaps.new('Clip Editor', space_type='CLIP_EDITOR', region_type='WINDOW', modal=False)
1804
1805 kmi = km.keymap_items.new('clip.view_pan', 'MIDDLEMOUSE', 'PRESS', alt=True)
1806 kmi = km.keymap_items.new('clip.view_pan', 'MIDDLEMOUSE', 'PRESS', shift=True)
1807 kmi = km.keymap_items.new('clip.view_pan', 'TRACKPADPAN', 'ANY')
1808 kmi = km.keymap_items.new('clip.view_zoom', 'RIGHTMOUSE', 'PRESS', alt=True)
1809 kmi = km.keymap_items.new('clip.view_zoom', 'TRACKPADZOOM', 'ANY')
1810 kmi = km.keymap_items.new('clip.view_zoom_in', 'WHEELINMOUSE', 'PRESS')
1811 kmi = km.keymap_items.new('clip.view_zoom_out', 'WHEELOUTMOUSE', 'PRESS')
1812 kmi = km.keymap_items.new('clip.view_zoom_in', 'NUMPAD_PLUS', 'PRESS')
1813 kmi = km.keymap_items.new('clip.view_zoom_out', 'NUMPAD_MINUS', 'PRESS')
1814 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS', shift=True)
1815 kmi.properties.ratio = 8.0
1816 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS', shift=True)
1817 kmi.properties.ratio = 4.0
1818 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS', shift=True)
1819 kmi.properties.ratio = 2.0
1820 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_1', 'PRESS')
1821 kmi.properties.ratio = 1.0
1822 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS')
1823 kmi.properties.ratio = 0.5
1824 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS')
1825 kmi.properties.ratio = 0.25
1826 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS')
1827 kmi.properties.ratio = 0.125
1828 kmi = km.keymap_items.new('clip.view_all', 'A', 'PRESS')
1829 kmi = km.keymap_items.new('clip.view_all', 'F', 'PRESS')
1830 kmi.properties.fit_view = True
1831 kmi = km.keymap_items.new('clip.view_selected', 'F', 'PRESS')
1832 kmi = km.keymap_items.new('clip.frame_jump', 'LEFT_ARROW', 'PRESS', shift=True, ctrl=True)
1833 kmi.properties.position = 'PATHSTART'
1834 kmi = km.keymap_items.new('clip.frame_jump', 'RIGHT_ARROW', 'PRESS', shift=True, ctrl=True)
1835 kmi.properties.position = 'PATHEND'
1836 kmi = km.keymap_items.new('clip.frame_jump', 'LEFT_ARROW', 'PRESS', shift=True, alt=True)
1837 kmi.properties.position = 'FAILEDPREV'
1838 kmi = km.keymap_items.new('clip.frame_jump', 'RIGHT_ARROW', 'PRESS', shift=True, alt=True)
1839 kmi.properties.position = 'PATHSTART'
1840 kmi = km.keymap_items.new('clip.change_frame', 'LEFTMOUSE', 'PRESS')
1841 kmi = km.keymap_items.new('clip.select', 'SELECTMOUSE', 'PRESS')
1842 kmi.properties.extend = False
1843 kmi = km.keymap_items.new('clip.select', 'SELECTMOUSE', 'PRESS', shift=True)
1844 kmi.properties.extend = True
1845 kmi = km.keymap_items.new('clip.select_all', 'A', 'PRESS', ctrl=True)
1846 kmi.properties.action = 'TOGGLE'
1847 kmi = km.keymap_items.new('clip.select_all', 'I', 'PRESS', ctrl=True)
1848 kmi.properties.action = 'INVERT'
1849 kmi = km.keymap_items.new('clip.select_border', 'EVT_TWEAK_S', 'ANY')
1850 kmi.properties.extend = False
1851 kmi = km.keymap_items.new('clip.select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1852 kmi = km.keymap_items.new('clip.select_circle', 'Q', 'PRESS', shift=True)
1853 kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', shift=True)
1854 kmi.properties.name = 'CLIP_MT_select_grouped'
1855 kmi = km.keymap_items.new('clip.add_marker_slide', 'LEFTMOUSE', 'PRESS', ctrl=True)
1856 kmi = km.keymap_items.new('clip.delete_marker', 'DEL', 'PRESS', shift=True)
1857 kmi = km.keymap_items.new('clip.delete_marker', 'X', 'PRESS', shift=True)
1858 kmi = km.keymap_items.new('clip.slide_marker', 'LEFTMOUSE', 'PRESS')
1859 kmi = km.keymap_items.new('clip.disable_markers', 'D', 'PRESS', shift=True)
1860 kmi.properties.action = 'TOGGLE'
1861 kmi = km.keymap_items.new('clip.delete_track', 'DEL', 'PRESS')
1862 kmi = km.keymap_items.new('clip.delete_track', 'BACK_SPACE', 'PRESS')
1863 kmi = km.keymap_items.new('clip.lock_tracks', 'L', 'PRESS', ctrl=True)
1864 kmi.properties.action = 'LOCK'
1865 kmi = km.keymap_items.new('clip.lock_tracks', 'L', 'PRESS', alt=True)
1866 kmi.properties.action = 'UNLOCK'
1867 kmi = km.keymap_items.new('clip.hide_tracks', 'H', 'PRESS', ctrl=True)
1868 kmi.properties.unselected = False
1869 kmi = km.keymap_items.new('clip.hide_tracks', 'H', 'PRESS', alt=True)
1870 kmi.properties.unselected = True
1871 kmi = km.keymap_items.new('clip.hide_tracks_clear', 'H', 'PRESS', shift=True, ctrl=True)
1872 kmi = km.keymap_items.new('clip.join_tracks', 'J', 'PRESS', ctrl=True)
1873 kmi = km.keymap_items.new('wm.call_menu', 'RIGHTMOUSE', 'PRESS', ctrl=True)
1874 kmi.properties.name = 'CLIP_MT_tracking_specials'
1875 kmi = km.keymap_items.new('wm.context_toggle', 'L', 'PRESS')
1876 kmi.properties.data_path = 'space_data.lock_selection'
1877 kmi = km.keymap_items.new('wm.context_toggle', 'D', 'PRESS', alt=True)
1878 kmi.properties.data_path = 'space_data.show_disabled'
1879 kmi = km.keymap_items.new('wm.context_toggle', 'S', 'PRESS', alt=True)
1880 kmi.properties.data_path = 'space_data.show_marker_search'
1881 kmi = km.keymap_items.new('wm.context_toggle', 'M', 'PRESS')
1882 kmi.properties.data_path = 'space_data.use_mute_footage'
1883 kmi = km.keymap_items.new('transform.translate', 'W', 'PRESS')
1884 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
1885 kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS')
1886 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', alt=True)
1887 kmi.properties.action = 'REMAINED'
1888 kmi.properties.clear_active = False
1889 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True)
1890 kmi.properties.action = 'UPTO'
1891 kmi.properties.clear_active = False
1892 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True, alt=True)
1893 kmi.properties.action = 'ALL'
1894 kmi.properties.clear_active = False
1895
1896 # Map Clip Graph Editor
1897 km = kc.keymaps.new('Clip Graph Editor', space_type='CLIP_EDITOR', region_type='WINDOW', modal=False)
1898
1899 kmi = km.keymap_items.new('clip.change_frame', 'ACTIONMOUSE', 'PRESS')
1900 kmi = km.keymap_items.new('clip.graph_select', 'SELECTMOUSE', 'PRESS')
1901 kmi.properties.extend = False
1902 kmi = km.keymap_items.new('clip.graph_select', 'SELECTMOUSE', 'PRESS', shift=True)
1903 kmi.properties.extend = True
1904 kmi = km.keymap_items.new('clip.graph_select_all_markers', 'A', 'PRESS')
1905 kmi.properties.action = 'TOGGLE'
1906 kmi = km.keymap_items.new('clip.graph_select_all_markers', 'I', 'PRESS', ctrl=True)
1907 kmi.properties.action = 'INVERT'
1908 kmi = km.keymap_items.new('clip.graph_select_border', 'EVT_TWEAK_S', 'ANY')
1909 kmi.properties.extend = False
1910 kmi = km.keymap_items.new('clip.graph_select_border', 'EVT_TWEAK_S', 'ANY', any=True)
1911 kmi = km.keymap_items.new('clip.graph_delete_curve', 'DEL', 'PRESS')
1912 kmi = km.keymap_items.new('clip.graph_delete_curve', 'BACK_SPACE', 'PRESS')
1913 kmi = km.keymap_items.new('clip.graph_delete_knot', 'DEL', 'PRESS', shift=True)
1914 kmi = km.keymap_items.new('clip.graph_delete_knot', 'X', 'PRESS', shift=True)
1915 kmi = km.keymap_items.new('clip.graph_view_all', 'A', 'PRESS')
1916 kmi = km.keymap_items.new('clip.graph_center_current_frame', 'F', 'PRESS')
1917 kmi = km.keymap_items.new('wm.context_toggle', 'L', 'PRESS')
1918 kmi.properties.data_path = 'space_data.lock_time_cursor'
1919 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', alt=True)
1920 kmi.properties.action = 'REMAINED'
1921 kmi.properties.clear_active = True
1922 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True)
1923 kmi.properties.action = 'UPTO'
1924 kmi.properties.clear_active = True
1925 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True, alt=True)
1926 kmi.properties.action = 'ALL'
1927 kmi.properties.clear_active = True
1928 kmi = km.keymap_items.new('clip.graph_disable_markers', 'D', 'PRESS', shift=True)
1929 kmi.properties.action = 'TOGGLE'
1930 kmi = km.keymap_items.new('transform.translate', 'W', 'PRESS')
1931 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
1932 kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS')
1933