3
$\begingroup$

I need to be able to feed each curve instance into the custom group node. Is it possible to do a for each loop in geometry nodes for each curve instance? Each curve instance represents one branch of my tree. I need to individually feed each branch into the group node through a loop. Is that possible?

enter image description here

Actually the leaves do position somewhat properly on the branches with just a small anomaly so i thought the loop didn't work. But it seems that the "looping" does work somehow with my setup. This anomaly is probably caused by so many splines for just 1 instance when i tested resampling the curve for only 1 instance. Any idea how 1 instance can have so many splines while the wireframe seems not to show this as a possibility?

enter image description here

$\endgroup$
9
  • 1
    $\begingroup$ no, until now there is no loop in GN. But maybe it is possible what you want if you tell us your endgoal instead of asking for a method? $\endgroup$
    – Chris
    Apr 5, 2022 at 13:49
  • 2
    $\begingroup$ what do you want to achieve? so what do you want to do with each curve? make a branch? randomize the shape of the branch? $\endgroup$
    – Chris
    Apr 5, 2022 at 14:12
  • 2
    $\begingroup$ The problem is I think that all edges create a spline with 2 control points. Try adding a merge by distance node $\endgroup$
    – Gorgious
    Apr 5, 2022 at 15:49
  • 1
    $\begingroup$ yes you're probably right, i fixed it now, thank you guys for all your help :) $\endgroup$ Apr 6, 2022 at 6:04
  • 1
    $\begingroup$ @HarryMcKenzie It would be great of you to write a short answer to this and mark it as "Accepted Answer" so that this question shows up as solved. Thank you! $\endgroup$
    – quellenform
    Sep 15, 2022 at 15:19

1 Answer 1

3
$\begingroup$

I used this setup to iterate through pieces I created earlier with Instance on Points, and do a Convex Hull operation on each piece separately - this is essentially the For each setup you wanted:

enter image description here

And here's how I got the index and count:

enter image description here

$\endgroup$
1
  • $\begingroup$ Hello thank you for your response. Yes this is a new feature in Blender 4.0 :D $\endgroup$ Feb 13 at 23:16

You must log in to answer this question.

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