Houdini groups
Group first and last points of the curve
The example below shows how to create point group for first and last point of the curve. Very usefull when need to pin the start and end of the curve to some other object for simulation.
// Vertexcurveparami@group_root = vertexcurveparam(0, @vtxnum) == 0;i@group_tip = vertexcurveparam(0, @vtxnum) == 1;
Group first point on each curve
// For each primitivei@group_braid_start = primpoints(0, @primnum)[-1] == @ptnum;
Select random points by percentage
i@group_random = rand(@ptnum, chf("seeed")) < chf("percentage");