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