VEX Dictionary / setcomp
setcomp
Assigns a value to one vector or matrix component, one array element, or one dictionary entry.
group: utilitydata
Available in every context
Usage
void|float setcomp(<vector> &target, float value, int index)
void|float setcomp(<matrix> &target, float value, int row, int column)
<type> setcomp(<type> &array[]; <type> value, int index)
float setcomp(<vector> &array[]; float value, int i, int j)
float setcomp(<matrix> &array[]; float value, int i, int j, int k)
<type> setcomp(dict &d; <type> value; string index)
<type>[] setcomp(dict &d; <type> value[]; string index)
Examples
No worked examples yet.
Signatures (from vcc -X)
matrix2 setcomp(dict &, matrix2, string)all contextsvoid setcomp(matrix2 &, float, int, int)all contextsmatrix2 setcomp(matrix2[] &, matrix2, int)all contextsmatrix3 setcomp(dict &, matrix3, string)all contextsvoid setcomp(matrix3 &, float, int, int)all contextsmatrix3 setcomp(matrix3[] &, matrix3, int)all contextsmatrix setcomp(dict &, matrix, string)all contextsvoid setcomp(matrix &, float, int, int)all contextsmatrix setcomp(matrix[] &, matrix, int)all contextsbsdf setcomp(bsdf[] &, bsdf, int)all contextslight setcomp(light[] &, light, int)displace, fog, light, shadow, surfacelpeaccumulator setcomp(lpeaccumulator[] &, lpeaccumulator, int)surfacematerial setcomp(material[] &, material, int)displace, fog, light, shadow, surfacedict setcomp(dict &, dict, string)all contextsdict setcomp(dict[] &, dict, int)all contextsfloat setcomp(matrix2 &, float, int, int)all contextsfloat setcomp(matrix3 &, float, int, int)all contextsfloat setcomp(matrix &, float, int, int)all contextsfloat setcomp(dict &, float, string)all contextsfloat setcomp(vector4 &, float, int)all contextsfloat setcomp(vector2 &, float, int)all contextsfloat setcomp(vector &, float, int)all contextsfloat setcomp(matrix2[] &, float, int, int, int)all contextsfloat setcomp(matrix3[] &, float, int, int, int)all contextsfloat setcomp(matrix[] &, float, int, int, int)all contextsfloat setcomp(float[] &, float, int)all contextsfloat setcomp(vector4[] &, float, int, int)all contextsfloat setcomp(vector2[] &, float, int, int)all contextsfloat setcomp(vector[] &, float, int, int)all contextsint setcomp(dict &, int, string)all contextsint setcomp(int[] &, int, int)all contextsvector4 setcomp(dict &, vector4, string)all contextsvoid setcomp(vector4 &, float, int)all contextsvector4 setcomp(vector4[] &, vector4, int)all contextsstring setcomp(dict &, string, string)all contextsstring setcomp(string[] &, string, int)all contextsvector2 setcomp(dict &, vector2, string)all contextsvoid setcomp(vector2 &, float, int)all contextsvector2 setcomp(vector2[] &, vector2, int)all contextsvector setcomp(dict &, vector, string)all contextsvoid setcomp(vector &, float, int)all contextsvector setcomp(vector[] &, vector, int)all contextsdict[] setcomp(dict &, dict[], string)all contextsfloat[] setcomp(dict &, float[], string)all contextsint[] setcomp(dict &, int[], string)all contextsstring[] setcomp(dict &, string[], string)all contexts