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