-
- Downloads
Compositor: Implement shortcuts for Viewer nodes
Artists often want to quickly switch back and forth between two or more nodes while compositing. This patch implements two operators `NODE_OT_viewer_shortcut_set` and `NODE_OT_viewer_shortcut_get` that allow users to map a viewer node to a shortcut. For example, pressing `cltr+1` while a node is selected, assigns that node to the shortcut `1`, creates a viewer node if it has none attached and sets that viewer node to active. Pressing `1` will set the active node with shortcut `1` to active. Shortcuts are saved in DNA to preserve them after saving/loading blend files. Limitations: - Only compositor node tree is supported, because shading editor has no viewer node and geometry nodes viewer works differently. Pull Request: https://projects.blender.org/blender/blender/pulls/123641
Showing
- scripts/presets/keyconfig/keymap_data/blender_default.py 28 additions, 0 deletionsscripts/presets/keyconfig/keymap_data/blender_default.py
- scripts/startup/bl_operators/node.py 101 additions, 0 deletionsscripts/startup/bl_operators/node.py
- source/blender/blenkernel/intern/node.cc 6 additions, 0 deletionssource/blender/blenkernel/intern/node.cc
- source/blender/blenloader/intern/versioning_400.cc 20 additions, 0 deletionssource/blender/blenloader/intern/versioning_400.cc
- source/blender/editors/space_node/node_draw.cc 49 additions, 0 deletionssource/blender/editors/space_node/node_draw.cc
- source/blender/editors/space_node/node_relationships.cc 2 additions, 2 deletionssource/blender/editors/space_node/node_relationships.cc
- source/blender/makesdna/DNA_node_types.h 15 additions, 0 deletionssource/blender/makesdna/DNA_node_types.h
- source/blender/makesrna/intern/rna_nodetree.cc 22 additions, 0 deletionssource/blender/makesrna/intern/rna_nodetree.cc
- source/blender/nodes/composite/nodes/node_composite_viewer.cc 1 addition, 0 deletions...ce/blender/nodes/composite/nodes/node_composite_viewer.cc
Loading