setcomp VEX function
Sets 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: getcomp
-
void setcomp(vector &target, float value, int index) -
void setcomp(vector4 &target, float value, int index) -
void setcomp(matrix &target, float value, int row, int col) -
void setcomp(matrix3 &target, float value, int row, int col) -
type setcomp(arraytype array; type value, int index)
Note
You can also use name[index] = value notation to set the value at index for vectors and arrays. See arrays.