Allow MaterialX shaders within USDZ files
authorDhruv Govil <dgovil2@apple.com>
Mon, 11 Dec 2023 18:24:52 +0000 (10:24 -0800)
committerDhruv Govil <dgovil2@apple.com>
Mon, 11 Dec 2023 18:24:52 +0000 (10:24 -0800)
pxr/usd/usdUtils/complianceChecker.py

index 74eed8cfa87887a1088915cb95aece7cb56b887d..aa8e48d3f9206ac3c386378eaa0dcd6e8c59ee03 100644 (file)
@@ -742,7 +742,7 @@ class ARKitShaderChecker(BaseRuleChecker):
     @staticmethod
     def GetDescription():
         return "Shader nodes must have \"id\" as the implementationSource, "  \
-               "with id values that begin with \"Usd*\". Also, shader inputs "\
+               "with id values that begin with \"Usd*|ND_*\". Also, shader inputs "\
                "with connections must each have a single, valid connection "  \
                "source."
 
@@ -773,7 +773,8 @@ class ARKitShaderChecker(BaseRuleChecker):
            not (shaderId in [NodeTypes.UsdPreviewSurface, 
                              NodeTypes.UsdUVTexture, 
                              NodeTypes.UsdTransform2d] or
-                shaderId.startswith(NodeTypes.UsdPrimvarReader)) :
+                shaderId.startswith(NodeTypes.UsdPrimvarReader) or
+                shaderId.startswith("ND_")) :
             self._AddFailedCheck("Shader <%s> has unsupported info:id '%s'." 
                     % (prim.GetPath(), shaderId))