At the moment, to detect UsdShade shaders representing materialx shaders, we rely on the shader's info:id to start with ND_. But that is not a good test, as some custom materialx definitions could have a different name.
We could either :
- Ask the Usd Sdr Registry if the shader comes from materialx
- after checking for common usd shaders, as well as arnold shaders, we could always call
AiMaterialxGetOslShaderCode and see if Arnold knows about this materialx definition
At the moment, to detect UsdShade shaders representing materialx shaders, we rely on the shader's
info:idto start withND_. But that is not a good test, as some custom materialx definitions could have a different name.We could either :
AiMaterialxGetOslShaderCodeand see if Arnold knows about this materialx definition