getcomp
VEX function
Extracts a single component of a vector type, matrix type, or array.
Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex
See also: setcomp
-
float getcomp(vector v; int index) -
float getcomp(vector4 v; int index) -
float getcomp(matrix m; int row, int column) -
float getcomp(matrix3 m; int row, int column) -
type getcomp(arraytype array; int index)
Note
You can also use name[index] notation to get the value at index for vectors and arrays. See arrays.