I guess I am missing something obvious, but I am new to Houdini and didn´t find a working solution so far.
I have a circle, added normal and up attributes with help of an attribute wrangle. When using Copy to points, the duplicated geometry is aligned properly.
Instead of just duplicating one object per point, I wanted to duplicate several per point, number according to a certain attribute (in the example I just used @ptnum).
To do so I used an attribute wrangle with a for loop, @ptnum defining the number of iterations:
int zaehler = 1 ; int ende = int(@ptnum + 1) ; for (zaehler = 1; zaehler<ende; zaehler++) { addpoint(0 , @P+@N*ch("abstand")*zaehler); // setpointattrib(0, “N”, ????, @N); }
And this basically works, just with one problem - the geometry is not aligned properly (apart from the geometry that is copied to the first “original” points of the circle).
I did not find a way to set the orientation - basically the new point(s) just would have to take the same orientation as the according point of the circle already has.
Thanks in advance!
P.S Probably there is a better way to produce something like that, like nested Copy nodes, but it seems like I can´t drive the number parameter of the Copy node with an attribute