filename substitution in materialx

   Views 524   Replies 1   Subscribers 0
User Avatar
Member
5 posts
Joined: Nov. 2016
Offline
On page 18 of the materialx spec (https://materialx.org/assets/MaterialX.v1.38.Spec.pdf), it says filename substitutions can be made using <geometry tokens> / <geominfo> elements. Is this possible in Houdini?

In the newest specification, it now says "Applications using USD for geometry and assignments may additionally use a <geometry token> (a.k.a. "<primvarname>") as the entire filename string to access an entire string primvar value unchanged." So, very similar, but specifying USD "primvars" instead of "geominfo".

Link to quote: https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/documents/Specification/MaterialX.Specification.md#:~:text=fully%2Devaluated%20filenames.-,Applications,-using%20USD%20for

Are either of these possible using USD/ MaterialX in Houdini? Or something similar, specifically, to control the filename input of an image node from the geometry.

This could also be achieved with the new GeomPropValueUniform node which was added to materialx last month. Is there a timeline yet for when this could be added to houdini?
Link: https://github.com/AcademySoftwareFoundation/MaterialX/commit/81ed31d43026cc0e475bbdf9b040ccbc17ba60bc [github.com]

So far, I've achieved it using a float primvar to control a switch of images, and UDIM substitutions, but I'd like a cleaner approach to the problem. Thanks in a advance for any suggestions!
Edited by vrbn studios - Jan. 17, 2025 04:39:33
User Avatar
Staff
1460 posts
Joined: July 2005
Offline
vrbn studios
This could also be achieved with the new GeomPropValueUniform node which was added to materialx last month. Is there a timeline yet for when this could be added to houdini?
GeomPropValueUniform will be available in the next version of Houdini.
  • Quick Links