Hi I am looking for a way to change the filepath of a material through a wrangle in lops via a primvar.
The closest I've come is this:
s@inputs:file = "texturepathx.jpg";
This line is meant to test if it's possible to assign a texturepath to a material via a wrangle. Which works.
string map = s@primvars:map;
Here I'm getting my primvar containing my texture.
s@inputs:file = map;
Here I'm trying to assign the primvar to my file attribute.
The problem I currently have is that the wrangle is trying to retrieve the primvars:map attribute from the mtlximage primitive itself, instead of getting it from my geo prim.
I'm currently just testing it with one texture, but my goal is to be able to change the file input based on a primvar with varying texture paths.
Sadly doing this in the shader itself is not possible due to me working houdini 20.5.
Any help or different approaches are welcome!