Description
Describe the bug
Here are 2 simple materialX files that fail to load in Maya 2026. With the first one, it appears that Maya can't load a mix_surfaceshader node. The second test file contains a custom nodedef, and Maya doesn't seem to succeed to load it.
Both graphs are loading and rendering correctly in the MaterialX graph editor.
Steps to reproduce
Test files are included in the repro package attached.
Error 1: Load test1.usd using the Create/USD/Stage from file menu in Maya
Error 2: Load test2.usd using the Create/USD/Stage from file menu in Maya
<?xml version="1.0"?>
<materialx version="1.39" xmlns:xi="http://www.w3.org/2001/XInclude">
<nodegraph name="NG_Front">
<standard_surface name="sss1" type="surfaceshader" xpos="-1.507246" ypos="-1.068966">
<input name="base_color" type="color3" value="1, 0, 0" />
</standard_surface>
<standard_surface name="sss2" type="surfaceshader" xpos="-1.623188" ypos="0.043103">
<input name="base_color" type="color3" value="0, 0.141809, 1" />
</standard_surface>
<mix name="mix_surfaceshader1" type="surfaceshader" xpos="0.347826" ypos="-0.094828">
<input name="fg" type="surfaceshader" nodename="sss1" />
<input name="bg" type="surfaceshader" nodename="sss2" />
<input name="mix" type="float" value="0.5" />
</mix>
<output name="out" type="surfaceshader" xpos="3.463768" ypos="-0.112069" nodename="mix_surfaceshader1" />
</nodegraph>
<surfacematerial name="M_Front" type="material" xpos="19.449276" ypos="0.301724">
<input name="surfaceshader" type="surfaceshader" nodegraph="NG_Front" output="out" />
</surfacematerial>
</materialx>
<?xml version="1.0"?>
<materialx version="1.39" colorspace="lin_rec709" xmlns:xi="http://www.w3.org/2001/XInclude">
<nodedef name="ND_ColorSelector" node="mycolorselector">
<input name="input_choice" type="integer" value="0" xpos="11.985507" ypos="3.474138" />
<output name="out" type="color3" />
</nodedef>
<nodegraph name="NG_ColorSelector" nodedef="ND_ColorSelector">
<convert name="itof" type="float" xpos="14.347826" ypos="2.801724">
<input name="in" type="integer" interfacename="input_choice" />
</convert>
<switch name="switch_color3" type="color3" xpos="16.391304" ypos="2.025862">
<input name="in1" type="color3" value="0.625917, 0.162218, 0.162218" />
<input name="in2" type="color3" value="0.0845045, 0.606357, 0.426452" />
<input name="in3" type="color3" value="0.420308, 0.0878761, 0.599022" />
<input name="in4" type="color3" value="0.0619018, 0.162952, 0.266504" />
<input name="which" type="float" nodename="itof" />
</switch>
<output name="out" type="color3" nodename="switch_color3" xpos="19.695652" ypos="0.034483" />
</nodegraph>
<nodegraph name="NG_Test">
<mycolorselector name="my_color_selector_1" type="color3" xpos="10.985507" ypos="0.577586">
<input name="input_choice" type="integer" value="1" />
</mycolorselector>
<standard_surface name="ss" type="surfaceshader" xpos="13.449275" ypos="0.698276">
<input name="base" type="float" value="0.8" />
<input name="base_color" type="color3" nodename="my_color_selector_1" />
<input name="diffuse_roughness" type="float" value="0" />
<input name="specular" type="float" value="1" />
<input name="specular_roughness" type="float" />
</standard_surface>
<output name="out" type="surfaceshader" nodename="ss" xpos="16.123188" ypos="0.577586" />
</nodegraph>
<surfacematerial name="M_Test" type="material" xpos="15.927536" ypos="1.405172">
<input name="surfaceshader" type="surfaceshader" nodegraph="NG_Test" />
</surfacematerial>
</materialx>
Expected behavior
Screen shots of expected results and the errors are included in the repro package attached.
# Warning: Shader not found at </MaterialX/Materials/M_Front/NodeGraphs/sss1> for input "fg"
# Warning: Shader not found at </MaterialX/Materials/M_Front/NodeGraphs/sss2> for input "bg"
# Warning: Shader not found at </MaterialX/Materials/M_Test/NodeGraphs/my_color_selector_1> for input "base_color"
Attachments
Repro package with errors and expected results attached.
Specs (if applicable):
- Maya 2026
- mayausd 0.31.0
- MacOS Sequoia 15.4.1
Additional context
Does mayaUSD support:
- the mix_surfaceshader node?
- nodedefs?
Thank you so much!!! <3