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,375 Lines • ▼ Show 20 Lines | def km_grease_pencil_stroke_paint_mode(params): | ||||
| items.extend([ | items.extend([ | ||||
| # Brush strength | # Brush strength | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_paint.brush.gpencil_settings.pen_strength')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_paint.brush.gpencil_settings.pen_strength')]}), | ||||
| # Brush size | # Brush size | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_paint.brush.size')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_paint.brush.size')]}), | ||||
| # Increase/Decrease brush size | |||||
| ("brush.scale_size", {"type": 'LEFT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 0.9)]}), | |||||
| ("brush.scale_size", {"type": 'RIGHT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 1.0 / 0.9)]}), | |||||
| # Draw delete menu | # Draw delete menu | ||||
| op_menu("GPENCIL_MT_gpencil_draw_delete", {"type": 'X', "value": 'PRESS'}), | op_menu("GPENCIL_MT_gpencil_draw_delete", {"type": 'X', "value": 'PRESS'}), | ||||
| # Animation menu | # Animation menu | ||||
| ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ||||
| # Interpolation | # Interpolation | ||||
| ("gpencil.interpolate", {"type": 'E', "value": 'PRESS', "ctrl": True}, None), | ("gpencil.interpolate", {"type": 'E', "value": 'PRESS', "ctrl": True}, None), | ||||
| ▲ Show 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | items.extend([ | ||||
| *_grease_pencil_selection(params), | *_grease_pencil_selection(params), | ||||
| # Brush strength | # Brush strength | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt_paint.brush.strength')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt_paint.brush.strength')]}), | ||||
| # Brush size | # Brush size | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt_paint.brush.size')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_sculpt_paint.brush.size')]}), | ||||
| # Increase/Decrease brush size | |||||
| ("brush.scale_size", {"type": 'LEFT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 0.9)]}), | |||||
| ("brush.scale_size", {"type": 'RIGHT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 1.0 / 0.9)]}), | |||||
| # Copy | # Copy | ||||
| ("gpencil.copy", {"type": 'C', "value": 'PRESS', "ctrl": True}, None), | ("gpencil.copy", {"type": 'C', "value": 'PRESS', "ctrl": True}, None), | ||||
| # Display | # Display | ||||
| *_grease_pencil_display(), | *_grease_pencil_display(), | ||||
| # Keyframe menu | # Keyframe menu | ||||
| ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ||||
| ▲ Show 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | def km_grease_pencil_stroke_weight_mode(params): | ||||
| items.extend([ | items.extend([ | ||||
| # Brush strength | # Brush strength | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_weight_paint.brush.strength')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_weight_paint.brush.strength')]}), | ||||
| # Brush size | # Brush size | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_weight_paint.brush.size')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_weight_paint.brush.size')]}), | ||||
| # Increase/Decrease brush size | |||||
| ("brush.scale_size", {"type": 'LEFT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 0.9)]}), | |||||
| ("brush.scale_size", {"type": 'RIGHT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 1.0 / 0.9)]}), | |||||
| # Display | # Display | ||||
| *_grease_pencil_display(), | *_grease_pencil_display(), | ||||
| # Keyframe menu | # Keyframe menu | ||||
| ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ||||
| # Active layer | # Active layer | ||||
| op_menu("GPENCIL_MT_layer_active", {"type": 'Y', "value": 'PRESS'}), | op_menu("GPENCIL_MT_layer_active", {"type": 'Y', "value": 'PRESS'}), | ||||
| ▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | items.extend([ | ||||
| # Selection | # Selection | ||||
| *_grease_pencil_selection(params), | *_grease_pencil_selection(params), | ||||
| # Brush strength | # Brush strength | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS', "shift": True}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_vertex_paint.brush.gpencil_settings.pen_strength')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_vertex_paint.brush.gpencil_settings.pen_strength')]}), | ||||
| # Brush size | # Brush size | ||||
| ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ("wm.radial_control", {"type": 'F', "value": 'PRESS'}, | ||||
| {"properties": [("data_path_primary", 'tool_settings.gpencil_vertex_paint.brush.size')]}), | {"properties": [("data_path_primary", 'tool_settings.gpencil_vertex_paint.brush.size')]}), | ||||
| # Increase/Decrease brush size | |||||
| ("brush.scale_size", {"type": 'LEFT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 0.9)]}), | |||||
| ("brush.scale_size", {"type": 'RIGHT_BRACKET', "value": 'PRESS', "repeat": True}, | |||||
| {"properties": [("scalar", 1.0 / 0.9)]}), | |||||
| # Display | # Display | ||||
| *_grease_pencil_display(), | *_grease_pencil_display(), | ||||
| # Tools | # Tools | ||||
| op_tool("builtin_brush.Draw", {"type": 'D', "value": 'PRESS'}), | op_tool("builtin_brush.Draw", {"type": 'D', "value": 'PRESS'}), | ||||
| # Keyframe menu | # Keyframe menu | ||||
| ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ("gpencil.blank_frame_add", {"type": 'I', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'X', "value": 'PRESS', "shift": True}, None), | ||||
| ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ("gpencil.active_frames_delete_all", {"type": 'DEL', "value": 'PRESS', "shift": True}, None), | ||||
| ▲ Show 20 Lines • Show All 3,459 Lines • Show Last 20 Lines | |||||