1
$\begingroup$

I want to put a link between two instances created on Instance on Points with the links not centrally located but rather on the edge of the instanced object. The problem comes with the fact that I want the objects to rotate independently (along one axis) and so the position that the links connect to changes.

A couple of screenshots below that are showing where I'd like the links to join to

enter image description here

enter image description here

End result would look like this with links between all elements

enter image description here

$\endgroup$
2
  • $\begingroup$ can u pls explain a bit more what your end goal is? do you wanna make something like a pearl necklace? or...? as far as i understood it currently i would use an armature...but...i think i didn't understood quite well $\endgroup$
    – Chris
    Nov 19, 2022 at 12:14
  • $\begingroup$ I've updated the original to show an image of how the links would be. $\endgroup$ Nov 19, 2022 at 12:54

1 Answer 1

1
$\begingroup$

Let's assume that we instantiate the individual objects with random rotation at the points of a grid. This should look something like this:

enter image description here

However, if now before instantiation these objects are sent through the node Bounding Box, instead of the objects we get a couple of beautiful cuboids, each corresponding to the dimensions of the original object and having 6 sides/faces. Also, the added rotation of the objects is taken over. This could then look something like this:

enter image description here

Now these cuboids have to be processed (before instantiation) with the node Dual Mesh, which converts faces to points and points to faces:

enter image description here

At the same time we split the grid on which we want to instantiate the objects with the node Split Edges, and scale these edges a bit.

enter image description here

Now that the individual edges are available and the beautiful structure we created earlier with the rotated objects, we only need to transfer the closest points of these to the points of the edges. To do this, the node Transfer Attribute is set to Nearest. With Set Position these positions are then transferred to the points of the edges:

enter image description here

If you then use the original objects at the points of the grid, you have the desired result:

enter image description here

And here is the corresponding node tree and the blend file:

enter image description here

(Blender 3.2+)

$\endgroup$
2
  • $\begingroup$ That's perfect. Thank you! $\endgroup$ Nov 22, 2022 at 17:39
  • $\begingroup$ @SaintPaulie You are welcome! $\endgroup$
    – quellenform
    Nov 22, 2022 at 17:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .