MaterialX Switch node limitation

   1209   2   0
User Avatar
Member
10 posts
Joined: Jan. 2016
Offline
Hi people!

How can I connect more than five textures to MtlX Switch node?
From Houdini manual: "Pass on the value of one of five input streams, according to the value of a selector parameter."

I have an integer attribute (0-9) to switch between the textures, but Switch node have only five inputs.
User Avatar
Member
8173 posts
Joined: Sept. 2011
Offline
You'll have to chain switch nodes and do some math to modulate the index.
User Avatar
Member
10 posts
Joined: Jan. 2016
Offline
Okay, just solved it. For small setup <=10 you can use two Switch nodes connected to IfGreater node.
  • Quick Links