jsmack
The material variation node authors primvars used by the material to vary the appearance on the selected prim locations.
For Karma materials, the primvar must be the same as a parameter/bind in the material. Other renderers may need to use a primvar/attribute read node to bind the primvar to the shader.
Do you have any snippet examples? It's quite confusing having different vex syntaxes depending on what you're doing. For example, if I have a material variation LOP varying the diffuse_color, it creates a primvars:diffuse_color primvar.
If I Check ‘Use Snippet’ and attempt to edit this primvar with the code below, it doesn't update the value.
usd_setprimvar(0, @primpath, "diffuse_color", {0.0, 1.0, 1.0});
The help says i@primvars:foo is the syntax to use, but I'm not sure how to go about getting that to work, as the followig throws an error:
v@primvars:diffuse_color = set(0,0,1);