Add "Follow Selection" in the 3D editor by using Center Selection twice #99499
+58
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When pressing the Focus Selection shortcut twice, you will begin following the current selection. This also applies to selection changes.
The effect is undone by pressing the Focus Selection shortcut another time, using the Focus Origin shortcut, or by panning/using freelook on the 3D editor camera. (Orbiting or switching between perspective and orthogonal does not undo the effect.)
Some use cases include:
Testing project: test_follow_selection.zip
Preview
Following the selection will also follow other selected nodes, so you can iterate quickly on different nodes that may be spread far away from each other:
follow_selection_changing_node_selection.mp4
While following the selection, you can manipulate it as usual, e.g. with Blender-style manipulation shortcuts:
follow_selection_blender_shortcuts.mp4
This also pairs well with grid snapping and Blender-style manipulation by entering units on the keyboard:
follow_selection_grid_snapping.mp4
Lastly, it works with keyboard-based camera manipulation too:
follow_selection_keyboard_navigation.mp4