Fix #36641: maya key configuration shift + LMB drag border select did not work
[blender.git] / release / scripts / presets / keyconfig / 3dsmax.py
1 # Configuration 3dsmax
2 import bpy
3
4 wm = bpy.context.window_manager
5 kc = wm.keyconfigs.new('3dsmax')
6
7 # Map Window
8 km = kc.keymaps.new('Window', space_type='EMPTY', region_type='WINDOW', modal=False)
9
10 kmi = km.keymap_items.new('wm.window_duplicate', 'W', 'PRESS', ctrl=True, alt=True)
11 kmi = km.keymap_items.new('wm.read_homefile', 'N', 'PRESS', ctrl=True)
12 kmi = km.keymap_items.new('wm.save_homefile', 'U', 'PRESS', ctrl=True)
13 kmi = km.keymap_items.new('wm.call_menu', 'O', 'PRESS', shift=True, ctrl=True)
14 kmi.properties.name = 'INFO_MT_file_open_recent'
15 kmi = km.keymap_items.new('wm.open_mainfile', 'O', 'PRESS', ctrl=True)
16 kmi = km.keymap_items.new('wm.open_mainfile', 'F1', 'PRESS')
17 kmi = km.keymap_items.new('wm.link_append', 'O', 'PRESS', ctrl=True, alt=True)
18 kmi = km.keymap_items.new('wm.link_append', 'F1', 'PRESS', shift=True)
19 kmi.properties.link = False
20 kmi.properties.instance_groups = False
21 kmi = km.keymap_items.new('wm.save_mainfile', 'S', 'PRESS', ctrl=True)
22 kmi = km.keymap_items.new('wm.save_mainfile', 'W', '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')
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, ctrl=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, ctrl=True)
59 kmi.properties.data_path = 'area.type'
60 kmi.properties.value = 'IMAGE_EDITOR'
61 kmi = km.keymap_items.new('wm.context_set_enum', 'F11', 'PRESS', shift=True)
62 kmi.properties.data_path = 'area.type'
63 kmi.properties.value = 'TEXT_EDITOR'
64 kmi = km.keymap_items.new('wm.context_set_enum', 'F12', 'PRESS', shift=True)
65 kmi.properties.data_path = 'area.type'
66 kmi.properties.value = 'DOPESHEET_EDITOR'
67 kmi = km.keymap_items.new('wm.ndof_sensitivity_change', 'NDOF_BUTTON_PLUS', 'PRESS')
68 kmi.properties.decrease = False
69 kmi.properties.fast = False
70 kmi = km.keymap_items.new('wm.ndof_sensitivity_change', 'NDOF_BUTTON_MINUS', 'PRESS')
71 kmi.properties.decrease = True
72 kmi.properties.fast = False
73 kmi = km.keymap_items.new('wm.ndof_sensitivity_change', 'NDOF_BUTTON_PLUS', 'PRESS', shift=True)
74 kmi.properties.decrease = False
75 kmi.properties.fast = True
76 kmi = km.keymap_items.new('wm.ndof_sensitivity_change', 'NDOF_BUTTON_MINUS', 'PRESS', shift=True)
77 kmi.properties.decrease = True
78 kmi.properties.fast = True
79 kmi = km.keymap_items.new('info.reports_display_update', 'TIMER_REPORT', 'ANY', any=True)
80
81 # Map Screen
82 km = kc.keymaps.new('Screen', space_type='EMPTY', region_type='WINDOW', modal=False)
83
84 kmi = km.keymap_items.new('screen.animation_step', 'TIMER0', 'ANY', any=True)
85 kmi = km.keymap_items.new('screen.region_blend', 'TIMER_REGION', 'ANY', any=True)
86 kmi = km.keymap_items.new('screen.screen_set', 'RIGHT_ARROW', 'PRESS', ctrl=True)
87 kmi.properties.delta = 1
88 kmi = km.keymap_items.new('screen.screen_set', 'LEFT_ARROW', 'PRESS', ctrl=True)
89 kmi.properties.delta = -1
90 kmi = km.keymap_items.new('screen.screen_full_area', 'UP_ARROW', 'PRESS', ctrl=True)
91 kmi = km.keymap_items.new('screen.screen_full_area', 'DOWN_ARROW', 'PRESS', ctrl=True)
92 kmi = km.keymap_items.new('screen.screen_full_area', 'SPACE', 'PRESS', shift=True)
93 kmi = km.keymap_items.new('screen.screenshot', 'F3', 'PRESS', ctrl=True)
94 kmi = km.keymap_items.new('screen.screencast', 'F3', 'PRESS', alt=True)
95 kmi = km.keymap_items.new('screen.region_quadview', 'W', 'PRESS', alt=True)
96 kmi = km.keymap_items.new('screen.repeat_history', 'F3', 'PRESS', shift=True)
97 kmi = km.keymap_items.new('screen.repeat_last', 'R', 'PRESS', shift=True)
98 kmi = km.keymap_items.new('screen.region_flip', 'F5', 'PRESS')
99 kmi = km.keymap_items.new('screen.redo_last', 'F6', 'PRESS')
100 kmi = km.keymap_items.new('script.reload', 'F8', 'PRESS')
101 kmi = km.keymap_items.new('file.execute', 'RET', 'PRESS')
102 kmi = km.keymap_items.new('file.execute', 'NUMPAD_ENTER', 'PRESS')
103 kmi = km.keymap_items.new('file.cancel', 'ESC', 'PRESS')
104 kmi = km.keymap_items.new('ed.undo', 'Z', 'PRESS', ctrl=True)
105 kmi = km.keymap_items.new('ed.redo', 'Z', 'PRESS', shift=True, ctrl=True)
106 kmi = km.keymap_items.new('ed.undo_history', 'Z', 'PRESS', ctrl=True, alt=True)
107 kmi = km.keymap_items.new('render.render', 'F10', 'PRESS')
108 kmi = km.keymap_items.new('render.render', 'F10', 'PRESS', ctrl=True)
109 kmi.properties.animation = True
110 kmi = km.keymap_items.new('render.view_cancel', 'ESC', 'PRESS')
111 kmi = km.keymap_items.new('render.view_show', 'F11', 'PRESS')
112 kmi = km.keymap_items.new('render.play_rendered_anim', 'F11', 'PRESS', ctrl=True)
113 kmi = km.keymap_items.new('screen.userpref_show', 'U', 'PRESS', ctrl=True, alt=True)
114
115 # Map Markers
116 km = kc.keymaps.new('Markers', space_type='EMPTY', region_type='WINDOW', modal=False)
117
118 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
119 kmi = km.keymap_items.new('marker.move', 'EVT_TWEAK_S', 'ANY')
120 kmi = km.keymap_items.new('marker.duplicate', 'D', 'PRESS', shift=True)
121 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS')
122 kmi.properties.extend = False
123 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS', shift=True)
124 kmi.properties.extend = True
125 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
126 kmi.properties.extend = False
127 kmi.properties.camera = True
128 kmi = km.keymap_items.new('marker.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
129 kmi.properties.extend = True
130 kmi.properties.camera = True
131 kmi = km.keymap_items.new('marker.select_border', 'B', 'PRESS')
132 kmi = km.keymap_items.new('marker.select_all', 'A', 'PRESS', ctrl=True)
133 kmi = km.keymap_items.new('marker.delete', 'X', 'PRESS')
134 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
135 kmi = km.keymap_items.new('marker.move', 'G', 'PRESS')
136 kmi = km.keymap_items.new('marker.camera_bind', 'B', 'PRESS', ctrl=True)
137
138 # Map Outliner
139 km = kc.keymaps.new('Outliner', space_type='OUTLINER', region_type='WINDOW', modal=False)
140
141 kmi = km.keymap_items.new('outliner.item_rename', 'LEFTMOUSE', 'DOUBLE_CLICK')
142 kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK')
143 kmi.properties.extend = False
144 kmi.properties.recursive = False
145 kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK', shift=True)
146 kmi.properties.extend = True
147 kmi.properties.recursive = False
148 kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK', ctrl=True)
149 kmi.properties.extend = False
150 kmi.properties.recursive = True
151 kmi = km.keymap_items.new('outliner.item_activate', 'LEFTMOUSE', 'CLICK', shift=True, ctrl=True)
152 kmi.properties.extend = True
153 kmi.properties.recursive = True
154 kmi = km.keymap_items.new('outliner.select_border', 'B', 'PRESS')
155 kmi = km.keymap_items.new('outliner.item_openclose', 'RET', 'PRESS')
156 kmi.properties.all = False
157 kmi = km.keymap_items.new('outliner.item_openclose', 'RET', 'PRESS', shift=True)
158 kmi.properties.all = True
159 kmi = km.keymap_items.new('outliner.item_rename', 'LEFTMOUSE', 'PRESS', ctrl=True)
160 kmi = km.keymap_items.new('outliner.operation', 'RIGHTMOUSE', 'PRESS')
161 kmi = km.keymap_items.new('outliner.show_hierarchy', 'HOME', 'PRESS')
162 kmi = km.keymap_items.new('outliner.show_active', 'PERIOD', 'PRESS')
163 kmi = km.keymap_items.new('outliner.show_active', 'NUMPAD_PERIOD', 'PRESS')
164 kmi = km.keymap_items.new('outliner.scroll_page', 'PAGE_DOWN', 'PRESS')
165 kmi = km.keymap_items.new('outliner.scroll_page', 'PAGE_UP', 'PRESS')
166 kmi.properties.up = True
167 kmi = km.keymap_items.new('outliner.show_one_level', 'NUMPAD_PLUS', 'PRESS')
168 kmi = km.keymap_items.new('outliner.show_one_level', 'NUMPAD_MINUS', 'PRESS')
169 kmi.properties.open = False
170 kmi = km.keymap_items.new('outliner.selected_toggle', 'A', 'PRESS', ctrl=True)
171 kmi = km.keymap_items.new('outliner.expanded_toggle', 'A', 'PRESS', shift=True)
172 kmi = km.keymap_items.new('outliner.renderability_toggle', 'R', 'PRESS')
173 kmi = km.keymap_items.new('outliner.selectability_toggle', 'S', 'PRESS')
174 kmi = km.keymap_items.new('outliner.visibility_toggle', 'V', 'PRESS')
175 kmi = km.keymap_items.new('outliner.keyingset_add_selected', 'K', 'PRESS')
176 kmi = km.keymap_items.new('outliner.keyingset_remove_selected', 'K', 'PRESS', alt=True)
177 kmi = km.keymap_items.new('anim.keyframe_insert', 'I', 'PRESS')
178 kmi = km.keymap_items.new('anim.keyframe_delete', 'I', 'PRESS', alt=True)
179 kmi = km.keymap_items.new('outliner.drivers_add_selected', 'D', 'PRESS')
180 kmi = km.keymap_items.new('outliner.drivers_delete_selected', 'D', 'PRESS', alt=True)
181
182 # Map 3D View Generic
183 km = kc.keymaps.new('3D View Generic', space_type='VIEW_3D', region_type='WINDOW', modal=False)
184
185 kmi = km.keymap_items.new('view3d.properties', 'F12', 'PRESS')
186 kmi = km.keymap_items.new('view3d.toolshelf', 'D', 'PRESS')
187
188 # Map Face Mask
189 km = kc.keymaps.new('Face Mask', space_type='EMPTY', region_type='WINDOW', modal=False)
190
191 kmi = km.keymap_items.new('paint.face_select_all', 'A', 'PRESS', ctrl=True)
192 kmi = km.keymap_items.new('paint.face_select_all', 'I', 'PRESS', ctrl=True)
193 kmi.properties.action = 'INVERT'
194 kmi = km.keymap_items.new('paint.face_select_hide', 'H', 'PRESS')
195 kmi.properties.unselected = False
196 kmi = km.keymap_items.new('paint.face_select_hide', 'H', 'PRESS', shift=True)
197 kmi.properties.unselected = True
198 kmi = km.keymap_items.new('paint.face_select_reveal', 'H', 'PRESS', alt=True)
199 kmi = km.keymap_items.new('paint.face_select_linked', 'L', 'PRESS', ctrl=True)
200 kmi = km.keymap_items.new('paint.face_select_linked_pick', 'L', 'PRESS')
201
202 # Map Weight Paint Vertex Selection
203 km = kc.keymaps.new('Weight Paint Vertex Selection', space_type='EMPTY', region_type='WINDOW', modal=False)
204
205 kmi = km.keymap_items.new('paint.vert_select_all', 'A', 'PRESS', ctrl=True)
206 kmi.properties.action = 'SELECT'
207 kmi = km.keymap_items.new('paint.vert_select_all', 'I', 'PRESS', ctrl=True)
208 kmi.properties.action = 'INVERT'
209 kmi = km.keymap_items.new('view3d.select_border', 'B', 'PRESS')
210 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True)
211 kmi.properties.deselect = False
212 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
213 kmi.properties.deselect = True
214 kmi = km.keymap_items.new('view3d.select_circle', 'C', 'PRESS', alt=True)
215
216 # Map Pose
217 km = kc.keymaps.new('Pose', space_type='EMPTY', region_type='WINDOW', modal=False)
218
219 kmi = km.keymap_items.new('object.parent_set', 'P', 'PRESS', ctrl=True)
220 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
221 kmi.properties.name = 'INFO_MT_add'
222 kmi = km.keymap_items.new('pose.hide', 'H', 'PRESS')
223 kmi.properties.unselected = False
224 kmi = km.keymap_items.new('pose.hide', 'H', 'PRESS', shift=True)
225 kmi.properties.unselected = True
226 kmi = km.keymap_items.new('pose.reveal', 'H', 'PRESS', alt=True)
227 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True, ctrl=True)
228 kmi.properties.name = 'VIEW3D_MT_pose_apply'
229 kmi = km.keymap_items.new('pose.rot_clear', 'R', 'PRESS', alt=True)
230 kmi = km.keymap_items.new('pose.loc_clear', 'G', 'PRESS', alt=True)
231 kmi = km.keymap_items.new('pose.scale_clear', 'S', 'PRESS', alt=True)
232 kmi = km.keymap_items.new('pose.quaternions_flip', 'F', 'PRESS', alt=True)
233 kmi = km.keymap_items.new('pose.rotation_mode_set', 'R', 'PRESS', ctrl=True)
234 kmi = km.keymap_items.new('pose.copy', 'C', 'PRESS', ctrl=True)
235 kmi = km.keymap_items.new('pose.paste', 'V', 'PRESS', ctrl=True)
236 kmi.properties.flipped = False
237 kmi = km.keymap_items.new('pose.paste', 'V', 'PRESS', shift=True, ctrl=True)
238 kmi.properties.flipped = True
239 kmi = km.keymap_items.new('pose.select_all', 'LEFTMOUSE', 'CLICK')
240 kmi.properties.action = 'TOGGLE'
241 kmi = km.keymap_items.new('pose.select_all', 'I', 'PRESS', ctrl=True)
242 kmi.properties.action = 'INVERT'
243 kmi = km.keymap_items.new('pose.select_parent', 'P', 'PRESS', shift=True)
244 kmi = km.keymap_items.new('pose.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
245 kmi.properties.direction = 'PARENT'
246 kmi.properties.extend = False
247 kmi = km.keymap_items.new('pose.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
248 kmi.properties.direction = 'PARENT'
249 kmi.properties.extend = True
250 kmi = km.keymap_items.new('pose.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
251 kmi.properties.direction = 'CHILD'
252 kmi.properties.extend = False
253 kmi = km.keymap_items.new('pose.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
254 kmi.properties.direction = 'CHILD'
255 kmi.properties.extend = True
256 kmi = km.keymap_items.new('pose.select_linked', 'L', 'PRESS', alt=True)
257 kmi = km.keymap_items.new('pose.select_grouped', 'G', 'PRESS', shift=True)
258 kmi = km.keymap_items.new('pose.select_flip_active', 'F', 'PRESS', shift=True)
259 kmi = km.keymap_items.new('pose.constraint_add_with_targets', 'C', 'PRESS', shift=True, ctrl=True)
260 kmi = km.keymap_items.new('pose.constraints_clear', 'C', 'PRESS', ctrl=True, alt=True)
261 kmi = km.keymap_items.new('pose.ik_add', 'I', 'PRESS', shift=True)
262 kmi = km.keymap_items.new('pose.ik_clear', 'I', 'PRESS', ctrl=True, alt=True)
263 kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', ctrl=True)
264 kmi.properties.name = 'VIEW3D_MT_pose_group'
265 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', shift=True)
266 kmi.properties.name = 'VIEW3D_MT_bone_options_toggle'
267 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', shift=True, ctrl=True)
268 kmi.properties.name = 'VIEW3D_MT_bone_options_enable'
269 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', alt=True)
270 kmi.properties.name = 'VIEW3D_MT_bone_options_disable'
271 kmi = km.keymap_items.new('armature.layers_show_all', 'ACCENT_GRAVE', 'PRESS', ctrl=True)
272 kmi = km.keymap_items.new('pose.armature_layers', 'M', 'PRESS', shift=True)
273 kmi = km.keymap_items.new('pose.bone_layers', 'M', 'PRESS')
274 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', ctrl=True, alt=True)
275 kmi.properties.mode = 'BONE_SIZE'
276 kmi = km.keymap_items.new('anim.keyframe_insert_menu', 'I', 'PRESS')
277 kmi = km.keymap_items.new('anim.keyframe_delete_v3d', 'I', 'PRESS', alt=True)
278 kmi = km.keymap_items.new('anim.keying_set_active_set', 'I', 'PRESS', shift=True, ctrl=True, alt=True)
279 kmi = km.keymap_items.new('poselib.browse_interactive', 'L', 'PRESS', ctrl=True)
280 kmi = km.keymap_items.new('poselib.pose_add', 'L', 'PRESS', shift=True)
281 kmi = km.keymap_items.new('poselib.pose_remove', 'L', 'PRESS', ctrl=True, alt=True)
282 kmi = km.keymap_items.new('poselib.pose_rename', 'L', 'PRESS', shift=True, ctrl=True)
283 kmi = km.keymap_items.new('pose.push', 'E', 'PRESS', ctrl=True)
284 kmi = km.keymap_items.new('pose.relax', 'E', 'PRESS', alt=True)
285 kmi = km.keymap_items.new('pose.breakdown', 'E', 'PRESS', shift=True)
286 kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
287 kmi.properties.name = 'VIEW3D_MT_pose_specials'
288
289 # Map Object Mode
290 km = kc.keymaps.new('Object Mode', space_type='EMPTY', region_type='WINDOW', modal=False)
291
292 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
293 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
294 kmi = km.keymap_items.new('wm.context_toggle', 'O', 'PRESS')
295 kmi.properties.data_path = 'tool_settings.use_proportional_edit_objects'
296 kmi = km.keymap_items.new('view3d.game_start', 'P', 'PRESS', shift=True, ctrl=True, alt=True)
297 kmi = km.keymap_items.new('object.select_all', 'LEFTMOUSE', 'CLICK')
298 kmi.properties.action = 'DESELECT'
299 kmi = km.keymap_items.new('object.select_all', 'A', 'PRESS', ctrl=True)
300 kmi.properties.action = 'INVERT'
301 kmi = km.keymap_items.new('object.select_linked', 'L', 'PRESS', shift=True)
302 kmi = km.keymap_items.new('object.select_grouped', 'G', 'PRESS', shift=True)
303 kmi = km.keymap_items.new('object.select_mirror', 'M', 'PRESS', shift=True, ctrl=True)
304 kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
305 kmi.properties.direction = 'PARENT'
306 kmi.properties.extend = False
307 kmi = km.keymap_items.new('object.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
308 kmi.properties.direction = 'PARENT'
309 kmi.properties.extend = True
310 kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
311 kmi.properties.direction = 'CHILD'
312 kmi.properties.extend = False
313 kmi = km.keymap_items.new('object.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
314 kmi.properties.direction = 'CHILD'
315 kmi.properties.extend = True
316 kmi = km.keymap_items.new('object.parent_set', 'P', 'PRESS', ctrl=True)
317 kmi = km.keymap_items.new('object.parent_no_inverse_set', 'P', 'PRESS', shift=True, ctrl=True)
318 kmi = km.keymap_items.new('object.parent_clear', 'P', 'PRESS', alt=True)
319 kmi = km.keymap_items.new('object.track_set', 'T', 'PRESS', ctrl=True)
320 kmi = km.keymap_items.new('object.track_clear', 'T', 'PRESS', alt=True)
321 kmi = km.keymap_items.new('object.constraint_add_with_targets', 'C', 'PRESS', shift=True, ctrl=True)
322 kmi = km.keymap_items.new('object.constraints_clear', 'C', 'PRESS', ctrl=True, alt=True)
323 kmi = km.keymap_items.new('object.location_clear', 'G', 'PRESS', alt=True)
324 kmi = km.keymap_items.new('object.rotation_clear', 'R', 'PRESS', alt=True)
325 kmi = km.keymap_items.new('object.scale_clear', 'S', 'PRESS', alt=True)
326 kmi = km.keymap_items.new('object.origin_clear', 'O', 'PRESS', alt=True)
327 kmi = km.keymap_items.new('object.hide_view_clear', 'H', 'PRESS', alt=True)
328 kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS')
329 kmi.properties.unselected = False
330 kmi = km.keymap_items.new('object.hide_view_set', 'H', 'PRESS', shift=True)
331 kmi.properties.unselected = True
332 kmi = km.keymap_items.new('object.hide_render_clear', 'H', 'PRESS', ctrl=True, alt=True)
333 kmi = km.keymap_items.new('object.hide_render_set', 'H', 'PRESS', ctrl=True)
334 kmi = km.keymap_items.new('object.move_to_layer', 'M', 'PRESS')
335 kmi = km.keymap_items.new('object.delete', 'X', 'PRESS')
336 kmi.properties.use_global = False
337 kmi = km.keymap_items.new('object.delete', 'X', 'PRESS', shift=True)
338 kmi.properties.use_global = False
339 kmi = km.keymap_items.new('object.delete', 'DEL', 'PRESS')
340 kmi = km.keymap_items.new('object.delete', 'DEL', 'PRESS', shift=True)
341 kmi.properties.use_global = True
342 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
343 kmi.properties.name = 'INFO_MT_add'
344 kmi = km.keymap_items.new('object.duplicates_make_real', 'A', 'PRESS', shift=True, ctrl=True)
345 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True, ctrl=True)
346 kmi.properties.name = 'VIEW3D_MT_object_apply'
347 kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
348 kmi.properties.name = 'VIEW3D_MT_make_single_user'
349 kmi = km.keymap_items.new('wm.call_menu', 'L', 'PRESS', ctrl=True)
350 kmi.properties.name = 'VIEW3D_MT_make_links'
351 kmi = km.keymap_items.new('object.duplicate_move', 'D', 'PRESS', shift=True)
352 kmi = km.keymap_items.new('object.duplicate_move_linked', 'D', 'PRESS', alt=True)
353 kmi = km.keymap_items.new('object.join', 'J', 'PRESS', ctrl=True)
354 kmi = km.keymap_items.new('object.convert', 'C', 'PRESS', ctrl=True, alt=True)
355 kmi = km.keymap_items.new('object.proxy_make', 'P', 'PRESS', ctrl=True, alt=True)
356 kmi = km.keymap_items.new('object.make_local', 'L', 'PRESS', alt=True)
357 kmi = km.keymap_items.new('anim.keyframe_insert_menu', 'I', 'PRESS')
358 kmi = km.keymap_items.new('anim.keyframe_delete_v3d', 'I', 'PRESS', alt=True)
359 kmi = km.keymap_items.new('anim.keying_set_active_set', 'I', 'PRESS', shift=True, ctrl=True, alt=True)
360 kmi = km.keymap_items.new('group.create', 'G', 'PRESS', ctrl=True)
361 kmi = km.keymap_items.new('group.objects_remove', 'G', 'PRESS', ctrl=True, alt=True)
362 kmi = km.keymap_items.new('group.objects_remove_all', 'G', 'PRESS', shift=True, ctrl=True, alt=True)
363 kmi = km.keymap_items.new('group.objects_add_active', 'G', 'PRESS', shift=True, ctrl=True)
364 kmi = km.keymap_items.new('group.objects_remove_active', 'G', 'PRESS', shift=True, alt=True)
365 kmi = km.keymap_items.new('rigidbody.objects_add', 'R', 'PRESS', ctrl=True)
366 kmi.properties.type = 'ACTIVE'
367 kmi = km.keymap_items.new('rigidbody.objects_add', 'R', 'PRESS', shift=True, ctrl=True)
368 kmi.properties.type = 'PASSIVE'
369 kmi = km.keymap_items.new('rigidbody.objects_remove', 'R', 'PRESS', ctrl=True, alt=True)
370 kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
371 kmi.properties.name = 'VIEW3D_MT_object_specials'
372 kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS', ctrl=True)
373 kmi.properties.level = 0
374 kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS', ctrl=True)
375 kmi.properties.level = 1
376 kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS', ctrl=True)
377 kmi.properties.level = 2
378 kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS', ctrl=True)
379 kmi.properties.level = 3
380 kmi = km.keymap_items.new('object.subdivision_set', 'FOUR', 'PRESS', ctrl=True)
381 kmi.properties.level = 4
382 kmi = km.keymap_items.new('object.subdivision_set', 'FIVE', 'PRESS', ctrl=True)
383 kmi.properties.level = 5
384
385 # Map Particle
386 km = kc.keymaps.new('Particle', space_type='EMPTY', region_type='WINDOW', modal=False)
387
388 kmi = km.keymap_items.new('particle.select_all', 'A', 'PRESS', ctrl=True)
389 kmi.properties.action = 'TOGGLE'
390 kmi = km.keymap_items.new('particle.select_all', 'I', 'PRESS', ctrl=True)
391 kmi.properties.action = 'INVERT'
392 kmi = km.keymap_items.new('particle.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
393 kmi = km.keymap_items.new('particle.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
394 kmi = km.keymap_items.new('particle.select_linked', 'L', 'PRESS')
395 kmi.properties.deselect = False
396 kmi = km.keymap_items.new('particle.select_linked', 'L', 'PRESS', shift=True)
397 kmi.properties.deselect = True
398 kmi = km.keymap_items.new('particle.delete', 'X', 'PRESS')
399 kmi = km.keymap_items.new('particle.delete', 'DEL', 'PRESS')
400 kmi = km.keymap_items.new('particle.reveal', 'H', 'PRESS', alt=True)
401 kmi = km.keymap_items.new('particle.hide', 'H', 'PRESS')
402 kmi.properties.unselected = False
403 kmi = km.keymap_items.new('particle.hide', 'H', 'PRESS', shift=True)
404 kmi.properties.unselected = True
405 kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', any=True)
406 kmi.properties.release_confirm = True
407 kmi = km.keymap_items.new('particle.brush_edit', 'LEFTMOUSE', 'PRESS')
408 kmi = km.keymap_items.new('particle.brush_edit', 'LEFTMOUSE', 'PRESS', shift=True)
409 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
410 kmi.properties.data_path_primary = 'tool_settings.particle_edit.brush.size'
411 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', shift=True)
412 kmi.properties.data_path_primary = 'tool_settings.particle_edit.brush.strength'
413 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS')
414 kmi.properties.name = 'VIEW3D_MT_particle_specials'
415 kmi = km.keymap_items.new('particle.weight_set', 'K', 'PRESS', shift=True)
416 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
417 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
418 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
419 kmi.properties.data_path = 'tool_settings.proportional_edit'
420 kmi.properties.value_1 = 'DISABLED'
421 kmi.properties.value_2 = 'ENABLED'
422
423 # Map 3D View
424 km = kc.keymaps.new('3D View', space_type='VIEW_3D', region_type='WINDOW', modal=False)
425
426 kmi = km.keymap_items.new('view3d.manipulator', 'LEFTMOUSE', 'PRESS', any=True)
427 kmi.properties.release_confirm = True
428 kmi = km.keymap_items.new('view3d.cursor3d', 'ACTIONMOUSE', 'PRESS')
429 kmi = km.keymap_items.new('view3d.rotate', 'MIDDLEMOUSE', 'PRESS', alt=True)
430 kmi = km.keymap_items.new('view3d.move', 'MIDDLEMOUSE', 'PRESS')
431 kmi = km.keymap_items.new('view3d.zoom', 'MIDDLEMOUSE', 'PRESS', ctrl=True)
432 kmi = km.keymap_items.new('view3d.dolly', 'MIDDLEMOUSE', 'PRESS', shift=True, ctrl=True)
433 kmi = km.keymap_items.new('view3d.view_selected', 'NUMPAD_PERIOD', 'PRESS', ctrl=True)
434 kmi.properties.use_all_regions = True
435 kmi = km.keymap_items.new('view3d.view_selected', 'Z', 'PRESS')
436 kmi.properties.use_all_regions = False
437 kmi = km.keymap_items.new('view3d.view_lock_to_active', 'NUMPAD_PERIOD', 'PRESS', shift=True)
438 kmi = km.keymap_items.new('view3d.view_lock_clear', 'NUMPAD_PERIOD', 'PRESS', alt=True)
439 kmi = km.keymap_items.new('view3d.fly', 'F', 'PRESS', shift=True)
440 kmi = km.keymap_items.new('view3d.smoothview', 'TIMER1', 'ANY', any=True)
441 kmi = km.keymap_items.new('view3d.rotate', 'TRACKPADPAN', 'ANY')
442 kmi = km.keymap_items.new('view3d.rotate', 'MOUSEROTATE', 'ANY')
443 kmi = km.keymap_items.new('view3d.move', 'TRACKPADPAN', 'ANY', shift=True)
444 kmi = km.keymap_items.new('view3d.zoom', 'TRACKPADZOOM', 'ANY')
445 kmi = km.keymap_items.new('view3d.zoom', 'TRACKPADPAN', 'ANY', ctrl=True)
446 kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_PLUS', 'PRESS')
447 kmi.properties.delta = 1
448 kmi = km.keymap_items.new('view3d.zoom', 'NUMPAD_MINUS', 'PRESS')
449 kmi.properties.delta = -1
450 kmi = km.keymap_items.new('view3d.zoom', 'EQUAL', 'PRESS', ctrl=True)
451 kmi.properties.delta = 1
452 kmi = km.keymap_items.new('view3d.zoom', 'MINUS', 'PRESS', ctrl=True)
453 kmi.properties.delta = -1
454 kmi = km.keymap_items.new('view3d.zoom', 'WHEELINMOUSE', 'PRESS')
455 kmi.properties.delta = 1
456 kmi = km.keymap_items.new('view3d.zoom', 'WHEELOUTMOUSE', 'PRESS')
457 kmi.properties.delta = -1
458 kmi = km.keymap_items.new('view3d.zoom_camera_1_to_1', 'NUMPAD_ENTER', 'PRESS', shift=True)
459 kmi = km.keymap_items.new('view3d.view_center_camera', 'HOME', 'PRESS')
460 kmi = km.keymap_items.new('view3d.view_center_cursor', 'HOME', 'PRESS', alt=True)
461 kmi = km.keymap_items.new('view3d.view_all', 'HOME', 'PRESS')
462 kmi.properties.center = False
463 kmi = km.keymap_items.new('view3d.view_all', 'HOME', 'PRESS', ctrl=True)
464 kmi.properties.use_all_regions = True
465 kmi.properties.center = False
466 kmi = km.keymap_items.new('view3d.view_all', 'C', 'PRESS', shift=True)
467 kmi.properties.center = True
468 kmi = km.keymap_items.new('view3d.viewnumpad', 'C', 'PRESS')
469 kmi.properties.type = 'CAMERA'
470 kmi = km.keymap_items.new('view3d.viewnumpad', 'F', 'PRESS')
471 kmi.properties.type = 'FRONT'
472 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_2', 'PRESS')
473 kmi.properties.type = 'ORBITDOWN'
474 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS')
475 kmi.properties.type = 'RIGHT'
476 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_4', 'PRESS')
477 kmi.properties.type = 'ORBITLEFT'
478 kmi = km.keymap_items.new('view3d.view_persportho', 'P', 'PRESS')
479 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_6', 'PRESS')
480 kmi.properties.type = 'ORBITRIGHT'
481 kmi = km.keymap_items.new('view3d.viewnumpad', 'T', 'PRESS')
482 kmi.properties.type = 'TOP'
483 kmi = km.keymap_items.new('view3d.view_orbit', 'NUMPAD_8', 'PRESS')
484 kmi.properties.type = 'ORBITUP'
485 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', ctrl=True)
486 kmi.properties.type = 'BACK'
487 kmi = km.keymap_items.new('view3d.viewnumpad', 'L', 'PRESS')
488 kmi.properties.type = 'LEFT'
489 kmi = km.keymap_items.new('view3d.viewnumpad', 'B', 'PRESS')
490 kmi.properties.type = 'BOTTOM'
491 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_2', 'PRESS', ctrl=True)
492 kmi.properties.type = 'PANDOWN'
493 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_4', 'PRESS', ctrl=True)
494 kmi.properties.type = 'PANLEFT'
495 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_6', 'PRESS', ctrl=True)
496 kmi.properties.type = 'PANRIGHT'
497 kmi = km.keymap_items.new('view3d.view_pan', 'NUMPAD_8', 'PRESS', ctrl=True)
498 kmi.properties.type = 'PANUP'
499 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', ctrl=True)
500 kmi.properties.type = 'PANRIGHT'
501 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True)
502 kmi.properties.type = 'PANLEFT'
503 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELUPMOUSE', 'PRESS', shift=True)
504 kmi.properties.type = 'PANUP'
505 kmi = km.keymap_items.new('view3d.view_pan', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
506 kmi.properties.type = 'PANDOWN'
507 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', ctrl=True, alt=True)
508 kmi.properties.type = 'ORBITLEFT'
509 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', ctrl=True, alt=True)
510 kmi.properties.type = 'ORBITRIGHT'
511 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELUPMOUSE', 'PRESS', shift=True, alt=True)
512 kmi.properties.type = 'ORBITUP'
513 kmi = km.keymap_items.new('view3d.view_orbit', 'WHEELDOWNMOUSE', 'PRESS', shift=True, alt=True)
514 kmi.properties.type = 'ORBITDOWN'
515 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True)
516 kmi.properties.type = 'FRONT'
517 kmi.properties.align_active = True
518 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True)
519 kmi.properties.type = 'RIGHT'
520 kmi.properties.align_active = True
521 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True)
522 kmi.properties.type = 'TOP'
523 kmi.properties.align_active = True
524 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_1', 'PRESS', shift=True, ctrl=True)
525 kmi.properties.type = 'BACK'
526 kmi.properties.align_active = True
527 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_3', 'PRESS', shift=True, ctrl=True)
528 kmi.properties.type = 'LEFT'
529 kmi.properties.align_active = True
530 kmi = km.keymap_items.new('view3d.viewnumpad', 'NUMPAD_7', 'PRESS', shift=True, ctrl=True)
531 kmi.properties.type = 'BOTTOM'
532 kmi.properties.align_active = True
533 kmi = km.keymap_items.new('view3d.localview', 'NUMPAD_SLASH', 'PRESS')
534 kmi = km.keymap_items.new('view3d.ndof_orbit_zoom', 'NDOF_MOTION', 'ANY')
535 kmi = km.keymap_items.new('view3d.ndof_orbit', 'NDOF_MOTION', 'ANY', ctrl=True)
536 kmi = km.keymap_items.new('view3d.ndof_pan', 'NDOF_MOTION', 'ANY', shift=True)
537 kmi = km.keymap_items.new('view3d.ndof_all', 'NDOF_MOTION', 'ANY', shift=True, ctrl=True)
538 kmi = km.keymap_items.new('view3d.view_selected', 'NDOF_BUTTON_FIT', 'PRESS')
539 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_FRONT', 'PRESS')
540 kmi.properties.type = 'FRONT'
541 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_BACK', 'PRESS')
542 kmi.properties.type = 'BACK'
543 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_LEFT', 'PRESS')
544 kmi.properties.type = 'LEFT'
545 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_RIGHT', 'PRESS')
546 kmi.properties.type = 'RIGHT'
547 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_TOP', 'PRESS')
548 kmi.properties.type = 'TOP'
549 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_BOTTOM', 'PRESS')
550 kmi.properties.type = 'BOTTOM'
551 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_FRONT', 'PRESS', shift=True)
552 kmi.properties.type = 'FRONT'
553 kmi.properties.align_active = True
554 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_RIGHT', 'PRESS', shift=True)
555 kmi.properties.type = 'RIGHT'
556 kmi.properties.align_active = True
557 kmi = km.keymap_items.new('view3d.viewnumpad', 'NDOF_BUTTON_TOP', 'PRESS', shift=True)
558 kmi.properties.type = 'TOP'
559 kmi.properties.align_active = True
560 kmi = km.keymap_items.new('view3d.layers', 'ACCENT_GRAVE', 'PRESS')
561 kmi.properties.nr = 0
562 kmi = km.keymap_items.new('view3d.layers', 'ONE', 'PRESS', any=True)
563 kmi.properties.nr = 1
564 kmi = km.keymap_items.new('view3d.layers', 'TWO', 'PRESS', any=True)
565 kmi.properties.nr = 2
566 kmi = km.keymap_items.new('view3d.layers', 'THREE', 'PRESS', any=True)
567 kmi.properties.nr = 3
568 kmi = km.keymap_items.new('view3d.layers', 'FOUR', 'PRESS', any=True)
569 kmi.properties.nr = 4
570 kmi = km.keymap_items.new('view3d.layers', 'FIVE', 'PRESS', any=True)
571 kmi.properties.nr = 5
572 kmi = km.keymap_items.new('view3d.layers', 'SIX', 'PRESS', any=True)
573 kmi.properties.nr = 6
574 kmi = km.keymap_items.new('view3d.layers', 'SEVEN', 'PRESS', any=True)
575 kmi.properties.nr = 7
576 kmi = km.keymap_items.new('view3d.layers', 'EIGHT', 'PRESS', any=True)
577 kmi.properties.nr = 8
578 kmi = km.keymap_items.new('view3d.layers', 'NINE', 'PRESS', any=True)
579 kmi.properties.nr = 9
580 kmi = km.keymap_items.new('view3d.layers', 'ZERO', 'PRESS', any=True)
581 kmi.properties.nr = 10
582 kmi = km.keymap_items.new('wm.context_toggle_enum', 'F3', 'PRESS')
583 kmi.properties.data_path = 'space_data.viewport_shade'
584 kmi.properties.value_1 = 'SOLID'
585 kmi.properties.value_2 = 'WIREFRAME'
586 kmi = km.keymap_items.new('wm.context_toggle_enum', 'Z', 'PRESS', alt=True)
587 kmi.properties.data_path = 'space_data.viewport_shade'
588 kmi.properties.value_1 = 'SOLID'
589 kmi.properties.value_2 = 'TEXTURED'
590 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE')
591 kmi.properties.extend = False
592 kmi.properties.deselect = False
593 kmi.properties.toggle = False
594 kmi.properties.center = False
595 kmi.properties.enumerate = False
596 kmi.properties.object = False
597 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', ctrl=True)
598 kmi.properties.extend = False
599 kmi.properties.deselect = False
600 kmi.properties.toggle = True
601 kmi.properties.center = False
602 kmi.properties.enumerate = False
603 kmi.properties.object = False
604 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'PRESS', shift=True)
605 kmi.properties.extend = False
606 kmi.properties.deselect = False
607 kmi.properties.toggle = False
608 kmi.properties.center = True
609 kmi.properties.enumerate = False
610 kmi.properties.object = True
611 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', alt=True)
612 kmi.properties.extend = False
613 kmi.properties.deselect = False
614 kmi.properties.toggle = False
615 kmi.properties.center = False
616 kmi.properties.enumerate = True
617 kmi.properties.object = False
618 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', shift=True, ctrl=True)
619 kmi.properties.extend = True
620 kmi.properties.deselect = False
621 kmi.properties.toggle = True
622 kmi.properties.center = True
623 kmi.properties.enumerate = False
624 kmi.properties.object = False
625 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', ctrl=True, alt=True)
626 kmi.properties.extend = False
627 kmi.properties.deselect = False
628 kmi.properties.toggle = False
629 kmi.properties.center = True
630 kmi.properties.enumerate = True
631 kmi.properties.object = False
632 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', shift=True, alt=True)
633 kmi.properties.extend = False
634 kmi.properties.deselect = False
635 kmi.properties.toggle = True
636 kmi.properties.center = False
637 kmi.properties.enumerate = True
638 kmi.properties.object = False
639 kmi = km.keymap_items.new('view3d.select', 'SELECTMOUSE', 'RELEASE', shift=True, ctrl=True, alt=True)
640 kmi.properties.extend = False
641 kmi.properties.deselect = False
642 kmi.properties.toggle = True
643 kmi.properties.center = True
644 kmi.properties.enumerate = True
645 kmi.properties.object = False
646 kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_L', 'ANY')
647 kmi.properties.extend = False
648 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True)
649 kmi.properties.deselect = False
650 kmi = km.keymap_items.new('view3d.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
651 kmi.properties.deselect = True
652 kmi = km.keymap_items.new('view3d.select_circle', 'C', 'PRESS', alt=True)
653 kmi = km.keymap_items.new('view3d.clip_border', 'B', 'PRESS', alt=True)
654 kmi = km.keymap_items.new('view3d.zoom_border', 'B', 'PRESS', shift=True)
655 kmi = km.keymap_items.new('view3d.render_border', 'B', 'PRESS', shift=True)
656 kmi.properties.camera_only = True
657 kmi = km.keymap_items.new('view3d.render_border', 'B', 'PRESS', ctrl=True)
658 kmi.properties.camera_only = False
659 kmi = km.keymap_items.new('view3d.clear_render_border', 'B', 'PRESS', ctrl=True, alt=True)
660 kmi = km.keymap_items.new('view3d.camera_to_view', 'NUMPAD_0', 'PRESS', ctrl=True, alt=True)
661 kmi = km.keymap_items.new('view3d.object_as_camera', 'NUMPAD_0', 'PRESS', ctrl=True)
662 kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True)
663 kmi.properties.name = 'VIEW3D_MT_snap'
664 kmi = km.keymap_items.new('view3d.copybuffer', 'C', 'PRESS', ctrl=True)
665 kmi = km.keymap_items.new('view3d.pastebuffer', 'V', 'PRESS', ctrl=True)
666 kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS')
667 kmi.properties.data_path = 'space_data.pivot_point'
668 kmi.properties.value = 'BOUNDING_BOX_CENTER'
669 kmi = km.keymap_items.new('wm.context_set_enum', 'COMMA', 'PRESS', ctrl=True)
670 kmi.properties.data_path = 'space_data.pivot_point'
671 kmi.properties.value = 'MEDIAN_POINT'
672 kmi = km.keymap_items.new('wm.context_toggle', 'COMMA', 'PRESS', alt=True)
673 kmi.properties.data_path = 'space_data.use_pivot_point_align'
674 kmi = km.keymap_items.new('wm.context_toggle', 'SPACE', 'PRESS', ctrl=True)
675 kmi.properties.data_path = 'space_data.show_manipulator'
676 kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS')
677 kmi.properties.data_path = 'space_data.pivot_point'
678 kmi.properties.value = 'CURSOR'
679 kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', ctrl=True)
680 kmi.properties.data_path = 'space_data.pivot_point'
681 kmi.properties.value = 'INDIVIDUAL_ORIGINS'
682 kmi = km.keymap_items.new('wm.context_set_enum', 'PERIOD', 'PRESS', alt=True)
683 kmi.properties.data_path = 'space_data.pivot_point'
684 kmi.properties.value = 'ACTIVE_ELEMENT'
685 kmi = km.keymap_items.new('transform.translate', 'W', 'PRESS', shift=True)
686 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
687 kmi = km.keymap_items.new('transform.rotate', 'E', 'PRESS', shift=True)
688 kmi = km.keymap_items.new('transform.resize', 'R', 'PRESS', shift=True)
689 kmi = km.keymap_items.new('transform.warp', 'Q', 'PRESS', shift=True)
690 kmi = km.keymap_items.new('transform.tosphere', 'S', 'PRESS', shift=True, alt=True)
691 kmi = km.keymap_items.new('transform.shear', 'S', 'PRESS', shift=True, ctrl=True, alt=True)
692 kmi = km.keymap_items.new('transform.select_orientation', 'SPACE', 'PRESS', alt=True)
693 kmi = km.keymap_items.new('transform.create_orientation', 'SPACE', 'PRESS', ctrl=True, alt=True)
694 kmi.properties.use = True
695 kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
696 kmi = km.keymap_items.new('wm.context_toggle', 'TAB', 'PRESS', shift=True)
697 kmi.properties.data_path = 'tool_settings.use_snap'
698 kmi = km.keymap_items.new('wm.context_menu_enum', 'TAB', 'PRESS', shift=True, ctrl=True)
699 kmi.properties.data_path = 'tool_settings.snap_element'
700 kmi = km.keymap_items.new('transform.translate', 'T', 'PRESS', shift=True)
701 kmi.properties.texture_space = True
702 kmi = km.keymap_items.new('transform.resize', 'T', 'PRESS', shift=True, alt=True)
703 kmi.properties.texture_space = True
704 kmi = km.keymap_items.new('transform.skin_resize', 'A', 'PRESS', shift=True, ctrl=True)
705 kmi = km.keymap_items.new('view3d.enable_manipulator', 'W', 'PRESS')
706 kmi.properties.translate = True
707 kmi = km.keymap_items.new('view3d.enable_manipulator', 'E', 'PRESS')
708 kmi.properties.rotate = True
709 kmi = km.keymap_items.new('view3d.enable_manipulator', 'R', 'PRESS')
710 kmi.properties.scale = True
711 kmi = km.keymap_items.new('wm.context_toggle', 'S', 'PRESS')
712 kmi.properties.data_path = 'tool_settings.use_snap'
713 kmi = km.keymap_items.new('wm.context_toggle_enum', 'A', 'PRESS')
714 kmi.properties.data_path = 'tool_settings.snap_element'
715 kmi.properties.value_1 = 'VERTEX'
716 kmi.properties.value_2 = 'INCREMENT'
717 kmi = km.keymap_items.new('view3d.select_border', 'EVT_TWEAK_L', 'ANY', ctrl=True)
718 kmi = km.keymap_items.new('wm.context_toggle', 'G', 'PRESS')
719 kmi.properties.data_path = 'space_data.show_floor'
720
721 # Map Animation Channels
722 km = kc.keymaps.new('Animation Channels', space_type='EMPTY', region_type='WINDOW', modal=False)
723
724 kmi = km.keymap_items.new('anim.channels_click', 'LEFTMOUSE', 'PRESS')
725 kmi.properties.extend = False
726 kmi = km.keymap_items.new('anim.channels_click', 'LEFTMOUSE', 'PRESS', shift=True)
727 kmi.properties.extend = True
728 kmi = km.keymap_items.new('anim.channels_click', 'LEFTMOUSE', 'PRESS', shift=True, ctrl=True)
729 kmi.properties.children_only = True
730 kmi = km.keymap_items.new('anim.channels_rename', 'LEFTMOUSE', 'PRESS', ctrl=True)
731 kmi = km.keymap_items.new('anim.channels_select_all_toggle', 'A', 'PRESS', ctrl=True)
732 kmi = km.keymap_items.new('anim.channels_select_all_toggle', 'I', 'PRESS', ctrl=True)
733 kmi.properties.invert = True
734 kmi = km.keymap_items.new('anim.channels_select_border', 'B', 'PRESS')
735 kmi = km.keymap_items.new('anim.channels_select_border', 'EVT_TWEAK_L', 'ANY')
736 kmi = km.keymap_items.new('anim.channels_delete', 'X', 'PRESS')
737 kmi = km.keymap_items.new('anim.channels_delete', 'DEL', 'PRESS')
738 kmi = km.keymap_items.new('anim.channels_setting_toggle', 'W', 'PRESS', shift=True)
739 kmi = km.keymap_items.new('anim.channels_setting_enable', 'W', 'PRESS', shift=True, ctrl=True)
740 kmi = km.keymap_items.new('anim.channels_setting_disable', 'W', 'PRESS', alt=True)
741 kmi = km.keymap_items.new('anim.channels_editable_toggle', 'TAB', 'PRESS')
742 kmi = km.keymap_items.new('anim.channels_expand', 'NUMPAD_PLUS', 'PRESS')
743 kmi = km.keymap_items.new('anim.channels_collapse', 'NUMPAD_MINUS', 'PRESS')
744 kmi = km.keymap_items.new('anim.channels_expand', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
745 kmi.properties.all = False
746 kmi = km.keymap_items.new('anim.channels_collapse', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
747 kmi.properties.all = False
748 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_UP', 'PRESS')
749 kmi.properties.direction = 'UP'
750 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_DOWN', 'PRESS')
751 kmi.properties.direction = 'DOWN'
752 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_UP', 'PRESS', shift=True)
753 kmi.properties.direction = 'TOP'
754 kmi = km.keymap_items.new('anim.channels_move', 'PAGE_DOWN', 'PRESS', shift=True)
755 kmi.properties.direction = 'BOTTOM'
756 kmi = km.keymap_items.new('anim.channels_group', 'G', 'PRESS', ctrl=True)
757 kmi = km.keymap_items.new('anim.channels_ungroup', 'G', 'PRESS', alt=True)
758 kmi = km.keymap_items.new('anim.channels_visibility_set', 'V', 'PRESS')
759 kmi = km.keymap_items.new('anim.channels_visibility_toggle', 'V', 'PRESS', shift=True)
760
761 # Map UV Editor
762 km = kc.keymaps.new('UV Editor', space_type='EMPTY', region_type='WINDOW', modal=False)
763
764 kmi = km.keymap_items.new('wm.context_toggle', 'Q', 'PRESS')
765 kmi.properties.data_path = 'tool_settings.use_uv_sculpt'
766 kmi = km.keymap_items.new('uv.mark_seam', 'E', 'PRESS', ctrl=True)
767 kmi = km.keymap_items.new('uv.select', 'SELECTMOUSE', 'PRESS')
768 kmi.properties.extend = False
769 kmi = km.keymap_items.new('uv.select', 'SELECTMOUSE', 'PRESS', shift=True)
770 kmi.properties.extend = True
771 kmi = km.keymap_items.new('uv.select_loop', 'SELECTMOUSE', 'PRESS', alt=True)
772 kmi.properties.extend = False
773 kmi = km.keymap_items.new('uv.select_loop', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
774 kmi.properties.extend = True
775 kmi = km.keymap_items.new('uv.select_split', 'Y', 'PRESS')
776 kmi = km.keymap_items.new('uv.select_border', 'B', 'PRESS')
777 kmi.properties.pinned = False
778 kmi = km.keymap_items.new('uv.select_border', 'B', 'PRESS', shift=True)
779 kmi.properties.pinned = True
780 kmi = km.keymap_items.new('uv.circle_select', 'C', 'PRESS')
781 kmi = km.keymap_items.new('uv.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True)
782 kmi.properties.deselect = False
783 kmi = km.keymap_items.new('uv.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True)
784 kmi.properties.deselect = True
785 kmi = km.keymap_items.new('uv.select_linked', 'L', 'PRESS', ctrl=True)
786 kmi.properties.extend = False
787 kmi = km.keymap_items.new('uv.select_linked_pick', 'L', 'PRESS')
788 kmi.properties.extend = False
789 kmi = km.keymap_items.new('uv.select_linked', 'L', 'PRESS', shift=True, ctrl=True)
790 kmi.properties.extend = True
791 kmi = km.keymap_items.new('uv.select_linked_pick', 'L', 'PRESS', shift=True)
792 kmi.properties.extend = True
793 kmi = km.keymap_items.new('uv.select_all', 'A', 'PRESS', ctrl=True)
794 kmi.properties.action = 'TOGGLE'
795 kmi = km.keymap_items.new('uv.select_all', 'I', 'PRESS', ctrl=True)
796 kmi.properties.action = 'INVERT'
797 kmi = km.keymap_items.new('uv.select_pinned', 'P', 'PRESS', shift=True)
798 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS')
799 kmi.properties.name = 'IMAGE_MT_uvs_weldalign'
800 kmi = km.keymap_items.new('uv.stitch', 'V', 'PRESS')
801 kmi = km.keymap_items.new('uv.pin', 'P', 'PRESS')
802 kmi.properties.clear = False
803 kmi = km.keymap_items.new('uv.pin', 'P', 'PRESS', alt=True)
804 kmi.properties.clear = True
805 kmi = km.keymap_items.new('uv.unwrap', 'E', 'PRESS')
806 kmi = km.keymap_items.new('uv.minimize_stretch', 'V', 'PRESS', ctrl=True)
807 kmi = km.keymap_items.new('uv.pack_islands', 'P', 'PRESS', ctrl=True)
808 kmi = km.keymap_items.new('uv.average_islands_scale', 'A', 'PRESS', shift=True, ctrl=True)
809 kmi = km.keymap_items.new('uv.hide', 'H', 'PRESS')
810 kmi.properties.unselected = False
811 kmi = km.keymap_items.new('uv.hide', 'H', 'PRESS', shift=True)
812 kmi.properties.unselected = True
813 kmi = km.keymap_items.new('uv.reveal', 'H', 'PRESS', alt=True)
814 kmi = km.keymap_items.new('uv.cursor_set', 'ACTIONMOUSE', 'PRESS')
815 kmi = km.keymap_items.new('uv.tile_set', 'ACTIONMOUSE', 'PRESS', shift=True)
816 kmi = km.keymap_items.new('wm.call_menu', 'S', 'PRESS', shift=True)
817 kmi.properties.name = 'IMAGE_MT_uvs_snap'
818 kmi = km.keymap_items.new('wm.call_menu', 'TAB', 'PRESS', ctrl=True)
819 kmi.properties.name = 'IMAGE_MT_uvs_select_mode'
820 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
821 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
822 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
823 kmi.properties.data_path = 'tool_settings.proportional_edit'
824 kmi.properties.value_1 = 'DISABLED'
825 kmi.properties.value_2 = 'ENABLED'
826 kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS')
827 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
828 kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
829 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
830 kmi = km.keymap_items.new('transform.shear', 'S', 'PRESS', shift=True, ctrl=True, alt=True)
831 kmi = km.keymap_items.new('transform.mirror', 'M', 'PRESS', ctrl=True)
832 kmi = km.keymap_items.new('wm.context_toggle', 'TAB', 'PRESS', shift=True)
833 kmi.properties.data_path = 'tool_settings.use_snap'
834 kmi = km.keymap_items.new('wm.context_menu_enum', 'TAB', 'PRESS', shift=True, ctrl=True)
835 kmi.properties.data_path = 'tool_settings.snap_uv_element'
836
837 # Map Mask Editing
838 km = kc.keymaps.new('Mask Editing', space_type='EMPTY', region_type='WINDOW', modal=False)
839
840 kmi = km.keymap_items.new('mask.new', 'N', 'PRESS', alt=True)
841 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
842 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
843 kmi = km.keymap_items.new('wm.context_toggle', 'O', 'PRESS')
844 kmi.properties.data_path = 'tool_settings.use_proportional_edit_mask'
845 kmi = km.keymap_items.new('mask.add_vertex_slide', 'ACTIONMOUSE', 'PRESS', ctrl=True)
846 kmi = km.keymap_items.new('mask.add_feather_vertex_slide', 'ACTIONMOUSE', 'PRESS', shift=True)
847 kmi = km.keymap_items.new('mask.delete', 'X', 'PRESS')
848 kmi = km.keymap_items.new('mask.delete', 'DEL', 'PRESS')
849 kmi = km.keymap_items.new('mask.select', 'SELECTMOUSE', 'PRESS')
850 kmi.properties.extend = False
851 kmi.properties.deselect = False
852 kmi.properties.toggle = False
853 kmi = km.keymap_items.new('mask.select', 'SELECTMOUSE', 'PRESS', shift=True)
854 kmi.properties.extend = False
855 kmi.properties.deselect = False
856 kmi.properties.toggle = True
857 kmi = km.keymap_items.new('mask.select_all', 'A', 'PRESS', ctrl=True)
858 kmi.properties.action = 'TOGGLE'
859 kmi = km.keymap_items.new('mask.select_all', 'I', 'PRESS', ctrl=True)
860 kmi.properties.action = 'INVERT'
861 kmi = km.keymap_items.new('mask.select_linked', 'L', 'PRESS', ctrl=True)
862 kmi = km.keymap_items.new('mask.select_linked_pick', 'L', 'PRESS')
863 kmi.properties.deselect = False
864 kmi = km.keymap_items.new('mask.select_linked_pick', 'L', 'PRESS', shift=True)
865 kmi.properties.deselect = True
866 kmi = km.keymap_items.new('mask.select_border', 'B', 'PRESS')
867 kmi = km.keymap_items.new('mask.select_circle', 'C', 'PRESS')
868 kmi = km.keymap_items.new('mask.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True, alt=True)
869 kmi.properties.deselect = False
870 kmi = km.keymap_items.new('mask.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True, alt=True)
871 kmi.properties.deselect = True
872 kmi = km.keymap_items.new('mask.hide_view_clear', 'H', 'PRESS', alt=True)
873 kmi = km.keymap_items.new('mask.hide_view_set', 'H', 'PRESS')
874 kmi.properties.unselected = False
875 kmi = km.keymap_items.new('mask.hide_view_set', 'H', 'PRESS', shift=True)
876 kmi.properties.unselected = True
877 kmi = km.keymap_items.new('clip.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
878 kmi.properties.extend = False
879 kmi = km.keymap_items.new('mask.cyclic_toggle', 'C', 'PRESS', alt=True)
880 kmi = km.keymap_items.new('mask.slide_point', 'ACTIONMOUSE', 'PRESS')
881 kmi = km.keymap_items.new('mask.handle_type_set', 'V', 'PRESS')
882 kmi = km.keymap_items.new('mask.normals_make_consistent', 'N', 'PRESS', ctrl=True)
883 kmi = km.keymap_items.new('mask.parent_set', 'P', 'PRESS', ctrl=True)
884 kmi = km.keymap_items.new('mask.parent_clear', 'P', 'PRESS', alt=True)
885 kmi = km.keymap_items.new('mask.shape_key_insert', 'I', 'PRESS')
886 kmi = km.keymap_items.new('mask.shape_key_clear', 'I', 'PRESS', alt=True)
887 kmi = km.keymap_items.new('uv.cursor_set', 'ACTIONMOUSE', 'PRESS')
888 kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS')
889 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
890 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
891 kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
892 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', alt=True)
893 kmi.properties.mode = 'MASK_SHRINKFATTEN'
894
895 # Map Graph Editor
896 km = kc.keymaps.new('Graph Editor', space_type='GRAPH_EDITOR', region_type='WINDOW', modal=False)
897
898 kmi = km.keymap_items.new('wm.context_toggle', 'H', 'PRESS', ctrl=True)
899 kmi.properties.data_path = 'space_data.show_handles'
900 kmi = km.keymap_items.new('graph.cursor_set', 'ACTIONMOUSE', 'PRESS')
901 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS')
902 kmi.properties.extend = False
903 kmi.properties.column = False
904 kmi.properties.curves = False
905 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS', alt=True)
906 kmi.properties.extend = False
907 kmi.properties.column = True
908 kmi.properties.curves = False
909 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS', shift=True)
910 kmi.properties.extend = True
911 kmi.properties.column = False
912 kmi.properties.curves = False
913 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
914 kmi.properties.extend = True
915 kmi.properties.column = True
916 kmi.properties.curves = False
917 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
918 kmi.properties.extend = False
919 kmi.properties.column = False
920 kmi.properties.curves = True
921 kmi = km.keymap_items.new('graph.clickselect', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
922 kmi.properties.extend = True
923 kmi.properties.column = False
924 kmi.properties.curves = True
925 kmi = km.keymap_items.new('graph.select_leftright', 'SELECTMOUSE', 'PRESS', ctrl=True)
926 kmi.properties.mode = 'CHECK'
927 kmi.properties.extend = False
928 kmi = km.keymap_items.new('graph.select_leftright', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
929 kmi.properties.mode = 'CHECK'
930 kmi.properties.extend = True
931 kmi = km.keymap_items.new('graph.select_leftright', 'LEFT_BRACKET', 'PRESS')
932 kmi.properties.mode = 'LEFT'
933 kmi.properties.extend = False
934 kmi = km.keymap_items.new('graph.select_leftright', 'RIGHT_BRACKET', 'PRESS')
935 kmi.properties.mode = 'RIGHT'
936 kmi.properties.extend = False
937 kmi = km.keymap_items.new('graph.select_all_toggle', 'A', 'PRESS', ctrl=True)
938 kmi.properties.invert = False
939 kmi = km.keymap_items.new('graph.select_all_toggle', 'I', 'PRESS', ctrl=True)
940 kmi.properties.invert = True
941 kmi = km.keymap_items.new('graph.select_border', 'B', 'PRESS')
942 kmi.properties.axis_range = False
943 kmi.properties.include_handles = False
944 kmi = km.keymap_items.new('graph.select_border', 'B', 'PRESS', alt=True)
945 kmi.properties.axis_range = True
946 kmi.properties.include_handles = False
947 kmi = km.keymap_items.new('graph.select_border', 'B', 'PRESS', ctrl=True)
948 kmi.properties.axis_range = False
949 kmi.properties.include_handles = True
950 kmi = km.keymap_items.new('graph.select_border', 'B', 'PRESS', ctrl=True, alt=True)
951 kmi.properties.axis_range = True
952 kmi.properties.include_handles = True
953 kmi = km.keymap_items.new('graph.select_column', 'K', 'PRESS')
954 kmi.properties.mode = 'KEYS'
955 kmi = km.keymap_items.new('graph.select_column', 'K', 'PRESS', ctrl=True)
956 kmi.properties.mode = 'CFRA'
957 kmi = km.keymap_items.new('graph.select_column', 'K', 'PRESS', shift=True)
958 kmi.properties.mode = 'MARKERS_COLUMN'
959 kmi = km.keymap_items.new('graph.select_column', 'K', 'PRESS', alt=True)
960 kmi.properties.mode = 'MARKERS_BETWEEN'
961 kmi = km.keymap_items.new('graph.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
962 kmi = km.keymap_items.new('graph.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
963 kmi = km.keymap_items.new('graph.select_linked', 'L', 'PRESS')
964 kmi = km.keymap_items.new('graph.frame_jump', 'G', 'PRESS', ctrl=True)
965 kmi = km.keymap_items.new('graph.snap', 'S', 'PRESS', shift=True)
966 kmi = km.keymap_items.new('graph.mirror', 'M', 'PRESS', shift=True)
967 kmi = km.keymap_items.new('graph.handle_type', 'V', 'PRESS')
968 kmi = km.keymap_items.new('graph.interpolation_type', 'T', 'PRESS')
969 kmi = km.keymap_items.new('graph.clean', 'O', 'PRESS')
970 kmi = km.keymap_items.new('graph.smooth', 'O', 'PRESS', alt=True)
971 kmi = km.keymap_items.new('graph.sample', 'O', 'PRESS', shift=True)
972 kmi = km.keymap_items.new('graph.bake', 'C', 'PRESS', alt=True)
973 kmi = km.keymap_items.new('graph.delete', 'X', 'PRESS')
974 kmi = km.keymap_items.new('graph.delete', 'DEL', 'PRESS')
975 kmi = km.keymap_items.new('graph.duplicate_move', 'D', 'PRESS', shift=True)
976 kmi = km.keymap_items.new('graph.keyframe_insert', 'I', 'PRESS')
977 kmi = km.keymap_items.new('graph.click_insert', 'ACTIONMOUSE', 'CLICK', ctrl=True)
978 kmi = km.keymap_items.new('graph.copy', 'C', 'PRESS', ctrl=True)
979 kmi = km.keymap_items.new('graph.paste', 'V', 'PRESS', ctrl=True)
980 kmi = km.keymap_items.new('graph.previewrange_set', 'P', 'PRESS', ctrl=True, alt=True)
981 kmi = km.keymap_items.new('graph.view_all', 'HOME', 'PRESS')
982 kmi = km.keymap_items.new('graph.view_selected', 'NUMPAD_PERIOD', 'PRESS')
983 kmi = km.keymap_items.new('graph.fmodifier_add', 'M', 'PRESS', shift=True, ctrl=True)
984 kmi.properties.only_active = False
985 kmi = km.keymap_items.new('anim.channels_editable_toggle', 'TAB', 'PRESS')
986 kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS')
987 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
988 kmi = km.keymap_items.new('transform.transform', 'E', 'PRESS')
989 kmi.properties.mode = 'TIME_EXTEND'
990 kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
991 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
992 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
993 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
994
995 # Map Node Editor
996 km = kc.keymaps.new('Node Editor', space_type='NODE_EDITOR', region_type='WINDOW', modal=False)
997
998 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS')
999 kmi.properties.extend = False
1000 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS')
1001 kmi.properties.extend = False
1002 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS', ctrl=True)
1003 kmi.properties.extend = False
1004 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
1005 kmi.properties.extend = False
1006 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS', alt=True)
1007 kmi.properties.extend = False
1008 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', alt=True)
1009 kmi.properties.extend = False
1010 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS', ctrl=True, alt=True)
1011 kmi.properties.extend = False
1012 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
1013 kmi.properties.extend = False
1014 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS', shift=True)
1015 kmi.properties.extend = True
1016 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', shift=True)
1017 kmi.properties.extend = True
1018 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS', shift=True, ctrl=True)
1019 kmi.properties.extend = True
1020 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
1021 kmi.properties.extend = True
1022 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS', shift=True, alt=True)
1023 kmi.properties.extend = True
1024 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
1025 kmi.properties.extend = True
1026 kmi = km.keymap_items.new('node.select', 'ACTIONMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
1027 kmi.properties.extend = True
1028 kmi = km.keymap_items.new('node.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
1029 kmi.properties.extend = True
1030 kmi = km.keymap_items.new('node.select_border', 'EVT_TWEAK_S', 'ANY')
1031 kmi.properties.tweak = True
1032 kmi = km.keymap_items.new('node.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True, alt=True)
1033 kmi.properties.deselect = False
1034 kmi = km.keymap_items.new('node.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True, alt=True)
1035 kmi.properties.deselect = True
1036 kmi = km.keymap_items.new('node.link', 'LEFTMOUSE', 'PRESS')
1037 kmi.properties.detach = False
1038 kmi = km.keymap_items.new('node.link', 'LEFTMOUSE', 'PRESS', ctrl=True)
1039 kmi.properties.detach = True
1040 kmi = km.keymap_items.new('node.resize', 'LEFTMOUSE', 'PRESS')
1041 kmi = km.keymap_items.new('node.add_reroute', 'LEFTMOUSE', 'PRESS', shift=True)
1042 kmi = km.keymap_items.new('node.links_cut', 'LEFTMOUSE', 'PRESS', ctrl=True)
1043 kmi = km.keymap_items.new('node.select_link_viewer', 'LEFTMOUSE', 'PRESS', shift=True, ctrl=True)
1044 kmi = km.keymap_items.new('node.backimage_move', 'MIDDLEMOUSE', 'PRESS', alt=True)
1045 kmi = km.keymap_items.new('node.backimage_zoom', 'V', 'PRESS')
1046 kmi.properties.factor = 0.833329975605011
1047 kmi = km.keymap_items.new('node.backimage_zoom', 'V', 'PRESS', alt=True)
1048 kmi.properties.factor = 1.2000000476837158
1049 kmi = km.keymap_items.new('node.backimage_sample', 'ACTIONMOUSE', 'PRESS', alt=True)
1050 kmi = km.keymap_items.new('node.link_make', 'F', 'PRESS')
1051 kmi.properties.replace = False
1052 kmi = km.keymap_items.new('node.link_make', 'F', 'PRESS', shift=True)
1053 kmi.properties.replace = True
1054 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
1055 kmi.properties.name = 'NODE_MT_add'
1056 kmi = km.keymap_items.new('node.duplicate_move', 'D', 'PRESS', shift=True)
1057 kmi = km.keymap_items.new('node.duplicate_move_keep_inputs', 'D', 'PRESS', shift=True, ctrl=True)
1058 kmi = km.keymap_items.new('node.parent_set', 'P', 'PRESS', ctrl=True)
1059 kmi = km.keymap_items.new('node.parent_clear', 'P', 'PRESS', alt=True)
1060 kmi = km.keymap_items.new('node.join', 'J', 'PRESS', ctrl=True)
1061 kmi = km.keymap_items.new('node.hide_toggle', 'H', 'PRESS')
1062 kmi = km.keymap_items.new('node.mute_toggle', 'M', 'PRESS')
1063 kmi = km.keymap_items.new('node.preview_toggle', 'H', 'PRESS', shift=True)
1064 kmi = km.keymap_items.new('node.hide_socket_toggle', 'H', 'PRESS', ctrl=True)
1065 kmi = km.keymap_items.new('node.show_cyclic_dependencies', 'C', 'PRESS')
1066 kmi = km.keymap_items.new('node.view_all', 'HOME', 'PRESS')
1067 kmi = km.keymap_items.new('node.view_selected', 'NUMPAD_PERIOD', 'PRESS')
1068 kmi = km.keymap_items.new('node.select_border', 'B', 'PRESS')
1069 kmi.properties.tweak = False
1070 kmi = km.keymap_items.new('node.delete', 'X', 'PRESS')
1071 kmi = km.keymap_items.new('node.delete', 'DEL', 'PRESS')
1072 kmi = km.keymap_items.new('node.delete_reconnect', 'X', 'PRESS', ctrl=True)
1073 kmi = km.keymap_items.new('node.select_all', 'A', 'PRESS', ctrl=True)
1074 kmi.properties.action = 'TOGGLE'
1075 kmi = km.keymap_items.new('node.select_all', 'I', 'PRESS', ctrl=True)
1076 kmi.properties.action = 'INVERT'
1077 kmi = km.keymap_items.new('node.select_linked_to', 'L', 'PRESS', shift=True)
1078 kmi = km.keymap_items.new('node.select_linked_from', 'L', 'PRESS')
1079 kmi = km.keymap_items.new('node.select_same_type', 'G', 'PRESS', shift=True)
1080 kmi = km.keymap_items.new('node.select_same_type_step', 'RIGHT_BRACKET', 'PRESS', shift=True)
1081 kmi.properties.prev = False
1082 kmi = km.keymap_items.new('node.select_same_type_step', 'LEFT_BRACKET', 'PRESS', shift=True)
1083 kmi.properties.prev = True
1084 kmi = km.keymap_items.new('node.find_node', 'F', 'PRESS', ctrl=True)
1085 kmi = km.keymap_items.new('node.group_make', 'G', 'PRESS', ctrl=True)
1086 kmi = km.keymap_items.new('node.group_ungroup', 'G', 'PRESS', alt=True)
1087 kmi = km.keymap_items.new('node.group_separate', 'P', 'PRESS')
1088 kmi = km.keymap_items.new('node.group_edit', 'TAB', 'PRESS')
1089 kmi.properties.exit = False
1090 kmi = km.keymap_items.new('node.group_edit', 'TAB', 'PRESS', shift=True)
1091 kmi.properties.exit = True
1092 kmi = km.keymap_items.new('node.group_make', 'G', 'PRESS', ctrl=True)
1093 kmi = km.keymap_items.new('node.group_ungroup', 'G', 'PRESS', alt=True)
1094 kmi = km.keymap_items.new('node.group_separate', 'P', 'PRESS')
1095 kmi = km.keymap_items.new('node.group_edit', 'TAB', 'PRESS')
1096 kmi.properties.exit = False
1097 kmi = km.keymap_items.new('node.group_edit', 'TAB', 'PRESS', shift=True)
1098 kmi.properties.exit = True
1099 kmi = km.keymap_items.new('node.group_make', 'G', 'PRESS', ctrl=True)
1100 kmi = km.keymap_items.new('node.group_ungroup', 'G', 'PRESS', alt=True)
1101 kmi = km.keymap_items.new('node.group_separate', 'P', 'PRESS')
1102 kmi = km.keymap_items.new('node.group_edit', 'TAB', 'PRESS')
1103 kmi.properties.exit = False
1104 kmi = km.keymap_items.new('node.group_edit', 'TAB', 'PRESS', shift=True)
1105 kmi.properties.exit = True
1106 kmi = km.keymap_items.new('node.read_renderlayers', 'R', 'PRESS', ctrl=True)
1107 kmi = km.keymap_items.new('node.read_fullsamplelayers', 'R', 'PRESS', shift=True)
1108 kmi = km.keymap_items.new('node.render_changed', 'Z', 'PRESS')
1109 kmi = km.keymap_items.new('node.clipboard_copy', 'C', 'PRESS', ctrl=True)
1110 kmi = km.keymap_items.new('node.clipboard_paste', 'V', 'PRESS', ctrl=True)
1111 kmi = km.keymap_items.new('node.viewer_border', 'B', 'PRESS', ctrl=True)
1112 kmi = km.keymap_items.new('node.translate_attach', 'G', 'PRESS')
1113 kmi = km.keymap_items.new('node.translate_attach', 'EVT_TWEAK_A', 'ANY')
1114 kmi = km.keymap_items.new('node.translate_attach', 'EVT_TWEAK_S', 'ANY')
1115 kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
1116 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
1117 kmi = km.keymap_items.new('node.move_detach_links', 'D', 'PRESS', alt=True)
1118 kmi = km.keymap_items.new('node.move_detach_links_release', 'EVT_TWEAK_A', 'ANY', alt=True)
1119 kmi = km.keymap_items.new('node.move_detach_links', 'EVT_TWEAK_S', 'ANY', alt=True)
1120 kmi = km.keymap_items.new('node.detach_translate_attach', 'F', 'PRESS', alt=True)
1121
1122 # Map Info
1123 km = kc.keymaps.new('Info', space_type='INFO', region_type='WINDOW', modal=False)
1124
1125 kmi = km.keymap_items.new('info.select_pick', 'SELECTMOUSE', 'PRESS')
1126 kmi = km.keymap_items.new('info.select_all_toggle', 'A', 'PRESS', ctrl=True)
1127 kmi = km.keymap_items.new('info.select_border', 'B', 'PRESS')
1128 kmi = km.keymap_items.new('info.report_replay', 'R', 'PRESS')
1129 kmi = km.keymap_items.new('info.report_delete', 'X', 'PRESS')
1130 kmi = km.keymap_items.new('info.report_delete', 'DEL', 'PRESS')
1131 kmi = km.keymap_items.new('info.report_copy', 'C', 'PRESS', ctrl=True)
1132
1133 # Map File Browser Main
1134 km = kc.keymaps.new('File Browser Main', space_type='FILE_BROWSER', region_type='WINDOW', modal=False)
1135
1136 kmi = km.keymap_items.new('file.execute', 'LEFTMOUSE', 'DOUBLE_CLICK')
1137 kmi.properties.need_active = True
1138 kmi = km.keymap_items.new('file.select', 'LEFTMOUSE', 'CLICK')
1139 kmi = km.keymap_items.new('file.select', 'LEFTMOUSE', 'CLICK', shift=True)
1140 kmi.properties.extend = True
1141 kmi = km.keymap_items.new('file.select', 'LEFTMOUSE', 'CLICK', alt=True)
1142 kmi.properties.extend = True
1143 kmi.properties.fill = True
1144 kmi = km.keymap_items.new('file.select', 'RIGHTMOUSE', 'CLICK')
1145 kmi.properties.open = False
1146 kmi = km.keymap_items.new('file.select', 'RIGHTMOUSE', 'CLICK', shift=True)
1147 kmi.properties.extend = True
1148 kmi.properties.open = False
1149 kmi = km.keymap_items.new('file.select', 'RIGHTMOUSE', 'CLICK', alt=True)
1150 kmi.properties.extend = True
1151 kmi.properties.fill = True
1152 kmi.properties.open = False
1153 kmi = km.keymap_items.new('file.select_all_toggle', 'A', 'PRESS', ctrl=True)
1154 kmi = km.keymap_items.new('file.refresh', 'NUMPAD_PERIOD', 'PRESS')
1155 kmi = km.keymap_items.new('file.select_border', 'B', 'PRESS')
1156 kmi = km.keymap_items.new('file.select_border', 'EVT_TWEAK_L', 'ANY')
1157 kmi = km.keymap_items.new('file.rename', 'LEFTMOUSE', 'PRESS', ctrl=True)
1158 kmi = km.keymap_items.new('file.highlight', 'MOUSEMOVE', 'ANY', any=True)
1159 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_PLUS', 'PRESS')
1160 kmi.properties.increment = 1
1161 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_PLUS', 'PRESS', shift=True)
1162 kmi.properties.increment = 10
1163 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
1164 kmi.properties.increment = 100
1165 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_MINUS', 'PRESS')
1166 kmi.properties.increment = -1
1167 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_MINUS', 'PRESS', shift=True)
1168 kmi.properties.increment = -10
1169 kmi = km.keymap_items.new('file.filenum', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
1170 kmi.properties.increment = -100
1171
1172 # Map Dopesheet
1173 km = kc.keymaps.new('Dopesheet', space_type='DOPESHEET_EDITOR', region_type='WINDOW', modal=False)
1174
1175 kmi = km.keymap_items.new('action.clickselect', 'SELECTMOUSE', 'PRESS')
1176 kmi.properties.extend = False
1177 kmi.properties.column = False
1178 kmi = km.keymap_items.new('action.clickselect', 'SELECTMOUSE', 'PRESS', alt=True)
1179 kmi.properties.extend = False
1180 kmi.properties.column = True
1181 kmi = km.keymap_items.new('action.clickselect', 'SELECTMOUSE', 'PRESS', shift=True)
1182 kmi.properties.extend = True
1183 kmi.properties.column = False
1184 kmi = km.keymap_items.new('action.clickselect', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
1185 kmi.properties.extend = True
1186 kmi.properties.column = True
1187 kmi = km.keymap_items.new('action.select_leftright', 'SELECTMOUSE', 'PRESS', ctrl=True)
1188 kmi.properties.mode = 'CHECK'
1189 kmi.properties.extend = False
1190 kmi = km.keymap_items.new('action.select_leftright', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
1191 kmi.properties.mode = 'CHECK'
1192 kmi.properties.extend = True
1193 kmi = km.keymap_items.new('action.select_leftright', 'LEFT_BRACKET', 'PRESS')
1194 kmi.properties.mode = 'LEFT'
1195 kmi.properties.extend = False
1196 kmi = km.keymap_items.new('action.select_leftright', 'RIGHT_BRACKET', 'PRESS')
1197 kmi.properties.mode = 'RIGHT'
1198 kmi.properties.extend = False
1199 kmi = km.keymap_items.new('action.select_all_toggle', 'A', 'PRESS', ctrl=True)
1200 kmi.properties.invert = False
1201 kmi = km.keymap_items.new('action.select_all_toggle', 'I', 'PRESS', ctrl=True)
1202 kmi.properties.invert = True
1203 kmi = km.keymap_items.new('action.select_border', 'B', 'PRESS')
1204 kmi.properties.axis_range = False
1205 kmi = km.keymap_items.new('action.select_border', 'B', 'PRESS', alt=True)
1206 kmi.properties.axis_range = True
1207 kmi = km.keymap_items.new('action.select_column', 'K', 'PRESS')
1208 kmi.properties.mode = 'KEYS'
1209 kmi = km.keymap_items.new('action.select_column', 'K', 'PRESS', ctrl=True)
1210 kmi.properties.mode = 'CFRA'
1211 kmi = km.keymap_items.new('action.select_column', 'K', 'PRESS', shift=True)
1212 kmi.properties.mode = 'MARKERS_COLUMN'
1213 kmi = km.keymap_items.new('action.select_column', 'K', 'PRESS', alt=True)
1214 kmi.properties.mode = 'MARKERS_BETWEEN'
1215 kmi = km.keymap_items.new('action.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
1216 kmi = km.keymap_items.new('action.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
1217 kmi = km.keymap_items.new('action.select_linked', 'L', 'PRESS')
1218 kmi = km.keymap_items.new('action.frame_jump', 'G', 'PRESS', ctrl=True)
1219 kmi = km.keymap_items.new('action.snap', 'S', 'PRESS', shift=True)
1220 kmi = km.keymap_items.new('action.mirror', 'M', 'PRESS', shift=True)
1221 kmi = km.keymap_items.new('action.handle_type', 'V', 'PRESS')
1222 kmi = km.keymap_items.new('action.interpolation_type', 'T', 'PRESS')
1223 kmi = km.keymap_items.new('action.extrapolation_type', 'E', 'PRESS', shift=True)
1224 kmi = km.keymap_items.new('action.keyframe_type', 'R', 'PRESS')
1225 kmi = km.keymap_items.new('action.clean', 'O', 'PRESS')
1226 kmi = km.keymap_items.new('action.sample', 'O', 'PRESS', shift=True)
1227 kmi = km.keymap_items.new('action.delete', 'X', 'PRESS')
1228 kmi = km.keymap_items.new('action.delete', 'DEL', 'PRESS')
1229 kmi = km.keymap_items.new('action.duplicate_move', 'D', 'PRESS', shift=True)
1230 kmi = km.keymap_items.new('action.keyframe_insert', 'I', 'PRESS')
1231 kmi = km.keymap_items.new('action.copy', 'C', 'PRESS', ctrl=True)
1232 kmi = km.keymap_items.new('action.paste', 'V', 'PRESS', ctrl=True)
1233 kmi = km.keymap_items.new('action.previewrange_set', 'P', 'PRESS', ctrl=True, alt=True)
1234 kmi = km.keymap_items.new('action.view_all', 'HOME', 'PRESS')
1235 kmi = km.keymap_items.new('action.view_selected', 'NUMPAD_PERIOD', 'PRESS')
1236 kmi = km.keymap_items.new('anim.channels_editable_toggle', 'TAB', 'PRESS')
1237 kmi = km.keymap_items.new('transform.transform', 'G', 'PRESS')
1238 kmi.properties.mode = 'TIME_TRANSLATE'
1239 kmi = km.keymap_items.new('transform.transform', 'EVT_TWEAK_S', 'ANY')
1240 kmi.properties.mode = 'TIME_TRANSLATE'
1241 kmi = km.keymap_items.new('transform.transform', 'E', 'PRESS')
1242 kmi.properties.mode = 'TIME_EXTEND'
1243 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS')
1244 kmi.properties.mode = 'TIME_SCALE'
1245 kmi = km.keymap_items.new('transform.transform', 'T', 'PRESS', shift=True)
1246 kmi.properties.mode = 'TIME_SLIDE'
1247 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
1248 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
1249
1250 # Map NLA Editor
1251 km = kc.keymaps.new('NLA Editor', space_type='NLA_EDITOR', region_type='WINDOW', modal=False)
1252
1253 kmi = km.keymap_items.new('nla.click_select', 'SELECTMOUSE', 'PRESS')
1254 kmi.properties.extend = False
1255 kmi = km.keymap_items.new('nla.click_select', 'SELECTMOUSE', 'PRESS', shift=True)
1256 kmi.properties.extend = True
1257 kmi = km.keymap_items.new('nla.select_leftright', 'SELECTMOUSE', 'PRESS', ctrl=True)
1258 kmi.properties.mode = 'CHECK'
1259 kmi.properties.extend = False
1260 kmi = km.keymap_items.new('nla.select_leftright', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
1261 kmi.properties.mode = 'CHECK'
1262 kmi.properties.extend = True
1263 kmi = km.keymap_items.new('nla.select_leftright', 'LEFT_BRACKET', 'PRESS')
1264 kmi.properties.mode = 'LEFT'
1265 kmi.properties.extend = False
1266 kmi = km.keymap_items.new('nla.select_leftright', 'RIGHT_BRACKET', 'PRESS')
1267 kmi.properties.mode = 'RIGHT'
1268 kmi.properties.extend = False
1269 kmi = km.keymap_items.new('nla.select_all_toggle', 'A', 'PRESS', ctrl=True)
1270 kmi.properties.invert = False
1271 kmi = km.keymap_items.new('nla.select_all_toggle', 'I', 'PRESS', ctrl=True)
1272 kmi.properties.invert = True
1273 kmi = km.keymap_items.new('nla.select_border', 'B', 'PRESS')
1274 kmi.properties.axis_range = False
1275 kmi = km.keymap_items.new('nla.select_border', 'B', 'PRESS', alt=True)
1276 kmi.properties.axis_range = True
1277 kmi = km.keymap_items.new('nla.view_all', 'HOME', 'PRESS')
1278 kmi = km.keymap_items.new('nla.view_selected', 'NUMPAD_PERIOD', 'PRESS')
1279 kmi = km.keymap_items.new('nla.tweakmode_enter', 'TAB', 'PRESS')
1280 kmi = km.keymap_items.new('nla.tweakmode_exit', 'TAB', 'PRESS')
1281 kmi = km.keymap_items.new('nla.actionclip_add', 'A', 'PRESS', shift=True)
1282 kmi = km.keymap_items.new('nla.transition_add', 'T', 'PRESS', shift=True)
1283 kmi = km.keymap_items.new('nla.soundclip_add', 'K', 'PRESS', shift=True)
1284 kmi = km.keymap_items.new('nla.meta_add', 'G', 'PRESS', shift=True)
1285 kmi = km.keymap_items.new('nla.meta_remove', 'G', 'PRESS', alt=True)
1286 kmi = km.keymap_items.new('nla.duplicate', 'D', 'PRESS', shift=True)
1287 kmi = km.keymap_items.new('nla.delete', 'X', 'PRESS')
1288 kmi = km.keymap_items.new('nla.delete', 'DEL', 'PRESS')
1289 kmi = km.keymap_items.new('nla.split', 'Y', 'PRESS')
1290 kmi = km.keymap_items.new('nla.mute_toggle', 'H', 'PRESS')
1291 kmi = km.keymap_items.new('nla.swap', 'F', 'PRESS', alt=True)
1292 kmi = km.keymap_items.new('nla.move_up', 'PAGE_UP', 'PRESS')
1293 kmi = km.keymap_items.new('nla.move_down', 'PAGE_DOWN', 'PRESS')
1294 kmi = km.keymap_items.new('nla.apply_scale', 'A', 'PRESS', shift=True, ctrl=True)
1295 kmi = km.keymap_items.new('nla.clear_scale', 'S', 'PRESS', alt=True)
1296 kmi = km.keymap_items.new('nla.snap', 'S', 'PRESS', shift=True)
1297 kmi = km.keymap_items.new('nla.fmodifier_add', 'M', 'PRESS', shift=True, ctrl=True)
1298 kmi = km.keymap_items.new('transform.transform', 'G', 'PRESS')
1299 kmi.properties.mode = 'TRANSLATION'
1300 kmi = km.keymap_items.new('transform.transform', 'EVT_TWEAK_S', 'ANY')
1301 kmi.properties.mode = 'TRANSLATION'
1302 kmi = km.keymap_items.new('transform.transform', 'E', 'PRESS')
1303 kmi.properties.mode = 'TIME_EXTEND'
1304 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS')
1305 kmi.properties.mode = 'TIME_SCALE'
1306 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
1307 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
1308
1309 # Map Sequencer
1310 km = kc.keymaps.new('Sequencer', space_type='SEQUENCE_EDITOR', region_type='WINDOW', modal=False)
1311
1312 kmi = km.keymap_items.new('sequencer.select_all', 'A', 'PRESS', ctrl=True)
1313 kmi.properties.action = 'TOGGLE'
1314 kmi = km.keymap_items.new('sequencer.select_all', 'I', 'PRESS', ctrl=True)
1315 kmi.properties.action = 'INVERT'
1316 kmi = km.keymap_items.new('sequencer.cut', 'K', 'PRESS')
1317 kmi.properties.type = 'SOFT'
1318 kmi = km.keymap_items.new('sequencer.cut', 'K', 'PRESS', shift=True)
1319 kmi.properties.type = 'HARD'
1320 kmi = km.keymap_items.new('sequencer.mute', 'H', 'PRESS')
1321 kmi.properties.unselected = False
1322 kmi = km.keymap_items.new('sequencer.mute', 'H', 'PRESS', shift=True)
1323 kmi.properties.unselected = True
1324 kmi = km.keymap_items.new('sequencer.unmute', 'H', 'PRESS', alt=True)
1325 kmi.properties.unselected = False
1326 kmi = km.keymap_items.new('sequencer.unmute', 'H', 'PRESS', shift=True, alt=True)
1327 kmi.properties.unselected = True
1328 kmi = km.keymap_items.new('sequencer.lock', 'L', 'PRESS', shift=True)
1329 kmi = km.keymap_items.new('sequencer.unlock', 'L', 'PRESS', shift=True, alt=True)
1330 kmi = km.keymap_items.new('sequencer.reassign_inputs', 'R', 'PRESS')
1331 kmi = km.keymap_items.new('sequencer.reload', 'R', 'PRESS', alt=True)
1332 kmi = km.keymap_items.new('sequencer.reload', 'R', 'PRESS', shift=True, alt=True)
1333 kmi.properties.adjust_length = True
1334 kmi = km.keymap_items.new('sequencer.offset_clear', 'O', 'PRESS', alt=True)
1335 kmi = km.keymap_items.new('sequencer.duplicate_move', 'D', 'PRESS', shift=True)
1336 kmi = km.keymap_items.new('sequencer.delete', 'X', 'PRESS')
1337 kmi = km.keymap_items.new('sequencer.delete', 'DEL', 'PRESS')
1338 kmi = km.keymap_items.new('sequencer.copy', 'C', 'PRESS', ctrl=True)
1339 kmi = km.keymap_items.new('sequencer.paste', 'V', 'PRESS', ctrl=True)
1340 kmi = km.keymap_items.new('sequencer.images_separate', 'Y', 'PRESS')
1341 kmi = km.keymap_items.new('sequencer.meta_toggle', 'TAB', 'PRESS')
1342 kmi = km.keymap_items.new('sequencer.meta_make', 'G', 'PRESS', ctrl=True)
1343 kmi = km.keymap_items.new('sequencer.meta_separate', 'G', 'PRESS', alt=True)
1344 kmi = km.keymap_items.new('sequencer.view_all', 'HOME', 'PRESS')
1345 kmi = km.keymap_items.new('sequencer.view_selected', 'NUMPAD_PERIOD', 'PRESS')
1346 kmi = km.keymap_items.new('sequencer.strip_jump', 'PAGE_UP', 'PRESS')
1347 kmi.properties.next = True
1348 kmi.properties.center = False
1349 kmi = km.keymap_items.new('sequencer.strip_jump', 'PAGE_DOWN', 'PRESS')
1350 kmi.properties.next = False
1351 kmi.properties.center = False
1352 kmi = km.keymap_items.new('sequencer.strip_jump', 'PAGE_UP', 'PRESS', alt=True)
1353 kmi.properties.next = True
1354 kmi.properties.center = True
1355 kmi = km.keymap_items.new('sequencer.strip_jump', 'PAGE_DOWN', 'PRESS', alt=True)
1356 kmi.properties.next = False
1357 kmi.properties.center = True
1358 kmi = km.keymap_items.new('sequencer.swap', 'LEFT_ARROW', 'PRESS', alt=True)
1359 kmi.properties.side = 'LEFT'
1360 kmi = km.keymap_items.new('sequencer.swap', 'RIGHT_ARROW', 'PRESS', alt=True)
1361 kmi.properties.side = 'RIGHT'
1362 kmi = km.keymap_items.new('sequencer.gap_remove', 'BACK_SPACE', 'PRESS')
1363 kmi.properties.all = False
1364 kmi = km.keymap_items.new('sequencer.gap_remove', 'BACK_SPACE', 'PRESS', shift=True)
1365 kmi.properties.all = True
1366 kmi = km.keymap_items.new('sequencer.gap_insert', 'EQUAL', 'PRESS', shift=True)
1367 kmi = km.keymap_items.new('sequencer.snap', 'S', 'PRESS', shift=True)
1368 kmi = km.keymap_items.new('sequencer.swap_inputs', 'S', 'PRESS', alt=True)
1369 kmi = km.keymap_items.new('sequencer.cut_multicam', 'ONE', 'PRESS')
1370 kmi.properties.camera = 1
1371 kmi = km.keymap_items.new('sequencer.cut_multicam', 'TWO', 'PRESS')
1372 kmi.properties.camera = 2
1373 kmi = km.keymap_items.new('sequencer.cut_multicam', 'THREE', 'PRESS')
1374 kmi.properties.camera = 3
1375 kmi = km.keymap_items.new('sequencer.cut_multicam', 'FOUR', 'PRESS')
1376 kmi.properties.camera = 4
1377 kmi = km.keymap_items.new('sequencer.cut_multicam', 'FIVE', 'PRESS')
1378 kmi.properties.camera = 5
1379 kmi = km.keymap_items.new('sequencer.cut_multicam', 'SIX', 'PRESS')
1380 kmi.properties.camera = 6
1381 kmi = km.keymap_items.new('sequencer.cut_multicam', 'SEVEN', 'PRESS')
1382 kmi.properties.camera = 7
1383 kmi = km.keymap_items.new('sequencer.cut_multicam', 'EIGHT', 'PRESS')
1384 kmi.properties.camera = 8
1385 kmi = km.keymap_items.new('sequencer.cut_multicam', 'NINE', 'PRESS')
1386 kmi.properties.camera = 9
1387 kmi = km.keymap_items.new('sequencer.cut_multicam', 'ZERO', 'PRESS')
1388 kmi.properties.camera = 10
1389 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS')
1390 kmi.properties.extend = False
1391 kmi.properties.linked_handle = False
1392 kmi.properties.left_right = False
1393 kmi.properties.linked_time = False
1394 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', shift=True)
1395 kmi.properties.extend = True
1396 kmi.properties.linked_handle = False
1397 kmi.properties.left_right = False
1398 kmi.properties.linked_time = False
1399 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', alt=True)
1400 kmi.properties.extend = False
1401 kmi.properties.linked_handle = True
1402 kmi.properties.left_right = False
1403 kmi.properties.linked_time = False
1404 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
1405 kmi.properties.extend = True
1406 kmi.properties.linked_handle = True
1407 kmi.properties.left_right = False
1408 kmi.properties.linked_time = False
1409 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', ctrl=True)
1410 kmi.properties.extend = False
1411 kmi.properties.linked_handle = False
1412 kmi.properties.left_right = True
1413 kmi.properties.linked_time = True
1414 kmi = km.keymap_items.new('sequencer.select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True)
1415 kmi.properties.extend = True
1416 kmi.properties.linked_handle = False
1417 kmi.properties.left_right = False
1418 kmi.properties.linked_time = True
1419 kmi = km.keymap_items.new('sequencer.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
1420 kmi = km.keymap_items.new('sequencer.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
1421 kmi = km.keymap_items.new('sequencer.select_linked_pick', 'L', 'PRESS')
1422 kmi.properties.extend = False
1423 kmi = km.keymap_items.new('sequencer.select_linked_pick', 'L', 'PRESS', shift=True)
1424 kmi.properties.extend = True
1425 kmi = km.keymap_items.new('sequencer.select_linked', 'L', 'PRESS', ctrl=True)
1426 kmi = km.keymap_items.new('sequencer.select_border', 'B', 'PRESS')
1427 kmi = km.keymap_items.new('sequencer.select_grouped', 'G', 'PRESS', shift=True)
1428 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
1429 kmi.properties.name = 'SEQUENCER_MT_add'
1430 kmi = km.keymap_items.new('wm.call_menu', 'C', 'PRESS')
1431 kmi.properties.name = 'SEQUENCER_MT_change'
1432 kmi = km.keymap_items.new('wm.context_set_int', 'O', 'PRESS')
1433 kmi.properties.data_path = 'scene.sequence_editor.overlay_frame'
1434 kmi.properties.value = 0
1435 kmi = km.keymap_items.new('transform.seq_slide', 'G', 'PRESS')
1436 kmi = km.keymap_items.new('transform.seq_slide', 'EVT_TWEAK_S', 'ANY')
1437 kmi = km.keymap_items.new('transform.transform', 'E', 'PRESS')
1438 kmi.properties.mode = 'TIME_EXTEND'
1439 kmi = km.keymap_items.new('marker.add', 'M', 'PRESS')
1440 kmi = km.keymap_items.new('marker.rename', 'M', 'PRESS', ctrl=True)
1441
1442 # Map Clip Editor
1443 km = kc.keymaps.new('Clip Editor', space_type='CLIP_EDITOR', region_type='WINDOW', modal=False)
1444
1445 kmi = km.keymap_items.new('clip.view_pan', 'MIDDLEMOUSE', 'PRESS')
1446 kmi = km.keymap_items.new('clip.view_pan', 'MIDDLEMOUSE', 'PRESS', shift=True)
1447 kmi = km.keymap_items.new('clip.view_pan', 'TRACKPADPAN', 'ANY')
1448 kmi = km.keymap_items.new('clip.view_zoom', 'MIDDLEMOUSE', 'PRESS', ctrl=True)
1449 kmi = km.keymap_items.new('clip.view_zoom', 'TRACKPADZOOM', 'ANY')
1450 kmi = km.keymap_items.new('clip.view_zoom', 'TRACKPADPAN', 'ANY', ctrl=True)
1451 kmi = km.keymap_items.new('clip.view_zoom_in', 'WHEELINMOUSE', 'PRESS')
1452 kmi = km.keymap_items.new('clip.view_zoom_out', 'WHEELOUTMOUSE', 'PRESS')
1453 kmi = km.keymap_items.new('clip.view_zoom_in', 'NUMPAD_PLUS', 'PRESS')
1454 kmi = km.keymap_items.new('clip.view_zoom_out', 'NUMPAD_MINUS', 'PRESS')
1455 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS', ctrl=True)
1456 kmi.properties.ratio = 8.0
1457 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS', ctrl=True)
1458 kmi.properties.ratio = 4.0
1459 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS', ctrl=True)
1460 kmi.properties.ratio = 2.0
1461 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS', shift=True)
1462 kmi.properties.ratio = 8.0
1463 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS', shift=True)
1464 kmi.properties.ratio = 4.0
1465 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS', shift=True)
1466 kmi.properties.ratio = 2.0
1467 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_1', 'PRESS')
1468 kmi.properties.ratio = 1.0
1469 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_2', 'PRESS')
1470 kmi.properties.ratio = 0.5
1471 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_4', 'PRESS')
1472 kmi.properties.ratio = 0.25
1473 kmi = km.keymap_items.new('clip.view_zoom_ratio', 'NUMPAD_8', 'PRESS')
1474 kmi.properties.ratio = 0.125
1475 kmi = km.keymap_items.new('clip.view_all', 'HOME', 'PRESS')
1476 kmi = km.keymap_items.new('clip.view_all', 'F', 'PRESS')
1477 kmi.properties.fit_view = True
1478 kmi = km.keymap_items.new('clip.view_selected', 'NUMPAD_PERIOD', 'PRESS')
1479 kmi = km.keymap_items.new('clip.view_all', 'NDOF_BUTTON_FIT', 'PRESS')
1480 kmi = km.keymap_items.new('clip.view_ndof', 'NDOF_MOTION', 'ANY')
1481 kmi = km.keymap_items.new('clip.frame_jump', 'LEFT_ARROW', 'PRESS', shift=True, ctrl=True)
1482 kmi.properties.position = 'PATHSTART'
1483 kmi = km.keymap_items.new('clip.frame_jump', 'RIGHT_ARROW', 'PRESS', shift=True, ctrl=True)
1484 kmi.properties.position = 'PATHEND'
1485 kmi = km.keymap_items.new('clip.frame_jump', 'LEFT_ARROW', 'PRESS', shift=True, alt=True)
1486 kmi.properties.position = 'FAILEDPREV'
1487 kmi = km.keymap_items.new('clip.frame_jump', 'RIGHT_ARROW', 'PRESS', shift=True, alt=True)
1488 kmi.properties.position = 'PATHSTART'
1489 kmi = km.keymap_items.new('clip.change_frame', 'LEFTMOUSE', 'PRESS')
1490 kmi = km.keymap_items.new('clip.select', 'SELECTMOUSE', 'PRESS')
1491 kmi.properties.extend = False
1492 kmi = km.keymap_items.new('clip.select', 'SELECTMOUSE', 'PRESS', shift=True)
1493 kmi.properties.extend = True
1494 kmi = km.keymap_items.new('clip.select_all', 'A', 'PRESS', ctrl=True)
1495 kmi.properties.action = 'TOGGLE'
1496 kmi = km.keymap_items.new('clip.select_all', 'I', 'PRESS', ctrl=True)
1497 kmi.properties.action = 'INVERT'
1498 kmi = km.keymap_items.new('clip.select_border', 'B', 'PRESS')
1499 kmi = km.keymap_items.new('clip.select_circle', 'C', 'PRESS')
1500 kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', shift=True)
1501 kmi.properties.name = 'CLIP_MT_select_grouped'
1502 kmi = km.keymap_items.new('clip.select_lasso', 'EVT_TWEAK_A', 'ANY', ctrl=True, alt=True)
1503 kmi.properties.deselect = False
1504 kmi = km.keymap_items.new('clip.select_lasso', 'EVT_TWEAK_A', 'ANY', shift=True, ctrl=True, alt=True)
1505 kmi.properties.deselect = True
1506 kmi = km.keymap_items.new('clip.add_marker_slide', 'LEFTMOUSE', 'PRESS', ctrl=True)
1507 kmi = km.keymap_items.new('clip.delete_marker', 'DEL', 'PRESS', shift=True)
1508 kmi = km.keymap_items.new('clip.delete_marker', 'X', 'PRESS', shift=True)
1509 kmi = km.keymap_items.new('clip.slide_marker', 'LEFTMOUSE', 'PRESS')
1510 kmi = km.keymap_items.new('clip.disable_markers', 'D', 'PRESS', shift=True)
1511 kmi.properties.action = 'TOGGLE'
1512 kmi = km.keymap_items.new('clip.delete_track', 'DEL', 'PRESS')
1513 kmi = km.keymap_items.new('clip.delete_track', 'X', 'PRESS')
1514 kmi = km.keymap_items.new('clip.lock_tracks', 'L', 'PRESS', ctrl=True)
1515 kmi.properties.action = 'LOCK'
1516 kmi = km.keymap_items.new('clip.lock_tracks', 'L', 'PRESS', alt=True)
1517 kmi.properties.action = 'UNLOCK'
1518 kmi = km.keymap_items.new('clip.hide_tracks', 'H', 'PRESS')
1519 kmi.properties.unselected = False
1520 kmi = km.keymap_items.new('clip.hide_tracks', 'H', 'PRESS', shift=True)
1521 kmi.properties.unselected = True
1522 kmi = km.keymap_items.new('clip.hide_tracks_clear', 'H', 'PRESS', alt=True)
1523 kmi = km.keymap_items.new('clip.join_tracks', 'J', 'PRESS', ctrl=True)
1524 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS')
1525 kmi.properties.name = 'CLIP_MT_tracking_specials'
1526 kmi = km.keymap_items.new('wm.context_toggle', 'L', 'PRESS')
1527 kmi.properties.data_path = 'space_data.lock_selection'
1528 kmi = km.keymap_items.new('wm.context_toggle', 'D', 'PRESS', alt=True)
1529 kmi.properties.data_path = 'space_data.show_disabled'
1530 kmi = km.keymap_items.new('wm.context_toggle', 'S', 'PRESS', alt=True)
1531 kmi.properties.data_path = 'space_data.show_marker_search'
1532 kmi = km.keymap_items.new('wm.context_toggle', 'M', 'PRESS')
1533 kmi.properties.data_path = 'space_data.use_mute_footage'
1534 kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS')
1535 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
1536 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
1537 kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
1538 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', alt=True)
1539 kmi.properties.action = 'REMAINED'
1540 kmi.properties.clear_active = False
1541 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True)
1542 kmi.properties.action = 'UPTO'
1543 kmi.properties.clear_active = False
1544 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True, alt=True)
1545 kmi.properties.action = 'ALL'
1546 kmi.properties.clear_active = False
1547
1548 # Map Clip Graph Editor
1549 km = kc.keymaps.new('Clip Graph Editor', space_type='CLIP_EDITOR', region_type='WINDOW', modal=False)
1550
1551 kmi = km.keymap_items.new('clip.change_frame', 'ACTIONMOUSE', 'PRESS')
1552 kmi = km.keymap_items.new('clip.graph_select', 'SELECTMOUSE', 'PRESS')
1553 kmi.properties.extend = False
1554 kmi = km.keymap_items.new('clip.graph_select', 'SELECTMOUSE', 'PRESS', shift=True)
1555 kmi.properties.extend = True
1556 kmi = km.keymap_items.new('clip.graph_select_all_markers', 'A', 'PRESS', ctrl=True)
1557 kmi.properties.action = 'TOGGLE'
1558 kmi = km.keymap_items.new('clip.graph_select_all_markers', 'I', 'PRESS', ctrl=True)
1559 kmi.properties.action = 'INVERT'
1560 kmi = km.keymap_items.new('clip.graph_select_border', 'B', 'PRESS')
1561 kmi = km.keymap_items.new('clip.graph_delete_curve', 'DEL', 'PRESS')
1562 kmi = km.keymap_items.new('clip.graph_delete_curve', 'X', 'PRESS')
1563 kmi = km.keymap_items.new('clip.graph_delete_knot', 'DEL', 'PRESS', shift=True)
1564 kmi = km.keymap_items.new('clip.graph_delete_knot', 'X', 'PRESS', shift=True)
1565 kmi = km.keymap_items.new('clip.graph_view_all', 'HOME', 'PRESS')
1566 kmi = km.keymap_items.new('clip.graph_center_current_frame', 'NUMPAD_PERIOD', 'PRESS')
1567 kmi = km.keymap_items.new('wm.context_toggle', 'L', 'PRESS')
1568 kmi.properties.data_path = 'space_data.lock_time_cursor'
1569 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', alt=True)
1570 kmi.properties.action = 'REMAINED'
1571 kmi.properties.clear_active = True
1572 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True)
1573 kmi.properties.action = 'UPTO'
1574 kmi.properties.clear_active = True
1575 kmi = km.keymap_items.new('clip.clear_track_path', 'T', 'PRESS', shift=True, alt=True)
1576 kmi.properties.action = 'ALL'
1577 kmi.properties.clear_active = True
1578 kmi = km.keymap_items.new('clip.graph_disable_markers', 'D', 'PRESS', shift=True)
1579 kmi.properties.action = 'TOGGLE'
1580 kmi = km.keymap_items.new('transform.translate', 'G', 'PRESS')
1581 kmi = km.keymap_items.new('transform.translate', 'EVT_TWEAK_S', 'ANY')
1582 kmi = km.keymap_items.new('transform.resize', 'S', 'PRESS')
1583 kmi = km.keymap_items.new('transform.rotate', 'R', 'PRESS')
1584
1585 # Map Image Paint
1586 km = kc.keymaps.new('Image Paint', space_type='EMPTY', region_type='WINDOW', modal=False)
1587
1588 kmi = km.keymap_items.new('paint.image_paint', 'LEFTMOUSE', 'PRESS')
1589 kmi.properties.mode = 'NORMAL'
1590 kmi = km.keymap_items.new('paint.image_paint', 'LEFTMOUSE', 'PRESS', ctrl=True)
1591 kmi.properties.mode = 'INVERT'
1592 kmi = km.keymap_items.new('paint.grab_clone', 'RIGHTMOUSE', 'PRESS')
1593 kmi = km.keymap_items.new('paint.sample_color', 'RIGHTMOUSE', 'PRESS')
1594 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS')
1595 kmi.properties.mode = 'image_paint'
1596 kmi.properties.index = 0
1597 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS')
1598 kmi.properties.mode = 'image_paint'
1599 kmi.properties.index = 1
1600 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS')
1601 kmi.properties.mode = 'image_paint'
1602 kmi.properties.index = 2
1603 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS')
1604 kmi.properties.mode = 'image_paint'
1605 kmi.properties.index = 3
1606 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS')
1607 kmi.properties.mode = 'image_paint'
1608 kmi.properties.index = 4
1609 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS')
1610 kmi.properties.mode = 'image_paint'
1611 kmi.properties.index = 5
1612 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS')
1613 kmi.properties.mode = 'image_paint'
1614 kmi.properties.index = 6
1615 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS')
1616 kmi.properties.mode = 'image_paint'
1617 kmi.properties.index = 7
1618 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS')
1619 kmi.properties.mode = 'image_paint'
1620 kmi.properties.index = 8
1621 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS')
1622 kmi.properties.mode = 'image_paint'
1623 kmi.properties.index = 9
1624 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS', shift=True)
1625 kmi.properties.mode = 'image_paint'
1626 kmi.properties.index = 10
1627 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS', shift=True)
1628 kmi.properties.mode = 'image_paint'
1629 kmi.properties.index = 11
1630 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS', shift=True)
1631 kmi.properties.mode = 'image_paint'
1632 kmi.properties.index = 12
1633 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS', shift=True)
1634 kmi.properties.mode = 'image_paint'
1635 kmi.properties.index = 13
1636 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS', shift=True)
1637 kmi.properties.mode = 'image_paint'
1638 kmi.properties.index = 14
1639 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS', shift=True)
1640 kmi.properties.mode = 'image_paint'
1641 kmi.properties.index = 15
1642 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS', shift=True)
1643 kmi.properties.mode = 'image_paint'
1644 kmi.properties.index = 16
1645 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS', shift=True)
1646 kmi.properties.mode = 'image_paint'
1647 kmi.properties.index = 17
1648 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS', shift=True)
1649 kmi.properties.mode = 'image_paint'
1650 kmi.properties.index = 18
1651 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS', shift=True)
1652 kmi.properties.mode = 'image_paint'
1653 kmi.properties.index = 19
1654 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
1655 kmi.properties.scalar = 0.8999999761581421
1656 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
1657 kmi.properties.scalar = 1.1111111640930176
1658 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
1659 kmi.properties.data_path_primary = 'tool_settings.image_paint.brush.size'
1660 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
1661 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
1662 kmi.properties.rotation_path = 'tool_settings.image_paint.brush.texture_slot.angle'
1663 kmi.properties.color_path = 'tool_settings.image_paint.brush.cursor_color_add'
1664 kmi.properties.fill_color_path = 'tool_settings.image_paint.brush.color'
1665 kmi.properties.zoom_path = 'space_data.zoom'
1666 kmi.properties.image_id = 'tool_settings.image_paint.brush'
1667 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', shift=True)
1668 kmi.properties.data_path_primary = 'tool_settings.image_paint.brush.strength'
1669 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
1670 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
1671 kmi.properties.rotation_path = 'tool_settings.image_paint.brush.texture_slot.angle'
1672 kmi.properties.color_path = 'tool_settings.image_paint.brush.cursor_color_add'
1673 kmi.properties.fill_color_path = 'tool_settings.image_paint.brush.color'
1674 kmi.properties.zoom_path = ''
1675 kmi.properties.image_id = 'tool_settings.image_paint.brush'
1676 kmi = km.keymap_items.new('wm.radial_control', 'W', 'PRESS')
1677 kmi.properties.data_path_primary = 'tool_settings.image_paint.brush.weight'
1678 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.weight'
1679 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_weight'
1680 kmi.properties.rotation_path = 'tool_settings.image_paint.brush.texture_slot.angle'
1681 kmi.properties.color_path = 'tool_settings.image_paint.brush.cursor_color_add'
1682 kmi.properties.fill_color_path = 'tool_settings.image_paint.brush.color'
1683 kmi.properties.zoom_path = ''
1684 kmi.properties.image_id = 'tool_settings.image_paint.brush'
1685 kmi = km.keymap_items.new('wm.context_toggle', 'M', 'PRESS')
1686 kmi.properties.data_path = 'image_paint_object.data.use_paint_mask'
1687
1688 # Map Vertex Paint
1689 km = kc.keymaps.new('Vertex Paint', space_type='EMPTY', region_type='WINDOW', modal=False)
1690
1691 kmi = km.keymap_items.new('paint.vertex_paint', 'LEFTMOUSE', 'PRESS')
1692 kmi = km.keymap_items.new('paint.sample_color', 'RIGHTMOUSE', 'PRESS')
1693 kmi = km.keymap_items.new('paint.vertex_color_set', 'K', 'PRESS', shift=True)
1694 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS')
1695 kmi.properties.mode = 'vertex_paint'
1696 kmi.properties.index = 0
1697 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS')
1698 kmi.properties.mode = 'vertex_paint'
1699 kmi.properties.index = 1
1700 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS')
1701 kmi.properties.mode = 'vertex_paint'
1702 kmi.properties.index = 2
1703 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS')
1704 kmi.properties.mode = 'vertex_paint'
1705 kmi.properties.index = 3
1706 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS')
1707 kmi.properties.mode = 'vertex_paint'
1708 kmi.properties.index = 4
1709 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS')
1710 kmi.properties.mode = 'vertex_paint'
1711 kmi.properties.index = 5
1712 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS')
1713 kmi.properties.mode = 'vertex_paint'
1714 kmi.properties.index = 6
1715 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS')
1716 kmi.properties.mode = 'vertex_paint'
1717 kmi.properties.index = 7
1718 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS')
1719 kmi.properties.mode = 'vertex_paint'
1720 kmi.properties.index = 8
1721 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS')
1722 kmi.properties.mode = 'vertex_paint'
1723 kmi.properties.index = 9
1724 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS', shift=True)
1725 kmi.properties.mode = 'vertex_paint'
1726 kmi.properties.index = 10
1727 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS', shift=True)
1728 kmi.properties.mode = 'vertex_paint'
1729 kmi.properties.index = 11
1730 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS', shift=True)
1731 kmi.properties.mode = 'vertex_paint'
1732 kmi.properties.index = 12
1733 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS', shift=True)
1734 kmi.properties.mode = 'vertex_paint'
1735 kmi.properties.index = 13
1736 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS', shift=True)
1737 kmi.properties.mode = 'vertex_paint'
1738 kmi.properties.index = 14
1739 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS', shift=True)
1740 kmi.properties.mode = 'vertex_paint'
1741 kmi.properties.index = 15
1742 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS', shift=True)
1743 kmi.properties.mode = 'vertex_paint'
1744 kmi.properties.index = 16
1745 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS', shift=True)
1746 kmi.properties.mode = 'vertex_paint'
1747 kmi.properties.index = 17
1748 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS', shift=True)
1749 kmi.properties.mode = 'vertex_paint'
1750 kmi.properties.index = 18
1751 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS', shift=True)
1752 kmi.properties.mode = 'vertex_paint'
1753 kmi.properties.index = 19
1754 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
1755 kmi.properties.scalar = 0.8999999761581421
1756 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
1757 kmi.properties.scalar = 1.1111111640930176
1758 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
1759 kmi.properties.data_path_primary = 'tool_settings.vertex_paint.brush.size'
1760 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
1761 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
1762 kmi.properties.rotation_path = 'tool_settings.vertex_paint.brush.texture_slot.angle'
1763 kmi.properties.color_path = 'tool_settings.vertex_paint.brush.cursor_color_add'
1764 kmi.properties.fill_color_path = 'tool_settings.vertex_paint.brush.color'
1765 kmi.properties.zoom_path = ''
1766 kmi.properties.image_id = 'tool_settings.vertex_paint.brush'
1767 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', shift=True)
1768 kmi.properties.data_path_primary = 'tool_settings.vertex_paint.brush.strength'
1769 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
1770 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
1771 kmi.properties.rotation_path = 'tool_settings.vertex_paint.brush.texture_slot.angle'
1772 kmi.properties.color_path = 'tool_settings.vertex_paint.brush.cursor_color_add'
1773 kmi.properties.fill_color_path = 'tool_settings.vertex_paint.brush.color'
1774 kmi.properties.zoom_path = ''
1775 kmi.properties.image_id = 'tool_settings.vertex_paint.brush'
1776 kmi = km.keymap_items.new('wm.radial_control', 'Q', 'PRESS')
1777 kmi.properties.data_path_primary = 'tool_settings.vertex_paint.brush.weight'
1778 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.weight'
1779 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_weight'
1780 kmi.properties.rotation_path = 'tool_settings.vertex_paint.brush.texture_slot.angle'
1781 kmi.properties.color_path = 'tool_settings.vertex_paint.brush.cursor_color_add'
1782 kmi.properties.fill_color_path = 'tool_settings.vertex_paint.brush.color'
1783 kmi.properties.zoom_path = ''
1784 kmi.properties.image_id = 'tool_settings.vertex_paint.brush'
1785 kmi = km.keymap_items.new('wm.context_toggle', 'M', 'PRESS')
1786 kmi.properties.data_path = 'vertex_paint_object.data.use_paint_mask'
1787
1788 # Map Weight Paint
1789 km = kc.keymaps.new('Weight Paint', space_type='EMPTY', region_type='WINDOW', modal=False)
1790
1791 kmi = km.keymap_items.new('paint.weight_paint', 'LEFTMOUSE', 'PRESS')
1792 kmi = km.keymap_items.new('paint.weight_sample', 'ACTIONMOUSE', 'PRESS', ctrl=True)
1793 kmi = km.keymap_items.new('paint.weight_sample_group', 'ACTIONMOUSE', 'PRESS', shift=True)
1794 kmi = km.keymap_items.new('paint.weight_gradient', 'LEFTMOUSE', 'PRESS', alt=True)
1795 kmi.properties.type = 'LINEAR'
1796 kmi = km.keymap_items.new('paint.weight_gradient', 'LEFTMOUSE', 'PRESS', ctrl=True, alt=True)
1797 kmi.properties.type = 'RADIAL'
1798 kmi = km.keymap_items.new('paint.weight_set', 'K', 'PRESS', shift=True)
1799 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS')
1800 kmi.properties.mode = 'weight_paint'
1801 kmi.properties.index = 0
1802 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS')
1803 kmi.properties.mode = 'weight_paint'
1804 kmi.properties.index = 1
1805 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS')
1806 kmi.properties.mode = 'weight_paint'
1807 kmi.properties.index = 2
1808 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS')
1809 kmi.properties.mode = 'weight_paint'
1810 kmi.properties.index = 3
1811 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS')
1812 kmi.properties.mode = 'weight_paint'
1813 kmi.properties.index = 4
1814 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS')
1815 kmi.properties.mode = 'weight_paint'
1816 kmi.properties.index = 5
1817 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS')
1818 kmi.properties.mode = 'weight_paint'
1819 kmi.properties.index = 6
1820 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS')
1821 kmi.properties.mode = 'weight_paint'
1822 kmi.properties.index = 7
1823 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS')
1824 kmi.properties.mode = 'weight_paint'
1825 kmi.properties.index = 8
1826 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS')
1827 kmi.properties.mode = 'weight_paint'
1828 kmi.properties.index = 9
1829 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS', shift=True)
1830 kmi.properties.mode = 'weight_paint'
1831 kmi.properties.index = 10
1832 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS', shift=True)
1833 kmi.properties.mode = 'weight_paint'
1834 kmi.properties.index = 11
1835 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS', shift=True)
1836 kmi.properties.mode = 'weight_paint'
1837 kmi.properties.index = 12
1838 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS', shift=True)
1839 kmi.properties.mode = 'weight_paint'
1840 kmi.properties.index = 13
1841 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS', shift=True)
1842 kmi.properties.mode = 'weight_paint'
1843 kmi.properties.index = 14
1844 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS', shift=True)
1845 kmi.properties.mode = 'weight_paint'
1846 kmi.properties.index = 15
1847 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS', shift=True)
1848 kmi.properties.mode = 'weight_paint'
1849 kmi.properties.index = 16
1850 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS', shift=True)
1851 kmi.properties.mode = 'weight_paint'
1852 kmi.properties.index = 17
1853 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS', shift=True)
1854 kmi.properties.mode = 'weight_paint'
1855 kmi.properties.index = 18
1856 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS', shift=True)
1857 kmi.properties.mode = 'weight_paint'
1858 kmi.properties.index = 19
1859 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
1860 kmi.properties.scalar = 0.8999999761581421
1861 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
1862 kmi.properties.scalar = 1.1111111640930176
1863 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
1864 kmi.properties.data_path_primary = 'tool_settings.weight_paint.brush.size'
1865 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
1866 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
1867 kmi.properties.rotation_path = 'tool_settings.weight_paint.brush.texture_slot.angle'
1868 kmi.properties.color_path = 'tool_settings.weight_paint.brush.cursor_color_add'
1869 kmi.properties.fill_color_path = ''
1870 kmi.properties.zoom_path = ''
1871 kmi.properties.image_id = 'tool_settings.weight_paint.brush'
1872 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', shift=True)
1873 kmi.properties.data_path_primary = 'tool_settings.weight_paint.brush.strength'
1874 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
1875 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
1876 kmi.properties.rotation_path = 'tool_settings.weight_paint.brush.texture_slot.angle'
1877 kmi.properties.color_path = 'tool_settings.weight_paint.brush.cursor_color_add'
1878 kmi.properties.fill_color_path = ''
1879 kmi.properties.zoom_path = ''
1880 kmi.properties.image_id = 'tool_settings.weight_paint.brush'
1881 kmi = km.keymap_items.new('wm.radial_control', 'Q', 'PRESS')
1882 kmi.properties.data_path_primary = 'tool_settings.weight_paint.brush.weight'
1883 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.weight'
1884 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_weight'
1885 kmi.properties.rotation_path = 'tool_settings.weight_paint.brush.texture_slot.angle'
1886 kmi.properties.color_path = 'tool_settings.weight_paint.brush.cursor_color_add'
1887 kmi.properties.fill_color_path = ''
1888 kmi.properties.zoom_path = ''
1889 kmi.properties.image_id = 'tool_settings.weight_paint.brush'
1890 kmi = km.keymap_items.new('wm.context_toggle', 'M', 'PRESS')
1891 kmi.properties.data_path = 'weight_paint_object.data.use_paint_mask'
1892 kmi = km.keymap_items.new('wm.context_toggle', 'V', 'PRESS')
1893 kmi.properties.data_path = 'weight_paint_object.data.use_paint_mask_vertex'
1894 kmi = km.keymap_items.new('paint.weight_from_bones', 'Q', 'PRESS')
1895
1896 # Map Sculpt
1897 km = kc.keymaps.new('Sculpt', space_type='EMPTY', region_type='WINDOW', modal=False)
1898
1899 kmi = km.keymap_items.new('sculpt.brush_stroke', 'LEFTMOUSE', 'PRESS')
1900 kmi.properties.mode = 'NORMAL'
1901 kmi = km.keymap_items.new('sculpt.brush_stroke', 'LEFTMOUSE', 'PRESS', ctrl=True)
1902 kmi.properties.mode = 'INVERT'
1903 kmi = km.keymap_items.new('sculpt.brush_stroke', 'LEFTMOUSE', 'PRESS', shift=True)
1904 kmi.properties.mode = 'SMOOTH'
1905 kmi = km.keymap_items.new('paint.hide_show', 'H', 'PRESS', shift=True)
1906 kmi.properties.action = 'SHOW'
1907 kmi.properties.area = 'INSIDE'
1908 kmi = km.keymap_items.new('paint.hide_show', 'H', 'PRESS')
1909 kmi.properties.action = 'HIDE'
1910 kmi.properties.area = 'INSIDE'
1911 kmi = km.keymap_items.new('paint.hide_show', 'H', 'PRESS', alt=True)
1912 kmi.properties.action = 'SHOW'
1913 kmi.properties.area = 'ALL'
1914 kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS', ctrl=True)
1915 kmi.properties.level = 0
1916 kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS', ctrl=True)
1917 kmi.properties.level = 1
1918 kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS', ctrl=True)
1919 kmi.properties.level = 2
1920 kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS', ctrl=True)
1921 kmi.properties.level = 3
1922 kmi = km.keymap_items.new('object.subdivision_set', 'FOUR', 'PRESS', ctrl=True)
1923 kmi.properties.level = 4
1924 kmi = km.keymap_items.new('object.subdivision_set', 'FIVE', 'PRESS', ctrl=True)
1925 kmi.properties.level = 5
1926 kmi = km.keymap_items.new('paint.mask_flood_fill', 'M', 'PRESS', alt=True)
1927 kmi.properties.mode = 'VALUE'
1928 kmi.properties.value = 0.0
1929 kmi = km.keymap_items.new('paint.mask_flood_fill', 'I', 'PRESS', ctrl=True)
1930 kmi.properties.mode = 'INVERT'
1931 kmi = km.keymap_items.new('sculpt.dynamic_topology_toggle', 'D', 'PRESS', ctrl=True)
1932 kmi = km.keymap_items.new('wm.radial_control', 'D', 'PRESS', shift=True)
1933 kmi.properties.data_path_primary = 'tool_settings.sculpt.detail_size'
1934 kmi.properties.data_path_secondary = ''
1935 kmi.properties.use_secondary = ''
1936 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
1937 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
1938 kmi.properties.fill_color_path = ''
1939 kmi.properties.zoom_path = ''
1940 kmi.properties.image_id = 'tool_settings.sculpt.brush'
1941 kmi = km.keymap_items.new('object.subdivision_set', 'PAGE_UP', 'PRESS')
1942 kmi.properties.level = 1
1943 kmi.properties.relative = True
1944 kmi = km.keymap_items.new('object.subdivision_set', 'PAGE_DOWN', 'PRESS')
1945 kmi.properties.level = -1
1946 kmi.properties.relative = True
1947 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS')
1948 kmi.properties.mode = 'sculpt'
1949 kmi.properties.index = 0
1950 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS')
1951 kmi.properties.mode = 'sculpt'
1952 kmi.properties.index = 1
1953 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS')
1954 kmi.properties.mode = 'sculpt'
1955 kmi.properties.index = 2
1956 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS')
1957 kmi.properties.mode = 'sculpt'
1958 kmi.properties.index = 3
1959 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS')
1960 kmi.properties.mode = 'sculpt'
1961 kmi.properties.index = 4
1962 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS')
1963 kmi.properties.mode = 'sculpt'
1964 kmi.properties.index = 5
1965 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS')
1966 kmi.properties.mode = 'sculpt'
1967 kmi.properties.index = 6
1968 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS')
1969 kmi.properties.mode = 'sculpt'
1970 kmi.properties.index = 7
1971 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS')
1972 kmi.properties.mode = 'sculpt'
1973 kmi.properties.index = 8
1974 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS')
1975 kmi.properties.mode = 'sculpt'
1976 kmi.properties.index = 9
1977 kmi = km.keymap_items.new('brush.active_index_set', 'ONE', 'PRESS', shift=True)
1978 kmi.properties.mode = 'sculpt'
1979 kmi.properties.index = 10
1980 kmi = km.keymap_items.new('brush.active_index_set', 'TWO', 'PRESS', shift=True)
1981 kmi.properties.mode = 'sculpt'
1982 kmi.properties.index = 11
1983 kmi = km.keymap_items.new('brush.active_index_set', 'THREE', 'PRESS', shift=True)
1984 kmi.properties.mode = 'sculpt'
1985 kmi.properties.index = 12
1986 kmi = km.keymap_items.new('brush.active_index_set', 'FOUR', 'PRESS', shift=True)
1987 kmi.properties.mode = 'sculpt'
1988 kmi.properties.index = 13
1989 kmi = km.keymap_items.new('brush.active_index_set', 'FIVE', 'PRESS', shift=True)
1990 kmi.properties.mode = 'sculpt'
1991 kmi.properties.index = 14
1992 kmi = km.keymap_items.new('brush.active_index_set', 'SIX', 'PRESS', shift=True)
1993 kmi.properties.mode = 'sculpt'
1994 kmi.properties.index = 15
1995 kmi = km.keymap_items.new('brush.active_index_set', 'SEVEN', 'PRESS', shift=True)
1996 kmi.properties.mode = 'sculpt'
1997 kmi.properties.index = 16
1998 kmi = km.keymap_items.new('brush.active_index_set', 'EIGHT', 'PRESS', shift=True)
1999 kmi.properties.mode = 'sculpt'
2000 kmi.properties.index = 17
2001 kmi = km.keymap_items.new('brush.active_index_set', 'NINE', 'PRESS', shift=True)
2002 kmi.properties.mode = 'sculpt'
2003 kmi.properties.index = 18
2004 kmi = km.keymap_items.new('brush.active_index_set', 'ZERO', 'PRESS', shift=True)
2005 kmi.properties.mode = 'sculpt'
2006 kmi.properties.index = 19
2007 kmi = km.keymap_items.new('brush.scale_size', 'LEFT_BRACKET', 'PRESS')
2008 kmi.properties.scalar = 0.8999999761581421
2009 kmi = km.keymap_items.new('brush.scale_size', 'RIGHT_BRACKET', 'PRESS')
2010 kmi.properties.scalar = 1.1111111640930176
2011 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
2012 kmi.properties.data_path_primary = 'tool_settings.sculpt.brush.size'
2013 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.size'
2014 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_size'
2015 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
2016 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
2017 kmi.properties.fill_color_path = ''
2018 kmi.properties.zoom_path = ''
2019 kmi.properties.image_id = 'tool_settings.sculpt.brush'
2020 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', shift=True)
2021 kmi.properties.data_path_primary = 'tool_settings.sculpt.brush.strength'
2022 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.strength'
2023 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_strength'
2024 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
2025 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
2026 kmi.properties.fill_color_path = ''
2027 kmi.properties.zoom_path = ''
2028 kmi.properties.image_id = 'tool_settings.sculpt.brush'
2029 kmi = km.keymap_items.new('wm.radial_control', 'W', 'PRESS')
2030 kmi.properties.data_path_primary = 'tool_settings.sculpt.brush.weight'
2031 kmi.properties.data_path_secondary = 'tool_settings.unified_paint_settings.weight'
2032 kmi.properties.use_secondary = 'tool_settings.unified_paint_settings.use_unified_weight'
2033 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
2034 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
2035 kmi.properties.fill_color_path = ''
2036 kmi.properties.zoom_path = ''
2037 kmi.properties.image_id = 'tool_settings.sculpt.brush'
2038 kmi = km.keymap_items.new('wm.radial_control', 'F', 'PRESS', ctrl=True)
2039 kmi.properties.data_path_primary = 'tool_settings.sculpt.brush.texture_slot.angle'
2040 kmi.properties.data_path_secondary = ''
2041 kmi.properties.use_secondary = ''
2042 kmi.properties.rotation_path = 'tool_settings.sculpt.brush.texture_slot.angle'
2043 kmi.properties.color_path = 'tool_settings.sculpt.brush.cursor_color_add'
2044 kmi.properties.fill_color_path = ''
2045 kmi.properties.zoom_path = ''
2046 kmi.properties.image_id = 'tool_settings.sculpt.brush'
2047 kmi = km.keymap_items.new('paint.brush_select', 'D', 'PRESS')
2048 kmi.properties.paint_mode = 'SCULPT'
2049 kmi.properties.sculpt_tool = 'DRAW'
2050 kmi = km.keymap_items.new('paint.brush_select', 'S', 'PRESS')
2051 kmi.properties.paint_mode = 'SCULPT'
2052 kmi.properties.sculpt_tool = 'SMOOTH'
2053 kmi = km.keymap_items.new('paint.brush_select', 'P', 'PRESS')
2054 kmi.properties.paint_mode = 'SCULPT'
2055 kmi.properties.sculpt_tool = 'PINCH'
2056 kmi = km.keymap_items.new('paint.brush_select', 'I', 'PRESS')
2057 kmi.properties.paint_mode = 'SCULPT'
2058 kmi.properties.sculpt_tool = 'INFLATE'
2059 kmi = km.keymap_items.new('paint.brush_select', 'G', 'PRESS')
2060 kmi.properties.paint_mode = 'SCULPT'
2061 kmi.properties.sculpt_tool = 'GRAB'
2062 kmi = km.keymap_items.new('paint.brush_select', 'L', 'PRESS')
2063 kmi.properties.paint_mode = 'SCULPT'
2064 kmi.properties.sculpt_tool = 'LAYER'
2065 kmi = km.keymap_items.new('paint.brush_select', 'T', 'PRESS', shift=True)
2066 kmi.properties.paint_mode = 'SCULPT'
2067 kmi.properties.sculpt_tool = 'FLATTEN'
2068 kmi = km.keymap_items.new('paint.brush_select', 'C', 'PRESS')
2069 kmi.properties.paint_mode = 'SCULPT'
2070 kmi.properties.sculpt_tool = 'CLAY'
2071 kmi = km.keymap_items.new('paint.brush_select', 'C', 'PRESS', shift=True)
2072 kmi.properties.paint_mode = 'SCULPT'
2073 kmi.properties.sculpt_tool = 'CREASE'
2074 kmi = km.keymap_items.new('paint.brush_select', 'K', 'PRESS')
2075 kmi.properties.paint_mode = 'SCULPT'
2076 kmi.properties.sculpt_tool = 'SNAKE_HOOK'
2077 kmi = km.keymap_items.new('paint.brush_select', 'M', 'PRESS')
2078 kmi.properties.paint_mode = 'SCULPT'
2079 kmi.properties.sculpt_tool = 'MASK'
2080 kmi.properties.toggle = True
2081 kmi.properties.create_missing = True
2082 kmi = km.keymap_items.new('wm.context_menu_enum', 'A', 'PRESS')
2083 kmi.properties.data_path = 'tool_settings.sculpt.brush.stroke_method'
2084 kmi = km.keymap_items.new('wm.context_toggle', 'S', 'PRESS', shift=True)
2085 kmi.properties.data_path = 'tool_settings.sculpt.brush.use_smooth_stroke'
2086 kmi = km.keymap_items.new('wm.context_menu_enum', 'R', 'PRESS')
2087 kmi.properties.data_path = 'tool_settings.sculpt.brush.texture_angle_source_random'
2088
2089 # Map Mesh
2090 km = kc.keymaps.new('Mesh', space_type='EMPTY', region_type='WINDOW', modal=False)
2091
2092 kmi = km.keymap_items.new('mesh.loopcut_slide', 'R', 'PRESS', ctrl=True)
2093 kmi = km.keymap_items.new('mesh.inset', 'I', 'PRESS')
2094 kmi = km.keymap_items.new('mesh.bevel', 'B', 'PRESS', ctrl=True)
2095 kmi.properties.vertex_only = False
2096 kmi = km.keymap_items.new('mesh.bevel', 'B', 'PRESS', shift=True, ctrl=True)
2097 kmi.properties.vertex_only = True
2098 kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', alt=True)
2099 kmi.properties.extend = False
2100 kmi.properties.deselect = False
2101 kmi.properties.toggle = False
2102 kmi = km.keymap_items.new('mesh.loop_select', 'SELECTMOUSE', 'PRESS', shift=True, alt=True)
2103 kmi.properties.extend = False
2104 kmi.properties.deselect = False
2105 kmi.properties.toggle = True
2106 kmi = km.keymap_items.new('mesh.edgering_select', 'SELECTMOUSE', 'PRESS', ctrl=True, alt=True)
2107 kmi.properties.extend = False
2108 kmi.properties.deselect = False
2109 kmi.properties.toggle = False
2110 kmi = km.keymap_items.new('mesh.edgering_select', 'SELECTMOUSE', 'PRESS', shift=True, ctrl=True, alt=True)
2111 kmi.properties.extend = False
2112 kmi.properties.deselect = False
2113 kmi.properties.toggle = True
2114 kmi = km.keymap_items.new('mesh.select_shortest_path', 'SELECTMOUSE', 'PRESS', ctrl=True)
2115 kmi = km.keymap_items.new('mesh.select_all', 'LEFTMOUSE', 'CLICK')
2116 kmi.properties.action = 'DESELECT'
2117 kmi = km.keymap_items.new('mesh.select_all', 'I', 'PRESS', ctrl=True)
2118 kmi.properties.action = 'INVERT'
2119 kmi = km.keymap_items.new('mesh.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
2120 kmi = km.keymap_items.new('mesh.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
2121 kmi = km.keymap_items.new('mesh.select_non_manifold', 'M', 'PRESS', shift=True, ctrl=True, alt=True)
2122 kmi = km.keymap_items.new('mesh.select_linked', 'L', 'PRESS', ctrl=True)
2123 kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS', alt=True)
2124 kmi.properties.deselect = False
2125 kmi = km.keymap_items.new('mesh.select_linked_pick', 'L', 'PRESS', shift=True)
2126 kmi.properties.deselect = True
2127 kmi = km.keymap_items.new('mesh.faces_select_linked_flat', 'F', 'PRESS', shift=True, ctrl=True, alt=True)
2128 kmi = km.keymap_items.new('mesh.select_similar', 'G', 'PRESS', shift=True)
2129 kmi = km.keymap_items.new('wm.call_menu', 'TAB', 'PRESS', ctrl=True)
2130 kmi.properties.name = 'VIEW3D_MT_edit_mesh_select_mode'
2131 kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS')
2132 kmi.properties.unselected = False
2133 kmi = km.keymap_items.new('mesh.hide', 'H', 'PRESS', shift=True)
2134 kmi.properties.unselected = True
2135 kmi = km.keymap_items.new('mesh.reveal', 'H', 'PRESS', alt=True)
2136 kmi = km.keymap_items.new('mesh.normals_make_consistent', 'N', 'PRESS', ctrl=True)
2137 kmi.properties.inside = False
2138 kmi = km.keymap_items.new('mesh.normals_make_consistent', 'N', 'PRESS', shift=True, ctrl=True)
2139 kmi.properties.inside = True
2140 kmi = km.keymap_items.new('view3d.edit_mesh_extrude_move_normal', 'E', 'PRESS')
2141 kmi = km.keymap_items.new('wm.call_menu', 'E', 'PRESS', alt=True)
2142 kmi.properties.name = 'VIEW3D_MT_edit_mesh_extrude'
2143 kmi = km.keymap_items.new('transform.edge_crease', 'E', 'PRESS', shift=True)
2144 kmi = km.keymap_items.new('mesh.spin', 'R', 'PRESS', alt=True)
2145 kmi = km.keymap_items.new('mesh.fill', 'F', 'PRESS', alt=True)
2146 kmi = km.keymap_items.new('mesh.beautify_fill', 'F', 'PRESS', shift=True, alt=True)
2147 kmi = km.keymap_items.new('mesh.quads_convert_to_tris', 'T', 'PRESS', ctrl=True)
2148 kmi.properties.use_beauty = True
2149 kmi = km.keymap_items.new('mesh.quads_convert_to_tris', 'T', 'PRESS', shift=True, ctrl=True)
2150 kmi.properties.use_beauty = False
2151 kmi = km.keymap_items.new('mesh.tris_convert_to_quads', 'J', 'PRESS', alt=True)
2152 kmi = km.keymap_items.new('mesh.rip_move', 'V', 'PRESS')
2153 kmi = km.keymap_items.new('mesh.rip_move_fill', 'V', 'PRESS', alt=True)
2154 kmi = km.keymap_items.new('mesh.merge', 'M', 'PRESS', alt=True)
2155 kmi = km.keymap_items.new('transform.shrink_fatten', 'S', 'PRESS', alt=True)
2156 kmi = km.keymap_items.new('mesh.edge_face_add', 'F', 'PRESS', ctrl=True)
2157 kmi = km.keymap_items.new('mesh.duplicate_move', 'D', 'PRESS', shift=True)
2158 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
2159 kmi.properties.name = 'INFO_MT_mesh_add'
2160 kmi = km.keymap_items.new('mesh.separate', 'P', 'PRESS')
2161 kmi = km.keymap_items.new('mesh.split', 'Y', 'PRESS')
2162 kmi = km.keymap_items.new('mesh.vert_connect', 'J', 'PRESS')
2163 kmi = km.keymap_items.new('transform.vert_slide', 'V', 'PRESS', shift=True)
2164 kmi = km.keymap_items.new('mesh.dupli_extrude_cursor', 'ACTIONMOUSE', 'CLICK', ctrl=True)
2165 kmi.properties.rotate_source = True
2166 kmi = km.keymap_items.new('mesh.dupli_extrude_cursor', 'ACTIONMOUSE', 'CLICK', shift=True, ctrl=True)
2167 kmi.properties.rotate_source = False
2168 kmi = km.keymap_items.new('wm.call_menu', 'X', 'PRESS')
2169 kmi.properties.name = 'VIEW3D_MT_edit_mesh_delete'
2170 kmi = km.keymap_items.new('wm.call_menu', 'DEL', 'PRESS')
2171 kmi.properties.name = 'VIEW3D_MT_edit_mesh_delete'
2172 kmi = km.keymap_items.new('mesh.knife_tool', 'K', 'PRESS')
2173 kmi.properties.use_occlude_geometry = True
2174 kmi.properties.only_selected = False
2175 kmi = km.keymap_items.new('mesh.knife_tool', 'K', 'PRESS', shift=True)
2176 kmi.properties.use_occlude_geometry = False
2177 kmi.properties.only_selected = True
2178 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS', ctrl=True)
2179 kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
2180 kmi.properties.name = 'VIEW3D_MT_edit_mesh_specials'
2181 kmi = km.keymap_items.new('wm.call_menu', 'F', 'PRESS', ctrl=True)
2182 kmi.properties.name = 'VIEW3D_MT_edit_mesh_faces'
2183 kmi = km.keymap_items.new('wm.call_menu', 'E', 'PRESS', ctrl=True)
2184 kmi.properties.name = 'VIEW3D_MT_edit_mesh_edges'
2185 kmi = km.keymap_items.new('wm.call_menu', 'V', 'PRESS', ctrl=True)
2186 kmi.properties.name = 'VIEW3D_MT_edit_mesh_vertices'
2187 kmi = km.keymap_items.new('wm.call_menu', 'H', 'PRESS', ctrl=True)
2188 kmi.properties.name = 'VIEW3D_MT_hook'
2189 kmi = km.keymap_items.new('wm.call_menu', 'U', 'PRESS')
2190 kmi.properties.name = 'VIEW3D_MT_uv_map'
2191 kmi = km.keymap_items.new('wm.call_menu', 'G', 'PRESS', ctrl=True)
2192 kmi.properties.name = 'VIEW3D_MT_vertex_group'
2193 kmi = km.keymap_items.new('object.subdivision_set', 'ZERO', 'PRESS', ctrl=True)
2194 kmi.properties.level = 0
2195 kmi = km.keymap_items.new('object.subdivision_set', 'ONE', 'PRESS', ctrl=True)
2196 kmi.properties.level = 1
2197 kmi = km.keymap_items.new('object.subdivision_set', 'TWO', 'PRESS', ctrl=True)
2198 kmi.properties.level = 2
2199 kmi = km.keymap_items.new('object.subdivision_set', 'THREE', 'PRESS', ctrl=True)
2200 kmi.properties.level = 3
2201 kmi = km.keymap_items.new('object.subdivision_set', 'FOUR', 'PRESS', ctrl=True)
2202 kmi.properties.level = 4
2203 kmi = km.keymap_items.new('object.subdivision_set', 'FIVE', 'PRESS', ctrl=True)
2204 kmi.properties.level = 5
2205 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
2206 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
2207 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
2208 kmi.properties.data_path = 'tool_settings.proportional_edit'
2209 kmi.properties.value_1 = 'DISABLED'
2210 kmi.properties.value_2 = 'ENABLED'
2211 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
2212 kmi.properties.data_path = 'tool_settings.proportional_edit'
2213 kmi.properties.value_1 = 'DISABLED'
2214 kmi.properties.value_2 = 'CONNECTED'
2215 kmi = km.keymap_items.new('wm.context_set_value', 'ONE', 'PRESS')
2216 kmi.properties.data_path = 'tool_settings.mesh_select_mode'
2217 kmi.properties.value = '(True,False,False)'
2218 kmi = km.keymap_items.new('wm.context_set_value', 'TWO', 'PRESS')
2219 kmi.properties.data_path = 'tool_settings.mesh_select_mode'
2220 kmi.properties.value = '(False,True,False)'
2221 kmi = km.keymap_items.new('wm.context_set_value', 'THREE', 'PRESS')
2222 kmi.properties.data_path = 'tool_settings.mesh_select_mode'
2223 kmi.properties.value = '(False,False,True)'
2224
2225 # Map Curve
2226 km = kc.keymaps.new('Curve', space_type='EMPTY', region_type='WINDOW', modal=False)
2227
2228 kmi = km.keymap_items.new('wm.call_menu', 'A', 'PRESS', shift=True)
2229 kmi.properties.name = 'INFO_MT_edit_curve_add'
2230 kmi = km.keymap_items.new('curve.handle_type_set', 'V', 'PRESS')
2231 kmi = km.keymap_items.new('curve.vertex_add', 'LEFTMOUSE', 'CLICK', ctrl=True)
2232 kmi = km.keymap_items.new('curve.select_all', 'LEFTMOUSE', 'CLICK')
2233 kmi.properties.action = 'TOGGLE'
2234 kmi = km.keymap_items.new('curve.select_all', 'I', 'PRESS', ctrl=True)
2235 kmi.properties.action = 'INVERT'
2236 kmi = km.keymap_items.new('curve.select_row', 'R', 'PRESS', shift=True)
2237 kmi = km.keymap_items.new('curve.select_more', 'NUMPAD_PLUS', 'PRESS', ctrl=True)
2238 kmi = km.keymap_items.new('curve.select_less', 'NUMPAD_MINUS', 'PRESS', ctrl=True)
2239 kmi = km.keymap_items.new('curve.select_linked', 'L', 'PRESS', ctrl=True)
2240 kmi = km.keymap_items.new('curve.select_linked_pick', 'L', 'PRESS')
2241 kmi.properties.deselect = False
2242 kmi = km.keymap_items.new('curve.select_linked_pick', 'L', 'PRESS', shift=True)
2243 kmi.properties.deselect = True
2244 kmi = km.keymap_items.new('curve.separate', 'P', 'PRESS')
2245 kmi = km.keymap_items.new('curve.extrude_move', 'E', 'PRESS')
2246 kmi = km.keymap_items.new('curve.duplicate_move', 'D', 'PRESS', shift=True)
2247 kmi = km.keymap_items.new('curve.make_segment', 'F', 'PRESS', ctrl=True)
2248 kmi = km.keymap_items.new('curve.cyclic_toggle', 'C', 'PRESS', alt=True)
2249 kmi = km.keymap_items.new('curve.delete', 'X', 'PRESS')
2250 kmi = km.keymap_items.new('curve.delete', 'DEL', 'PRESS')
2251 kmi = km.keymap_items.new('curve.tilt_clear', 'T', 'PRESS', alt=True)
2252 kmi = km.keymap_items.new('transform.tilt', 'T', 'PRESS', ctrl=True)
2253 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', alt=True)
2254 kmi.properties.mode = 'CURVE_SHRINKFATTEN'
2255 kmi = km.keymap_items.new('curve.reveal', 'H', 'PRESS', alt=True)
2256 kmi = km.keymap_items.new('curve.hide', 'H', 'PRESS')
2257 kmi.properties.unselected = False
2258 kmi = km.keymap_items.new('curve.hide', 'H', 'PRESS', shift=True)
2259 kmi.properties.unselected = True
2260 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS', ctrl=True)
2261 kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
2262 kmi.properties.name = 'VIEW3D_MT_edit_curve_specials'
2263 kmi = km.keymap_items.new('wm.call_menu', 'H', 'PRESS', ctrl=True)
2264 kmi.properties.name = 'VIEW3D_MT_hook'
2265 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
2266 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
2267 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
2268 kmi.properties.data_path = 'tool_settings.proportional_edit'
2269 kmi.properties.value_1 = 'DISABLED'
2270 kmi.properties.value_2 = 'ENABLED'
2271 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
2272 kmi.properties.data_path = 'tool_settings.proportional_edit'
2273 kmi.properties.value_1 = 'DISABLED'
2274 kmi.properties.value_2 = 'CONNECTED'
2275
2276 # Map Armature
2277 km = kc.keymaps.new('Armature', space_type='EMPTY', region_type='WINDOW', modal=False)
2278
2279 kmi = km.keymap_items.new('sketch.delete', 'X', 'PRESS')
2280 kmi = km.keymap_items.new('sketch.delete', 'DEL', 'PRESS')
2281 kmi = km.keymap_items.new('sketch.finish_stroke', 'RIGHTMOUSE', 'PRESS')
2282 kmi = km.keymap_items.new('sketch.cancel_stroke', 'ESC', 'PRESS')
2283 kmi = km.keymap_items.new('sketch.gesture', 'LEFTMOUSE', 'PRESS', shift=True)
2284 kmi = km.keymap_items.new('sketch.draw_stroke', 'LEFTMOUSE', 'PRESS')
2285 kmi = km.keymap_items.new('sketch.draw_stroke', 'LEFTMOUSE', 'PRESS', ctrl=True)
2286 kmi.properties.snap = True
2287 kmi = km.keymap_items.new('sketch.draw_preview', 'MOUSEMOVE', 'ANY')
2288 kmi = km.keymap_items.new('sketch.draw_preview', 'MOUSEMOVE', 'ANY', ctrl=True)
2289 kmi.properties.snap = True
2290 kmi = km.keymap_items.new('armature.hide', 'H', 'PRESS')
2291 kmi.properties.unselected = False
2292 kmi = km.keymap_items.new('armature.hide', 'H', 'PRESS', shift=True)
2293 kmi.properties.unselected = True
2294 kmi = km.keymap_items.new('armature.reveal', 'H', 'PRESS', alt=True)
2295 kmi = km.keymap_items.new('armature.align', 'A', 'PRESS', ctrl=True, alt=True)
2296 kmi = km.keymap_items.new('armature.calculate_roll', 'N', 'PRESS', ctrl=True)
2297 kmi = km.keymap_items.new('armature.switch_direction', 'F', 'PRESS', alt=True)
2298 kmi = km.keymap_items.new('armature.bone_primitive_add', 'A', 'PRESS', shift=True)
2299 kmi = km.keymap_items.new('armature.parent_set', 'P', 'PRESS', ctrl=True)
2300 kmi = km.keymap_items.new('armature.parent_clear', 'P', 'PRESS', alt=True)
2301 kmi = km.keymap_items.new('armature.select_all', 'LEFTMOUSE', 'CLICK')
2302 kmi.properties.action = 'TOGGLE'
2303 kmi = km.keymap_items.new('armature.select_all', 'I', 'PRESS', ctrl=True)
2304 kmi.properties.action = 'INVERT'
2305 kmi = km.keymap_items.new('armature.select_hierarchy', 'LEFT_BRACKET', 'PRESS')
2306 kmi.properties.direction = 'PARENT'
2307 kmi.properties.extend = False
2308 kmi = km.keymap_items.new('armature.select_hierarchy', 'LEFT_BRACKET', 'PRESS', shift=True)
2309 kmi.properties.direction = 'PARENT'
2310 kmi.properties.extend = True
2311 kmi = km.keymap_items.new('armature.select_hierarchy', 'RIGHT_BRACKET', 'PRESS')
2312 kmi.properties.direction = 'CHILD'
2313 kmi.properties.extend = False
2314 kmi = km.keymap_items.new('armature.select_hierarchy', 'RIGHT_BRACKET', 'PRESS', shift=True)
2315 kmi.properties.direction = 'CHILD'
2316 kmi.properties.extend = True
2317 kmi = km.keymap_items.new('armature.select_similar', 'G', 'PRESS', shift=True)
2318 kmi = km.keymap_items.new('armature.select_linked', 'L', 'PRESS')
2319 kmi = km.keymap_items.new('armature.delete', 'X', 'PRESS')
2320 kmi = km.keymap_items.new('armature.delete', 'DEL', 'PRESS')
2321 kmi = km.keymap_items.new('armature.duplicate_move', 'D', 'PRESS', shift=True)
2322 kmi = km.keymap_items.new('armature.extrude_move', 'E', 'PRESS')
2323 kmi = km.keymap_items.new('armature.extrude_forked', 'E', 'PRESS', shift=True)
2324 kmi = km.keymap_items.new('armature.click_extrude', 'LEFTMOUSE', 'CLICK', ctrl=True)
2325 kmi = km.keymap_items.new('armature.fill', 'F', 'PRESS', ctrl=True)
2326 kmi = km.keymap_items.new('armature.merge', 'M', 'PRESS', alt=True)
2327 kmi = km.keymap_items.new('armature.separate', 'P', 'PRESS', ctrl=True, alt=True)
2328 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', shift=True)
2329 kmi.properties.name = 'VIEW3D_MT_bone_options_toggle'
2330 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', shift=True, ctrl=True)
2331 kmi.properties.name = 'VIEW3D_MT_bone_options_enable'
2332 kmi = km.keymap_items.new('wm.call_menu', 'W', 'PRESS', alt=True)
2333 kmi.properties.name = 'VIEW3D_MT_bone_options_disable'
2334 kmi = km.keymap_items.new('armature.layers_show_all', 'ACCENT_GRAVE', 'PRESS', ctrl=True)
2335 kmi = km.keymap_items.new('armature.armature_layers', 'M', 'PRESS', shift=True)
2336 kmi = km.keymap_items.new('armature.bone_layers', 'M', 'PRESS')
2337 kmi = km.keymap_items.new('transform.transform', 'S', 'PRESS', ctrl=True, alt=True)
2338 kmi.properties.mode = 'BONE_SIZE'
2339 kmi = km.keymap_items.new('transform.transform', 'R', 'PRESS', ctrl=True)
2340 kmi.properties.mode = 'BONE_ROLL'
2341 kmi = km.keymap_items.new('wm.call_menu', 'Q', 'PRESS')
2342 kmi.properties.name = 'VIEW3D_MT_armature_specials'
2343
2344 # Map Metaball
2345 km = kc.keymaps.new('Metaball', space_type='EMPTY', region_type='WINDOW', modal=False)
2346
2347 kmi = km.keymap_items.new('object.metaball_add', 'A', 'PRESS', shift=True)
2348 kmi = km.keymap_items.new('mball.reveal_metaelems', 'H', 'PRESS', alt=True)
2349 kmi = km.keymap_items.new('mball.hide_metaelems', 'H', 'PRESS')
2350 kmi.properties.unselected = False
2351 kmi = km.keymap_items.new('mball.hide_metaelems', 'H', 'PRESS', shift=True)
2352 kmi.properties.unselected = True
2353 kmi = km.keymap_items.new('mball.delete_metaelems', 'X', 'PRESS')
2354 kmi = km.keymap_items.new('mball.delete_metaelems', 'DEL', 'PRESS')
2355 kmi = km.keymap_items.new('mball.duplicate_metaelems', 'D', 'PRESS', shift=True)
2356 kmi = km.keymap_items.new('mball.select_all', 'LEFTMOUSE', 'CLICK')
2357 kmi.properties.action = 'TOGGLE'
2358 kmi = km.keymap_items.new('mball.select_all', 'I', 'PRESS', ctrl=True)
2359 kmi.properties.action = 'INVERT'
2360 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
2361 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
2362 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
2363 kmi.properties.data_path = 'tool_settings.proportional_edit'
2364 kmi.properties.value_1 = 'DISABLED'
2365 kmi.properties.value_2 = 'ENABLED'
2366 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS', alt=True)
2367 kmi.properties.data_path = 'tool_settings.proportional_edit'
2368 kmi.properties.value_1 = 'DISABLED'
2369 kmi.properties.value_2 = 'CONNECTED'
2370
2371 # Map Lattice
2372 km = kc.keymaps.new('Lattice', space_type='EMPTY', region_type='WINDOW', modal=False)
2373
2374 kmi = km.keymap_items.new('lattice.select_all', 'LEFTMOUSE', 'CLICK')
2375 kmi.properties.action = 'TOGGLE'
2376 kmi = km.keymap_items.new('lattice.select_all', 'I', 'PRESS', ctrl=True)
2377 kmi.properties.action = 'INVERT'
2378 kmi = km.keymap_items.new('object.vertex_parent_set', 'P', 'PRESS', ctrl=True)
2379 kmi = km.keymap_items.new('lattice.flip', 'F', 'PRESS', ctrl=True)
2380 kmi = km.keymap_items.new('wm.call_menu', 'H', 'PRESS', ctrl=True)
2381 kmi.properties.name = 'VIEW3D_MT_hook'
2382 kmi = km.keymap_items.new('wm.context_cycle_enum', 'O', 'PRESS', shift=True)
2383 kmi.properties.data_path = 'tool_settings.proportional_edit_falloff'
2384 kmi = km.keymap_items.new('wm.context_toggle_enum', 'O', 'PRESS')
2385 kmi.properties.data_path = 'tool_settings.proportional_edit'
2386 kmi.properties.value_1 = 'DISABLED'
2387 kmi.properties.value_2 = 'ENABLED'
2388
2389 # Map Transform Modal Map
2390 km = kc.keymaps.new('Transform Modal Map', space_type='EMPTY', region_type='WINDOW', modal=True)
2391
2392 kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'PRESS', any=True)
2393 kmi = km.keymap_items.new_modal('CONFIRM', 'LEFTMOUSE', 'RELEASE', any=True)
2394 kmi = km.keymap_items.new_modal('CONFIRM', 'RET', 'PRESS', any=True)
2395 kmi = km.keymap_items.new_modal('CONFIRM', 'NUMPAD_ENTER', 'PRESS', any=True)
2396 kmi = km.keymap_items.new_modal('TRANSLATE', 'W', 'PRESS')
2397 kmi = km.keymap_items.new_modal('ROTATE', 'E', 'PRESS')
2398 kmi = km.keymap_items.new_modal('RESIZE', 'R', 'PRESS')
2399 kmi = km.keymap_items.new_modal('SNAP_TOGGLE', 'TAB', 'PRESS', shift=True)
2400 kmi = km.keymap_items.new_modal('SNAP_INV_ON', 'LEFT_CTRL', 'PRESS', any=True)
2401 kmi = km.keymap_items.new_modal('SNAP_INV_OFF', 'LEFT_CTRL', 'RELEASE', any=True)
2402 kmi = km.keymap_items.new_modal('SNAP_INV_ON', 'RIGHT_CTRL', 'PRESS', any=True)
2403 kmi = km.keymap_items.new_modal('SNAP_INV_OFF', 'RIGHT_CTRL', 'RELEASE', any=True)
2404 kmi = km.keymap_items.new_modal('ADD_SNAP', 'A', 'PRESS')
2405 kmi = km.keymap_items.new_modal('REMOVE_SNAP', 'A', 'PRESS', alt=True)
2406 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_UP', 'PAGE_UP', 'PRESS')
2407 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_DOWN', 'PAGE_DOWN', 'PRESS')
2408 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_UP', 'WHEELDOWNMOUSE', 'PRESS')
2409 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE_DOWN', 'WHEELUPMOUSE', 'PRESS')
2410 kmi = km.keymap_items.new_modal('PROPORTIONAL_SIZE', 'TRACKPADPAN', 'ANY')
2411 kmi = km.keymap_items.new_modal('EDGESLIDE_EDGE_NEXT', 'WHEELDOWNMOUSE', 'PRESS', alt=True)
2412 kmi = km.keymap_items.new_modal('EDGESLIDE_PREV_NEXT', 'WHEELUPMOUSE', 'PRESS', alt=True)
2413 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_UP', 'PAGE_UP', 'PRESS', shift=True)
2414 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_DOWN', 'PAGE_DOWN', 'PRESS', shift=True)
2415 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_UP', 'WHEELDOWNMOUSE', 'PRESS', shift=True)
2416 kmi = km.keymap_items.new_modal('AUTOIK_CHAIN_LEN_DOWN', 'WHEELUPMOUSE', 'PRESS', shift=True)
2417
2418 # Map View3D Gesture Circle
2419 km = kc.keymaps.new('View3D Gesture Circle', space_type='EMPTY', region_type='WINDOW', modal=True)
2420
2421 kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'PRESS', any=True)
2422 kmi = km.keymap_items.new_modal('CANCEL', 'RIGHTMOUSE', 'ANY', any=True)
2423 kmi = km.keymap_items.new_modal('CONFIRM', 'RET', 'PRESS', any=True)
2424 kmi = km.keymap_items.new_modal('CONFIRM', 'NUMPAD_ENTER', 'PRESS')
2425 kmi = km.keymap_items.new_modal('SELECT', 'LEFTMOUSE', 'PRESS')
2426 kmi = km.keymap_items.new_modal('DESELECT', 'MIDDLEMOUSE', 'PRESS')
2427 kmi = km.keymap_items.new_modal('NOP', 'MIDDLEMOUSE', 'RELEASE')
2428 kmi = km.keymap_items.new_modal('NOP', 'LEFTMOUSE', 'RELEASE')
2429 kmi = km.keymap_items.new_modal('SUBTRACT', 'WHEELUPMOUSE', 'PRESS')
2430 kmi = km.keymap_items.new_modal('SUBTRACT', 'NUMPAD_MINUS', 'PRESS')
2431 kmi = km.keymap_items.new_modal('ADD', 'WHEELDOWNMOUSE', 'PRESS')
2432 kmi = km.keymap_items.new_modal('ADD', 'NUMPAD_PLUS', 'PRESS')
2433 kmi = km.keymap_items.new_modal('SIZE', 'TRACKPADPAN', 'ANY')
2434
2435 # Map Gesture Border
2436 km = kc.keymaps.new('Gesture Border', space_type='EMPTY', region_type='WINDOW', modal=True)
2437
2438 kmi = km.keymap_items.new_modal('CANCEL', 'ESC', 'PRESS', any=True)
2439 kmi = km.keymap_items.new_modal('CANCEL', 'RIGHTMOUSE', 'PRESS', any=True)
2440 kmi = km.keymap_items.new_modal('BEGIN', 'LEFTMOUSE', 'PRESS')
2441 kmi = km.keymap_items.new_modal('SELECT', 'LEFTMOUSE', 'RELEASE', any=True)
2442 kmi = km.keymap_items.new_modal('SELECT', 'RIGHTMOUSE', 'RELEASE', any=True)
2443 kmi = km.keymap_items.new_modal('BEGIN', 'MIDDLEMOUSE', 'PRESS')
2444 kmi = km.keymap_items.new_modal('DESELECT', 'MIDDLEMOUSE', 'RELEASE')
2445