Skip to content

Visualize

Visualize a primitive vector attribute as a point

vector primitive attributes can’t be visualized as points, this wrangle creates a point where the vector prim attribute is:

vex
// let 'hinge' be a vector prim attribute
vector location = prim(0, "hinge", @primnum);
addpoint(0, location);
removeprim(0, @primnum, 1);

Color attribute by group

vex
int grp = inpointgroup(0, "target", @ptnum);
v@Cg = (grp==0) ? {1.0, 0.0, 0.0} : {0.0 , 1.0 , 0.0};

VEX syntax for accessing the other inputs in point wrangle? - General Houdini… Using secondary inputs on an wrangle SOP