I’m trying to use <tex> in the filepath of my vray MetaImageFile node to grab a texture path stored as a string primvar on the rendered geometry, but am not having any luck. I’ve tried with the string stored as a regular usd attr as well. Is the following <tex> workflow supported in Solaris?
"
V-Ray supports custom attributes in the File parameter, provided the attribute is specified either on the Geometry node itself, or placed on individual packed primitives. You can modify the File path with a custom string attribute “s@tex” with the following notation: “$HIP/texture_000**<tex>**.jpg”.
When using this workflow, be sure to force V-Ray to export the attribute from the V-Ray Object Properties of the rendered object.
"
Thanks!
> Is the following <tex> workflow supported in Solaris?
Not yet.
Thanks @bdancer , is that something we can expect in the next Vray Solaris update, or farther down the road map?
Looks like something that USD/Solaris would take care of, when/if we switch to MaterialX 
> is that something we can expect in the next Vray Solaris update
Yes.
> Looks like something that USD/Solaris would take care of, when/if we switch to MaterialX
Well, no, there is no magic here… Such handling still will need to be implemented…
Bitmap path tags support is already in the nightlies.
That’s amazing, thank you!
@bdancer Do you have an example hip of this working? I’ve got a string primvar: “primvars:tex” on the geometry with a texture path, but am having problem getting the shader to read it. In the filepath I’ve tried <tex>, primvars:tex. Should that work?
I’m using vray build 5.20.20
Houdini 19.0.498
> Should that work?
Yes, attaching example.
> I’m using vray build 5.20.20
There is Top Menu → V-Ray → About with the build information.
vfh_texture_file_tags.zip (53.3 KB)
Thanks for the example. Turns out we were loading an older vray build.
Hi, i cant get this working in SOLARIS in houdini 19.5.493, ive got vray version 5.20.24. I think i understand what im meant to be doing with the <tex> in the path, and a attribute on the prims like your example scene, but sure its not working for me in solaris. tried every combination of doing it for last few hours. no luck. could we get a new example scene for new houdini version and/or a tip as to if its a bug or not? ive tried sopCreate, and also setting it up in obj context with material applied from mat context, and using SceneImport to get it into LOPS. no luck either. hopefully im being dumb.
Cheers
J
The provided example .hip file works fine for me. Could you share your .hip file that doesn’t work?
sure. attached here with test textures too. renders black for me.
VRAY_LOPS_stringProceduralTex_001.zip (89.1 KB)
ideally want the sop create method to work. appreciate your help Bdancer.
All switch inputs are giving me this result, could you pls try some recent nightly maybe?
awesome! newer nightly fixed it!
Does this still work in 6.1?
Does this work if the string attribute is a vertex attrib? and if it’s inside packed prims?
Having a world of trouble trying to get it to show me anything waving in the dark with all the scattered solutions… feels obnoxiously hard to get working.. I can’t help but wonder why we don’t have a user string attrib node instead?
Cheers,
> Does this still work in 6.1?
Yes, it does.
> Does this work if the string attribute is a vertex attrib? and if it’s inside packed prims?
This is a Solaris (USD) sub-forum; there are no string vertex attributes in Solaris, there are no packed prims in Solaris; so, is your question about Solaris?
vfh_texture_file_tags.zip (1.83 MB)