Problem summary
Type mismatch error when trying to bake a NetworkMaterial with parameters that are promoted and connected to previous shading nodes using UsdMaterialBake node
Customer reported version
Katana 6.0v3
Customer reported platform
Windows 10
Steps to reproduce
1) Download and open the example scene attached as '
usdbake_fail.katana'.
2) Under the UsdMaterialBake node, press 'Write' and observe the error displayed in the command prompt.
Error in 'fnInternal_v22_05__pxrReserved__::UsdStage::_SetValueImpl' at line 6046 in file W:\jenkins-devops0\d35eea\1\USD_src\pxr\usd\usd\stage.cpp : 'Type mismatch for </root/materials/andre_strap_MAT.inputs:base>: expected 'float', got 'void''
3) Fix the error by diving into the 'material' folder and the NetworkMaterialCreate node.
4) From there, disconnect the two shading nodes.
5) Successfully bake the material by going back to UsdMaterialBake and pressing 'Write'.
Expected behaviour
Material successfully bakes and connects previous shading node into the Network Material
Actual behaviour
When attempting to bake a material using the USDMaterialBake node, if a parameter is both promoted to the Material Interface and is receiving input from an upstream node, it will produce the error shown above.
Workaround
Unknown.
Reproduced by support
This bug has been reproduced in:
Katana 6.0v3 | Windows 11 / 10 / CentOS7
Katana 6.0v2 | Windows 11 / 10 / CentOS7
Katana 6.0v1 | Windows 11 / CentOS7
Katana 5.0v4 | Windows 11
Katana 5.0v1 | Windows 11
Katana 4.5v5 | Windows 11
Katana 4.5v1 | Windows 11
Unable to reproduce bug in:
Katana 4.0v8
Earliest version tested
Katana 4.0v8 - UsdMaterialBake node did not exist before this version