The closest I've come is this:
s@inputs:file = "texturepathx.jpg";
string map = s@primvars:map;
s@inputs:file = map;
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!