UI: Drag Select Edge and Face Keymap Configuration #109309

Open
Lukas Sneyd wants to merge 25 commits from lcas/blender:drag-select-edge-face-keymap-options into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
First-time contributor

Ability to configure selection details in the keymap.


It is limited and unclear how blender selects edges and faces with box, circle, and lasso. I added some more ways to do this. Keymap for each tool has a dropdown with options for edges and faces.

image

Can follow along at 0:42 of this youtube video about my custom build #109150

Blender selects edges in a hybrid fashion with box and lasso. If the box or lasso contains at least one edge with both of its verts inside, you will only select edges that are like that. If you are touching some edges, but none of them have both of their verts inside, you will select any edge that is touched by the box or lasso. With circle you select any edge that is touched by the circle regardless of other factors. With this, the keymap now has these options for selecting edges:

Default does what Blender does, and circle doesn't have this since it does Touch by default
Touch will select anything the selection area touches
Enclose will select edges that have both verts inside the selection area

Blender selects faces in a hybrid fashion with box, lasso, and circle. If X-Ray is off, you select any faces you touch, and if X-Ray is on you select them by their center. With this, the keymap now has these options for selecting faces:

Default does what Blender does
Touch will select anything the selection area touches
Enclose will select a face if all their verts are inside the selection area
Center will select a face if the selection area touches their center

Touch faces in xray is from the work kio did on select through https://archive.blender.org/developer/D6322

Issues
At 8:32 in the video above

Intersect doesn't work with Touch or Enclose face in X-Ray. Don't know why, looked at it a few times, doesn't make sense to me. It will fallback to a Center select instead. Figured it's better to do something close to what is expected rather than nothing.

Enclose face works in near select, but it's hard to use if user can't see all the verts of a face. If there is a visible face, but some of it's verts that would otherwise be on screen are behind something else, the selection bitmap thinks they don't exist. This means that it also thinks that part of these faces are outside the selection area, even though they aren't, and they get excluded from selection. One thing user can try is avoiding the selection bitmap entirely, but this requires the use of Viewport Facing Select #109357 and Select Through #109319. Turn on Select Through, and set Viewport Facing Select to work in X-Ray, Verts of Front Face, Edges of Front Face, and Front Faces. Threshold at zero is best in my opinion. Now they get a decent result, but have to deal with the baggage that comes with Select Through and VFS. They don't always get everything they can see, at least when encountering some weird faces that have triangles pointing in very different directions. Also, they're going to select like X-Ray so if there's something that is facing the viewport, but they don't have line of sight, they're going to select it without actually seeing it.

Ability to configure selection details in the keymap. --- It is limited and unclear how blender selects edges and faces with box, circle, and lasso. I added some more ways to do this. Keymap for each tool has a dropdown with options for edges and faces. ![image](/attachments/7f41f258-6bfd-4dc7-ade5-3fbc32065e54) Can follow along at 0:42 of this [youtube video](https://www.youtube.com/watch?v=HVrFCOa7RO8&t=42s) about my [custom build](https://blenderartists.org/t/blender-with-better-selection-and-more/1471220) #109150 Blender selects edges in a hybrid fashion with box and lasso. If the box or lasso contains at least one edge with both of its verts inside, you will only select edges that are like that. If you are touching some edges, but none of them have both of their verts inside, you will select any edge that is touched by the box or lasso. With circle you select any edge that is touched by the circle regardless of other factors. With this, the keymap now has these options for selecting edges: Default does what Blender does, and circle doesn't have this since it does Touch by default Touch will select anything the selection area touches Enclose will select edges that have both verts inside the selection area Blender selects faces in a hybrid fashion with box, lasso, and circle. If X-Ray is off, you select any faces you touch, and if X-Ray is on you select them by their center. With this, the keymap now has these options for selecting faces: Default does what Blender does Touch will select anything the selection area touches Enclose will select a face if all their verts are inside the selection area Center will select a face if the selection area touches their center Touch faces in xray is from the work kio did on select through https://archive.blender.org/developer/D6322 **Issues** At 8:32 in the [video above](https://www.youtube.com/watch?v=HVrFCOa7RO8&t=512s) Intersect doesn't work with Touch or Enclose face in X-Ray. Don't know why, looked at it a few times, doesn't make sense to me. It will fallback to a Center select instead. Figured it's better to do something close to what is expected rather than nothing. Enclose face works in near select, but it's hard to use if user can't see all the verts of a face. If there is a visible face, but some of it's verts that would otherwise be on screen are behind something else, the selection bitmap thinks they don't exist. This means that it also thinks that part of these faces are outside the selection area, even though they aren't, and they get excluded from selection. One thing user can try is avoiding the selection bitmap entirely, but this requires the use of Viewport Facing Select #109357 and Select Through #109319. Turn on Select Through, and set Viewport Facing Select to work in X-Ray, Verts of Front Face, Edges of Front Face, and Front Faces. Threshold at zero is best in my opinion. Now they get a decent result, but have to deal with the baggage that comes with Select Through and VFS. They don't always get everything they can see, at least when encountering some weird faces that have triangles pointing in very different directions. Also, they're going to select like X-Ray so if there's something that is facing the viewport, but they don't have line of sight, they're going to select it without actually seeing it.
Lukas Sneyd added 1 commit 2023-06-23 21:56:58 +02:00
Lukas Sneyd added 1 commit 2023-06-23 22:00:53 +02:00
Lukas Sneyd added 1 commit 2023-07-05 10:55:02 +02:00
Lukas Sneyd added 1 commit 2023-07-05 11:08:05 +02:00
Lukas Sneyd added 1 commit 2023-07-05 11:12:18 +02:00
31705b7d1c Revert "add scene-types back"
This reverts commit 5f91071cc9.

didn't work
Lukas Sneyd added 1 commit 2023-07-05 11:55:32 +02:00
Lukas Sneyd added 1 commit 2023-07-05 12:09:13 +02:00
21e30f66d1 Revert "try to add scene types in again"
This reverts commit 1c3be7f077.

still not working
Lukas Sneyd added 1 commit 2023-07-05 12:10:14 +02:00
Lukas Sneyd added 1 commit 2023-07-05 12:13:22 +02:00
Lukas Sneyd added 1 commit 2023-07-05 12:42:54 +02:00
Lukas Sneyd added 1 commit 2023-07-11 08:48:03 +02:00
Lukas Sneyd added 1 commit 2023-07-15 23:44:29 +02:00
Lukas Sneyd changed title from WIP: Drag Select Edge and Face Keymap Options to Drag Select Edge and Face Keymap Options 2023-07-15 23:46:43 +02:00
Author
First-time contributor

I was told to tag you guys. I don't know what I'm supposed to do, but I will try this. Thanks for your time
@ideasman42 @harley

I was told to tag you guys. I don't know what I'm supposed to do, but I will try this. Thanks for your time @ideasman42 @harley
Harley Acheson changed title from Drag Select Edge and Face Keymap Options to UI: Drag Select Edge and Face Keymap Configuration 2023-07-17 22:37:36 +02:00
Harley Acheson added this to the User Interface project 2023-07-17 22:41:44 +02:00
Lukas Sneyd added 1 commit 2023-07-23 15:55:57 +02:00
Lukas Sneyd added 1 commit 2023-07-23 15:57:00 +02:00
Lukas Sneyd added 1 commit 2023-07-23 16:26:40 +02:00
Lukas Sneyd added 1 commit 2023-08-01 07:55:37 +02:00
Lukas Sneyd added 1 commit 2023-08-01 08:00:18 +02:00
Lukas Sneyd added 1 commit 2023-08-01 08:03:32 +02:00
Lukas Sneyd added 1 commit 2023-08-01 08:04:40 +02:00
Lukas Sneyd added 1 commit 2023-08-01 10:07:29 +02:00
Lukas Sneyd added 1 commit 2023-08-06 08:36:52 +02:00
Lukas Sneyd added 1 commit 2023-08-06 08:37:27 +02:00
Lukas Sneyd added 1 commit 2023-08-06 08:56:06 +02:00
Lukas Sneyd added 1 commit 2023-08-13 10:03:36 +02:00
Lukas Sneyd added 1 commit 2023-08-21 06:29:36 +02:00
This pull request has changes conflicting with the target branch.
  • source/blender/blenlib/BLI_lasso_2d.h
  • source/blender/blenlib/intern/lasso_2d.c
  • source/blender/editors/curves/intern/curves_selection.cc
  • source/blender/editors/include/ED_view3d.hh
  • source/blender/editors/space_view3d/view3d_iterators.cc
  • source/blender/editors/space_view3d/view3d_select.cc
  • source/blender/editors/uvedit/uvedit_select.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u drag-select-edge-face-keymap-options:lcas-drag-select-edge-face-keymap-options
git checkout lcas-drag-select-edge-face-keymap-options
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#109309
No description provided.