7
$\begingroup$

Is there a quick way to select all objects inside a mesh? For example, I have a 15x15x5 grid of cubes. How would I automatically select all the cubes that are inside the toroid-like mesh object?

enter image description here

Update:

Weight Mode:

enter image description here

Torus Settings:

enter image description here

$\endgroup$
  • $\begingroup$ What will happen with objects partialy in-out? $\endgroup$ – vklidu Feb 20 at 16:14
  • $\begingroup$ @vklidu Good question. I would prefer if they were selected, but that's not very important. $\endgroup$ – user1566515 Feb 21 at 1:01
7
+50
$\begingroup$

Since script is not here so one handmade tech. using Dynamic Paint from Physics Properties. Tested with official 2.82

enter image description here

  • for Torus add Dynamic Paint as Brush
  • Join Cubes Ctrl+J, add Dynamic Paint as Canvas > Surface Type > Weight and in Output click "+" icon if "dp_weight" is marked red. When you switch to Weight Paint mode you can see all Cubes placed inside Torus are red.
  • Apply modifier for Cubes

enter image description here

When you switch to Edit mode you can see weight color as well if you enable Viewport Overlays > Vertex Group Weight.

  • To select red cubes go to Properties Editor > Object Data > Vertex Group > Select
  • Because some of the cubes were selected only partialy, you can select whole these by Select Linked Ctrl+L.

enter image description here

Notes: If you need Cubes separated back, just press P > by Loose parts.

(In experimental 2.83 I have some glitches in 3Dview editor > Weight Paint mode, but weight is visible from XYZ axis.Probably some personal issue with graphics card, because on Eevee mode Blender crash totaly.)

Just for fun ... enter image description here

| improve this answer | |
$\endgroup$
  • 1
    $\begingroup$ Damn! It's answers like this, where I realize, that I'm just scratching the surface in Blender... :). Thanks for such an elegant solution. $\endgroup$ – Jachym Michal Feb 20 at 21:49
  • 1
    $\begingroup$ @vklidu Thanks again for your idea for helping with all the related questions! $\endgroup$ – user1566515 Feb 24 at 21:30
1
$\begingroup$

Depends on how you scene or objects are structured as you can select by Parent, Color, etc.

One of the easiest ways is to put all the smaller cubes into a collection (or collections of collections) and then selection is easy by right clicking on the collection and click Select Objects or Shift+ G -> Collection.

enter image description here

Another way I have used is to select by material. That is, assign the same material to all your similar objects and then select by Material: Shift+ L -> Material.

All of this takes a little bit to set up, but once done, selection is easy.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thank you for the suggestion. My question is specifically about selecting all object inside a larger mesh. $\endgroup$ – user1566515 Feb 12 at 17:17
  • $\begingroup$ Unless you object has similar properties that can be selected by Groups Shift + G or Linked Shift + L or naming pattern Select-> Select Pattern then I don't think there is an automated way. I think you may have to manually do so, then put them all in a collection. $\endgroup$ – Derrick Feb 13 at 12:11
  • $\begingroup$ I wonder if there's an add-on for that. $\endgroup$ – user1566515 Feb 13 at 14:50
-3
$\begingroup$

I would press A and then shift+ click to deselect one

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.