1
$\begingroup$

3D view

node layout

group

I am learning how vectors work in geometry nodes, and this simple example scales a vector to place a cube between 0,0,0 and the position of an empty.

I created a group of nodes, so that I could replicate this effect with multiple cubes. However, this seems inefficient to me, so I'd like to know if there's a way to create a loop as we do in programming to add as many cubes as I like without having to manually duplicate my group node?

$\endgroup$

1 Answer 1

1
$\begingroup$

There is no loop node (yet) but you could e.g. this easy node setup to get what you want:

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ Ah instances and mesh line, of course thank you $\endgroup$
    – Neil
    Commented Nov 19, 2022 at 11:17
  • $\begingroup$ As you said there was no loop node when I asked, is this what the repeat node would achieve now? $\endgroup$
    – Neil
    Commented Feb 6 at 16:46
  • 1
    $\begingroup$ yes. the repeat zone is a loop. $\endgroup$
    – Chris
    Commented Feb 6 at 18:33

You must log in to answer this question.

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