Hi everyone,
I'm new to Houdini, but I'm already completely hooked on it. For a while now, I've been focused on trying to rearrange a scattered set of points into a neat grid layout. I've experimented with all the approaches my current beginner knowledge allows, but I've hit a wall and I'm close to throwing in the towel.
I've attempted using for-loops and wrangle nodes, but no matter what I do, the points always end up arranged diagonally. To give you an idea, the code below works fine when creating new points, but if I try to apply the same logic to move my existing points using @P += set(n, i, 0), it just gives me that same diagonal result instead of a proper grid.
I'm sure there must be a smarter way to handle this. I also gave the Copy node a shot, but I couldn't get it to place a single individual element onto each point—instead, it kept copying the entire collection onto every grid point. I've been speed-learning Houdini intensively for just two weeks, so I'm a bit embarrassed to ask for help on something that might turn out to be super obvious.
I'd be grateful for any tips or solutions. Thanks a lot!