Cirno
(Cirno)
1

Addon that adds new box, circle and lasso selection tools that can automatically toggle x-ray shading, perform selection through with or without x-ray shading, select objects either inside or overlapping a selection area, change selection settings by changing drag direction of selection.
Tools can be accessed from blender toolbar or by shortcuts.
Download and/or Purchase
Documentation
https://marshmallowcirno.github.io/XRay_Selection_Tools/
Features
Selection through with x-ray shading
Selection through without x-ray shading
Selection of all overlapped edges and faces
Selection of objects by Contain or Overlap behavior
Toggling settings by drag direction
-
Example - Left-to-right to select overlapped objects, right-to-left to select objects enclosed by selection region:
-
Example - Left-to-right to perform default selection, right-to-left to select through:
53 Likes
Great idea, I suggest to improve it to be a toggle button that turns every selection tool to use this behavior, then it would be possible to use lasso and other selection tools that are better in some selective cases.
4 Likes
Cirno
(Cirno)
3
Unfortunately, existing internal blender tools canât be edited or modified with an addon. I can only create a new one.
1 Like
eltarbos
(David)
4
This addon is already on my âcanât do withoutâ list.
It should be included in default blender or at least a similar solution.
3 Likes
Agree, the default behavior of not being able to select the other side unless wireframe is obnoxious.
Can we override the useless default with this add-on of yours instead ?
Can you imagine in Blender object mode if you box select you cannot select what was blocked ?
Who would thought it would be a good idea to only select the front vertices in box select mode while in edit mode ?
How did that even become a default behavior ?
3 Likes
Me. Try working in an app that ALWAYS selects-thru. Front face is useful. Theyâre BOTH useful.
2 Likes
Ha ha ha, so someone would appreciate that default exist !
Mine was I wrong ! Ha ha ha
anitiart
(anitiart)
8
Actually, I would love for a way to turn off box-select through in object mode. At least in edit mode, you have the option to turn it on and off. This is a nice addon for edit mode, but I not sure how useful this is in object mode since you are forced to always select through (when using box select).
Justo
(Justo)
9
I think sooo many people from this thread (me included) will be interested in this. I am trying this out today, excellent idea Cirno. This may be an unrelated topic, but have you considered trying to disable face center slections during Xray mode? If, of course, this is even possible through a plugin and not without rewriting Blender source codeâŚThe switch in selection styles (face area vs face centers) is so annoying when you have to do this multiple times in >1min.
3 Likes
Oskar3d
(Oskar)
10
Awesome add-on!
If you like you could add an option for avoiding the âX-Rayâ look during the selection by using:
space_data.shading.xray_alpha = 1
space_data.overlay.backwire_opacity = 0
If youâre interested have a look at the script I shared on Devtalk.
4 Likes
Dheim
(Dheim)
11
I just started using your script yesterday and love that it hides the x-ray look, but was struggling with the overriding of default controls (just because of the face selection issue). Thank you both for helping to fix this issue!
1 Like
Musashidan
(Danny McGrath)
12
Itâs funny, coming from Max I really like Blenderâs way of doing things. Max has ignore backfacing, but itâs been buggy since forever and canât be trusted. You always end up orbiting around to make sure nothing behind is selected. At least in Blender I can box select visible out of xray mode and be sure I havenât inadvertently selected things on the back.
whatâs way more annoying in xray is having to select over/near the face centre dots to select a face.
5 Likes
Cirno
(Cirno)
13
Box Select X-Ray 1.3 alpha.zip (21.6 KB)
Try this version. I havenât tested it yet, please report any bugs
If you find that something is broken you can disable this feature in the tool settings in the properties

or if you use hotkeys ticking this checkbox

1 Like
Musashidan
(Danny McGrath)
14
Not working on 2.83. Ignores the face centres flag in both prefs and active tool settings. Also, thereâs a slight lag upon selection.
Cirno
(Cirno)
16
Try this versions
Box Select X-Ray 1.3.1 alpha.zip (39.9 KB)
Box Select X-Ray 1.4 alpha.zip (47.6 KB)
As for input lag, it probably due to viewport antialiasing or overlay smooth wires (blender prefs viewport tab). When x-ray toggled on, more wires are drawn. Try to set antialiasing to single pass or maybe disable overlay smooth wires. Or try 1.4 version, you can disable x-ray toggling there

2 Likes
Justo
(Justo)
17
Thanks for the fast response Cirno - I can guarantee there are a ton of users that are dying for a feature like this. I myself donât even care if it needs to be via a custom Blender build (Benjamin Sauder aka @Kio did this, though unfortunately his build is slowly becoming outdated and he hasnât showed up to renew it) or a plugin.
I tested these by downloading just now the latest 2.83 build (acab7450784a-windows64) and installing your thing in these fresh new builds.
1.3.1 didnât seem to work when I tried selecting things:

Nor did 1.4:

Also itâs kindof strange - if I selected the top cap and a little bit of the cylinder sides, all those faces are selected (as a proper face area selection should be done). However if I then just drag across the sides, none of those faces are selected:

Perspective vs orthographic doesnât seem to make a difference. I also tried toggling on/off the âwait for inputâ checkbox, though I donât know exactl what itâs supposed to be doing. Youâll also notice how in my preferences I have the âonly face centersâ checkbox on: toggling it on or off didnât seem to have any noticeable difference that I could see.
What version are you trying these in? I can download that if thatâs the issue.
Musashidan
(Danny McGrath)
18
This is what I noticed too. If the box crossed over edges between connected faces, in some cases, but not face centres, it would select like your gif.
Cirno
(Cirno)
19
It was not due to the difference in blender versions, but because of my code. I havenât thought about those cases, I thought that I can get all the faces inside the selection rectangle by checking if a face has a vert inside the rectangle. Try this updates, here Iâm checking if one of the face edges intersects the rectangle or rectangle completely inside a face area.
Box Select X-Ray 1.3.2 alpha.zip (43.7 KB)
Box Select X-Ray 1.4.1 alpha.zip (52.9 KB)
Itâs a property from the default box select. Itâs for assigning a tool to a keyboard button, like B. If you have it enabled, then selection doesnât begin until you click (so you press B and crosshair of dashed lines appears, then you click and rectangle appears). Otherwise, selection begins right after pressing B. You donât need to enable it if you donât assign a box select (this or the default one) to a keyboard hotkey
Justo
(Justo)
20
Youâre achieving some really exciting stuff Cirno!
Face selection seems to work properly now, or at least from my testing with primitive shapes.
Edge selection now needs to have these cases accounted for too:
In 1.3.2, selecting all the cap edges and a little bit of the sides only selects the cap edges, whereas it should be selecting every edge within the selection box:

In 1.4.1, this same problem occurs, but this one also shows one more issue that 1.3.2 does not have, which is that dragging across the cylinder sides does not select any edge:

Just for the record, I am testing both versions so as to try give you as much info as possible, but eventually I would rather stick to using 1.4 - I love that feature you added to disable the toggling of Xrays.