MaterialX and image sequences

   2011   4   3
User Avatar
Member
41 posts
Joined: 6月 2009
Offline
Is there any possibility to use a sequence of frames with MtlX Image node ?
Edited by Dronson - 2022年12月11日 05:22:08
User Avatar
Member
1621 posts
Joined: 3月 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
466 posts
Joined: 8月 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 - 2022年12月12日 09:12:07
User Avatar
Member
8551 posts
Joined: 7月 2007
Online
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
466 posts
Joined: 8月 2014
Offline
All right, this explains it. Thanks, @tamte.
  • Quick Links