MaterialX and image sequences

   2064   4   3
User Avatar
Member
41 posts
Joined: June 2009
Offline
Is there any possibility to use a sequence of frames with MtlX Image node ?
Edited by Dronson - Dec. 11, 2022 05:22:08
User Avatar
Member
1628 posts
Joined: March 2009
Offline
It's possible, you just don't do it -inside- the shader. You put a dummy image into the mtlx image node (like: the first one of your sequence for example) and then after the material library you put down a edit material properties lop, populate it, and do it in there. This one will accept time dependent stuff, like mytexture.$F.rat.

This is also the correct way to animate other parameters like blends, colors, and all.
Martin Winkler
money man at Alarmstart Germany
User Avatar
Member
476 posts
Joined: Aug. 2014
Offline
I wonder if it's by design or because string substitution in MaterialX isn't implemented in Solaris yet?

In MaterialX specification (p. 18-19) [materialx.org] we can read that substitution of some strings defined by host environment (Houdini in our case) is possible when it comes to frames, so (in theory at least) $Fshould be accepted. Besides, mtlximagealready has framerangeand frameoffsetparameters, which currently don't seem to be working, but the presence of which could indicate the latter. Or perhaps the substitution was never intended to occur within the shader, but in this case why keep those two parameters?

Could someone please shed some even more light on this?
Edited by ajz3d - Dec. 12, 2022 09:12:07
User Avatar
Member
8583 posts
Joined: July 2007
Offline
MaterialX in Houdini is currently missing support of MaterialX tokens as stated here

https://www.sidefx.com/docs/houdini/solaris/materialx.html#limitations
MaterialX defines a few tokens (for example {frame} for time) for use in file paths, but these are currently not used by Karma or Houdini. You can use the <UDIM> token, however.
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
476 posts
Joined: Aug. 2014
Offline
All right, this explains it. Thanks, @tamte.
  • Quick Links