Simstim

VEX Dictionary / primuv

primuv

Reads any attribute at an exact parametric (uv) location on a primitive.

group: attribprimattrib

Available in every context

Usage

<type> primuv( <geometry>; string attribute_name; int prim_num; vector uvw)
<type>[] primuv( <geometry>; string attribute_name; int prim_num; vector uvw)

Examples

Stick points to a deforming mesh sop
// Before this wrangle, store the binding on the rest mesh:
//   i@bindprim / v@binduv from xyzdist against input 1 at frame 1.
// Input 1: the deforming mesh
@P = primuv(1, "P", i@bindprim, v@binduv);

Store the primitive and uv once on the rest pose. Each frame, primuv looks them up on the deforming mesh, so the points ride along with it. This is a lightweight alternative to Point Deform.

Use cases

Signatures (from vcc -X)

Related

Full SideFX documentation ↗