4
$\begingroup$

I want to create an assembly line/conveyor belt using Geometry Nodes, by attaching objects to a curve and following along it.

I want to place an Empty or invisible objects along the path, so that when an object pass through that Empty it would toggle to a different object using Switch node or some sort of proximity sensor, and all objects before the Empty wouldn't switch.

But I can't figure out how to use Geometry Proximity as toggle for the Switch node, and if it's even possible.

$\endgroup$

1 Answer 1

4
$\begingroup$

The node Switch, once set to Geometry, only accepts a single value and not a field, so unfortunately it cannot be used as you wish.

To solve this task, you don't need the node Geometry Proximity, but only the following setup:

enter image description here

Here I combine several objects with Geometry to Instance, which are then selectively chosen when instantiating with Instance on Points.

You just have to activate the option Pick Instance, and pass an integer value to Instance Index.

You can get this value by comparing the position of the points you use for instantiation with the position of an additional object. If the distance is below a certain value, the number $1$ will be used instead of $0$, thus using the second object from the previously created group of instances.

enter image description here


(Blender 3.2+)

$\endgroup$
6
  • $\begingroup$ Thanks a lot for your help! Could you please help me, how to do the same, but along the bezier curve, tried multiple setups and something always breaks $\endgroup$
    – Sugrmax
    Mar 22 at 23:18
  • $\begingroup$ @Sugrmax Please forgive me, I don't quite understand what you mean. It shouldn't really make a difference whether you use a mesh line or a Bezier curve. Which part exactly is not working? Maybe it would be good if you share the blend file with us. $\endgroup$
    – quellenform
    Mar 22 at 23:40
  • $\begingroup$ <img src="https://blend-exchange.com/embedImage.png?bid=orK06gR4" /> $\endgroup$
    – Sugrmax
    Mar 22 at 23:57
  • $\begingroup$ @Sugrmax Ah, I see, that's another topic. So you want an additional repeating movement, a kind of loop? $\endgroup$
    – quellenform
    Mar 23 at 0:05
  • $\begingroup$ @Sugrmax To do this, you would first have to convert your Nurbs path to a mesh line, or in some form to a curve that has points evenly spaced. Then you can combine that with this setup. Or with this one. $\endgroup$
    – quellenform
    Mar 23 at 0:12

You must log in to answer this question.

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