If I have a list of vectors, is it possible to create an object (e.g. a cube) centred on each vector in the list, using Sverchok? If so, how can this be done?
2 Answers
There is a lot of steps to make this happen, but it is pretty simple, so here it goes:
Make sure that you put your list in a .txt file - for this example call it PointList.txt, and it will use the CSV format.
Load this file into Blender.
Note: In this format every line in the file is one point location inX,Y,Z:In the 3D Viewport Add a Cube - Shift+A >> Mesh >> Cube.
In the Node Editor Add a Text Input Node - Shift+A >> Text >> Text in.
Set your Text Input Node to have the following settings & Click Load:
Next Add a Vectors In Node - Shift+A >> Vector >> Vector in and connect your Text Input Node to like the following:
Next Add a Matrix In Node - Shift+A >> Matrix >> Matrix in and connect your Vectors Output of your Vectors In Node to Matrix In Node at its Location socket:
Next Add a Sv Instancer Node - Shift+A >> Scene >> Mesh instancer. Then ensure that your Object Name is set to the name of the Cube that you added in Step 3. above, click "use" and connect the two Matrix Sockets between the Nodes like the following:
Result:
To help you convert your data format, here is a screenshot of how to convert the format that you have shown in your comment:
- 3,234
- 3
- 21
- 85
- 4,623
- 14
- 30
You just wanted to have instance duplications?
I usually use Viewer Draw to see the preview. And the "Matrix" input is what you want to use for this.
Provide the Mesh Data and the Matrix (transform) will be where the duplication or instances will be placed. If you have list of Vectors already, whether it is via Text Input or being generated using another node, you just plug in the Vector List into the Matrix In.
If you want "real objects" in 3D View right away, you can use BMesh MK2 Viewer node. That will generate actual objects.
- 1,491
- 11
- 18









[[(0,0,0), (5,0,0),... ]]1. I have the cube at the origin. I see some alpha objects in the outliner view, but not in the 3D view.. – naught101 Mar 25 '16 at 09:34Cube->Object In->Viewer Draw, and then route the matrix to theViewer Drawas well. i.e. not using an instancer node. – naught101 Mar 25 '16 at 10:30