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