0
$\begingroup$

Very often, when importing multiple objects from an asset kit they are all centered in a scene and need to be manually distributed, so it is easier to work with them.

I was trying to find an option for this in blender, but couldn't get close to any good solution. Hence wanted to ask here if it is possible to somehow select all of these objects and automatically distribute them in a line (say on x axis) or even better some sort of grid (rows and columns) with even spacing?

For example, how to get from this (multiple objects centered together)

enter image description here

To this, objects evenly distributed in a grid (or line). I did this manually, but ideally this should be automatic?

enter image description here

$\endgroup$
2
2
$\begingroup$

There's an ol'-school method to distribute your objects on a grid made for the purpose, here with 'Faces Only' deleted:

  • Add or link your assets to a collection.
  • Give your display grid a particle system, set to emit [ its vertex-count ] particles, all at frame 1. Non-random, from vertices, particles with a long life.
  • Particle Physics : 'None'.
  • In the system's 'Render' panel, set to render the collection, scale 1, no randomness
  • In the (collection-context) 'Collection' panel, check 'Object Scale' and 'Use Count', with default (1-per-item) setting.

enter image description here

In the grid's modifier stack, you can convert the particles to real instances.

$\endgroup$
1
  • $\begingroup$ With a bit of fiddling with Mesh > Sort Elements on the grid, you can even order the instances rationally, as you wish, in the 'Count' panel $\endgroup$ May 7 '21 at 16:38
1
$\begingroup$

For your purposes, this ought to work:

  1. Select all objects. Use a randomize transform operation (which I use the search function to access.) On the operator box (f6 or f9, depending on initial setup settings), adjust the Y and X values to something appropriate to your scene-- for the four objects shown in your pic, let's say 5.

  2. Optionally, snap selection to grid, which I access from the shift-s snap menu.

This isn't perfect. There's a chance that objects will occupy the same space. That chance goes down as you use a larger random transform. Not all grid spaces will be occupied. It's just, something fast and easy to do in order to distribute a bunch of stuff so that you can see it.

enter image description here

$\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.