I'm trying to recreate this script (https://github.com/mantissa-/RandoGrid) in geometry nodes and I have some questions.

  1. This is what I've got so far:

enter image description here

This is inside of my NodeGroup:

enter image description here

And at frame 20 it looks like this:

enter image description here

So I want to give user a choice on number of repeats. I figured I would do it this way and if user wants 20 repeats then he can go to frame 20. Is there a better way of doing this or that's how it's suppose to work?

  1. If that's how it's suppose to work then I have this problem. Look at number of vertices at frame 20:

enter image description here

Insane! What am I doing wrong?

  1. How do I limit this so it doesn't extrude outside of the initial x and y dimension (5 and 3 in this case) and if it does how to make it choose a diffrent direction?
  • 1
    $\begingroup$ About the repeating part, blender version 4.0 will have loops. It's called repeat zone for now. You can check that out by downloading the alpha build. $\endgroup$ Commented Jul 23, 2023 at 14:26
  • $\begingroup$ Are you sure you need a simulation? Would some cunning weights in Shortest Edge Paths do the trick? imgur.com/a/BeNAMOO $\endgroup$
    – Robin Betts
    Commented Jul 23, 2023 at 17:05

2 Answers 2


As Robin Betts already pointed out, you don't need a simulation zone or a repeat zone. Here's a solution using Accumulate Field:

on the 2nd image you can see more horizontal offsets for overlaps, but this technique allows the lines to move away (horizontally) from its starting trajectory (by a lot). If you don't want this to happen, you can just set random positions without accumulation on XY, or use a noise texture to do that if you want an effect in between…

Here's an example how that could look like, this time I'm normalizing the random vector, so the distribution doesn't favor diagonals:

Also notice dividing the index by 2 and ceiling, to get a consistent random number on points of the vertical segments.


I managed to fix issue I described in question 2 by adding Merge by Distance node after Join Geometry inside my created NodeGroup.

enter image description here

Now my loop is properly only adding new geometry instead of doubling it every frame.


You must log in to answer this question.

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