MaterialX Switch node Doesn't Work?

   440   2   1
User Avatar
Member
20 posts
Joined: 11月 2022
オンライン
Pretty straightforward setup. Five different MtlX image nodes with different color maps, and I want to switch between them.

If I string each one directly to the base_color_output, it displays that color map on the geometry.

But if I string the five MtlX image nodes into a Mtlxswitch node, it only shows the last one no matter what the "which" parameter value is set to - doesn't matter if I string in a float or int using a mtlx constant node, or if I modify the parameter directly on the switch node.

Am I missing something obvious? It's a fairly straightforward operation, and I can't think of anything that would cause this to break except maybe that I'm doing this inside an edit material node.

I'm attaching video as proof.

Video [drive.google.com]
User Avatar
Member
2658 posts
Joined: 6月 2008
オフライン
It does seem to work for me.

Attachments:
mat_switch.gif (313.5 KB)

Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
48 posts
Joined: 11月 2013
オフライン
From the Edit Material Node Doc page:

You cannot edit Karma VOP materials (Material Builder) with this node. You can only edit USD aspects of materials, such as material parameters.

Perhaps this is the root of the problem?
Edited by jandress - 2025年8月24日 20:57:30
  • Quick Links