Shortest Edge Paths between two empties

Hi, so I am trying to get the shortest path between two empties using the “Shortest Edge Paths” node, but I can’t figure out how to get the vertex of the mesh where the empty is at. I already tried with “Field at Index” and “Transfer Attribute” node, but that didn’t work.

This is the setup I tried with:

As I understand it, I have to somehow get a matching input in B of the equal node for it to work properly, right?

Can someone please explain what I need to get it correct?
Thanks in advance :slight_smile:

Look at this…

Thanks for the reply :slight_smile: . I already watched this video, it is a good demonstration of the node, but does’t show how to do it with just a single path.
However, I have found a solution now. The “Geometry Proximity” node does what I wanted to achieve: https://docs.blender.org/manual/en/latest/modeling/geometry_nodes/geometry/geometry_proximity.html
I also had to replace the “Index” node with a “Position” node and switch the “Equal” node from integer to vector.

2 Likes