Hey,
I have 2 scatter node with 30 points on each of them. I wired the two in a pointwrangle.
I used this code and I am wondering why the setpointgroup is running only once and not as the doc suggest : "This node runs the snippet on the detail or every point/primitive/vertex (depending on the Class parameter) in the input geometry."
This is probably something I missunderstood but I would be grateful if someone can explain me how it's really behave.
Here is my code :
@group_basePoints = 1;
vector npos = point(1, "P", @ptnum);
int newpt = addpoint(0, npos);
setpointgroup(0, "basePoints", @ptnum+@numpt, 1);