vector vertexprimuv(<geometry>geometry, int primnum, int vtxidx)
vector vertexprimuv(<geometry>geometry, int linearvtx)
<geometry>
When running in the context of a node (such as a wrangle SOP), this argument can be an integer representing the input number (starting at 0) to read the geometry from.
Alternatively, the argument can be a string specifying a geometry file (for example, a .bgeo) to read from. When running inside Houdini, this can be an op:/path/to/sop reference.
vtxidx
The vertex in the primitive of the intrinsic uv location.
linearvtx
The linear vertex of the intrinsic uv location.
Returns
A vector with the intrinsic uv location.
Examples ¶
Sets a distinct random color value for a particular intrinsic uv value for a given vertex.
int primnum = vertexprim(file, vtxnum); int vindex = vertexprimindex(file, vtxnum); vector primuv = vertexprimuv(file, primnum, vindex); vector color = random(primuv[0], primuv[1]); @Cd = color;
| See also | |
| prim |
|
| vertex |
|