Search the Community
Showing results for tags 'for each vex'.
-
(VEX) Connecting disordered points with lines
RUXERMAGNO posted a topic in General Houdini Questions
Hello, I need help to connect points with a single line without crossing it, the points are out of order so it does not work to use the Add node. I am trying to use For Each and arrays in VEX but nothing works for me. I have a "start" and "end" group with the correct points, I need to iterate from point 0 looking for the nearest point and add a polygon, I have tried everything but nothing works. I attached a test scene. Any help will be welcome Thanks!! PtsToLine.hiplc -
Hello!! I have a bunch of points with an attribute called name_id (integer) Some of the points share the same attribute value. As time goes on some of the points die/are deleted. I would like that when a point with a certain name_id value dies, all the other points that shared that same attribute value die. in the hip file you'll find 2 methods one with the foreach VOP one with foreach SOP (less interested in this one because i have to promote name_id to a prim att) -i am iterating throught each value of the name_id attribute -finding how many have that same name_id with findattribvalcount VOP -comparing how many there are at frame 1 with how many at current frame -if there are less then there were initially -> @dead = 1 i can't make it work it seems like the last iteration of the foreach overwrites all the previous. Can you please help me achieve what i want? thanks in advance if pt with attribute value dies all pts with same att value die.hip