1
$\begingroup$

http://prntscr.com/ixcbym

How to assign, for some points of grid one object from group 'sec'. And for other points, other objects from the same group?

$\endgroup$
  • $\begingroup$ Please use the Imgur uploader to add images to your questions. $\endgroup$ – Omar Emara Mar 28 '18 at 16:36
3
$\begingroup$

Starting from version 2.1, we have a Transform Mesh Node instead of the Replicate Mesh Node. First, we create a list with all possible meshes (One can use the Objects From Group Node to get all objects in a group and get the meshes from them.), then using the Random List node, we generate a list filled with the possible meshes, then meshes are transformed to the required location using the Transform Mesh Node. Which results in:

Node Tree

If it is not required that the output be a single mesh, one can instance a group of empty objects using the Object Instancer Node and then copy the meshes from a list filled with possible objects just as we did before. Which results in:

Node Tree 2

If you want to selectively add an object at some indices, then manual source object list creation is needed. For instance, if one wants to use the object Cube for the vertices at indices 0,1,...,9 and 40, 41,...50 and use the object Icosphere for the rest, then the object source list can be created as follows:

Node Tree 3

The Fill List Node can be used to fill a list with a certain number of objects, and the Combine Object List node can be used to combine multiple lists, so we can combine an object list filled with 10 Cube then another filled with 40 Icosphere and then another filled with 10 Cube. Then we can use the Fill List Node to fill the rest of the elements with Icosphere.

$\endgroup$
  • $\begingroup$ Thanks! But how to use some mesh instead of distribute Matrices? $\endgroup$ – Sergey Golubev Mar 28 '18 at 23:12
  • $\begingroup$ I founded! prntscr.com/ixsapl $\endgroup$ – Sergey Golubev Mar 28 '18 at 23:34
  • $\begingroup$ How to set the position area for the location of an item? $\endgroup$ – Sergey Golubev Mar 28 '18 at 23:40
  • $\begingroup$ @SergeyGolubev What do you mean by the "position area"? $\endgroup$ – Omar Emara Mar 29 '18 at 16:09
  • $\begingroup$ What if I want the objects to be distributed according to the specified parameters. For example, in specific vertex groups or based on the values of some texture. $\endgroup$ – Sergey Golubev Mar 29 '18 at 17:48
0
$\begingroup$

A List or a Switch can be considered


  • Object List from Group with an Element Selected. You can programmatically determine which index of the list shall be used to select the particular mesh data.

enter image description here

  • Mesh Data List. Consider a Loop Subroutine to Create the List.

enter image description here

  • 2 items example

enter image description here

  • I assume we are using different versions of BAN Blender Animation Nodes.

  • Please inspect and improve to your needs

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