-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Follow Selection" in the 3D editor by using Center Selection twice #99499
base: master
Are you sure you want to change the base?
Conversation
ed0f536
to
c9aa1f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I implemented a similar but more minimal function at my fork. I like the indicator in the corner.
Besides the comment above, looks good.
2024-11-22.12-04-38.mp4
c9aa1f9
to
056b399
Compare
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.)
On second thought, I realized these items don't change your position, but only your rotation relative to the object (similar to orbiting or using the numpad 2/4/6/8 keyboard shortcuts). I've made them no longer exit following mode. (This allows you to reorient the camera during a drag operation, which can be handy...) However, your comment made me realize that Focus Origin wasn't exiting follow mode if the menu option was used instead of the shortcut, so I fixed that. |
056b399
to
8d1c55a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retested based off the comment above. Rational makes sense. Function aborts on focus origin, but not changing views.
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