Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/presets/keyconfig/keymap_data/blender_default.py
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,374 Lines • ▼ Show 20 Lines | def km_grease_pencil_stroke_weight_mode(_params): | ||||
| ]) | ]) | ||||
| return keymap | return keymap | ||||
| def km_face_mask(params): | def km_face_mask(params): | ||||
| items = [] | items = [] | ||||
| keymap = ( | keymap = ( | ||||
| "Face Mask", | "Paint Face Mask (Weight, Vertex, Texture)", | ||||
| {"space_type": 'EMPTY', "region_type": 'WINDOW'}, | {"space_type": 'EMPTY', "region_type": 'WINDOW'}, | ||||
| {"items": items}, | {"items": items}, | ||||
| ) | ) | ||||
| items.extend([ | items.extend([ | ||||
| *_template_items_select_actions(params, "paint.face_select_all"), | *_template_items_select_actions(params, "paint.face_select_all"), | ||||
| ("paint.face_select_hide", {"type": 'H', "value": 'PRESS'}, | ("paint.face_select_hide", {"type": 'H', "value": 'PRESS'}, | ||||
| {"properties": [("unselected", False)]}), | {"properties": [("unselected", False)]}), | ||||
| ("paint.face_select_hide", {"type": 'H', "value": 'PRESS', "shift": True}, | ("paint.face_select_hide", {"type": 'H', "value": 'PRESS', "shift": True}, | ||||
| {"properties": [("unselected", True)]}), | {"properties": [("unselected", True)]}), | ||||
| ("paint.face_select_reveal", {"type": 'H', "value": 'PRESS', "alt": True}, None), | ("paint.face_select_reveal", {"type": 'H', "value": 'PRESS', "alt": True}, None), | ||||
| ("paint.face_select_linked", {"type": 'L', "value": 'PRESS', "ctrl": True}, None), | ("paint.face_select_linked", {"type": 'L', "value": 'PRESS', "ctrl": True}, None), | ||||
| ("paint.face_select_linked_pick", {"type": 'L', "value": 'PRESS'}, | ("paint.face_select_linked_pick", {"type": 'L', "value": 'PRESS'}, | ||||
| {"properties": [("deselect", False)]}), | {"properties": [("deselect", False)]}), | ||||
| ("paint.face_select_linked_pick", {"type": 'L', "value": 'PRESS', "shift": True}, | ("paint.face_select_linked_pick", {"type": 'L', "value": 'PRESS', "shift": True}, | ||||
| {"properties": [("deselect", True)]}), | {"properties": [("deselect", True)]}), | ||||
| ]) | ]) | ||||
| return keymap | return keymap | ||||
| def km_weight_paint_vertex_selection(params): | def km_weight_paint_vertex_selection(params): | ||||
| items = [] | items = [] | ||||
| keymap = ( | keymap = ( | ||||
| "Weight Paint Vertex Selection", | "Paint Vertex Selection (Weight, Vertex)", | ||||
| {"space_type": 'EMPTY', "region_type": 'WINDOW'}, | {"space_type": 'EMPTY', "region_type": 'WINDOW'}, | ||||
| {"items": items}, | {"items": items}, | ||||
| ) | ) | ||||
| items.extend([ | items.extend([ | ||||
| *_template_items_select_actions(params, "paint.vert_select_all"), | *_template_items_select_actions(params, "paint.vert_select_all"), | ||||
| ("view3d.select_box", {"type": 'B', "value": 'PRESS'}, None), | ("view3d.select_box", {"type": 'B', "value": 'PRESS'}, None), | ||||
| ("view3d.select_lasso", {"type": params.action_tweak, "value": 'ANY', "ctrl": True}, | ("view3d.select_lasso", {"type": params.action_tweak, "value": 'ANY', "ctrl": True}, | ||||
| ▲ Show 20 Lines • Show All 2,965 Lines • Show Last 20 Lines | |||||