From 2fc0ff4ec817a709e7b18118f2679e059c378e52 Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Wed, 18 Jan 2023 11:09:02 +0800 Subject: [PATCH] validate the albedo file nodes only when getting texture nodes --- ..._plugin.py => validate_path_attributes.py} | 2 +- .../defaults/project_settings/maya.json | 85 +++++++------------ .../schemas/schema_maya_publish.json | 6 +- 3 files changed, 39 insertions(+), 54 deletions(-) rename openpype/hosts/maya/plugins/publish/{validate_path_for_plugin.py => validate_path_attributes.py} (96%) diff --git a/openpype/hosts/maya/plugins/publish/validate_path_for_plugin.py b/openpype/hosts/maya/plugins/publish/validate_path_attributes.py similarity index 96% rename from openpype/hosts/maya/plugins/publish/validate_path_for_plugin.py rename to openpype/hosts/maya/plugins/publish/validate_path_attributes.py index ae6c3b4ba1..870f304162 100644 --- a/openpype/hosts/maya/plugins/publish/validate_path_for_plugin.py +++ b/openpype/hosts/maya/plugins/publish/validate_path_attributes.py @@ -16,7 +16,7 @@ class ValidatePathForPlugin(pyblish.api.InstancePlugin): order = ValidateContentsOrder hosts = ['maya'] families = ["workfile"] - label = "Non-existent Paths in Non-Maya Nodes" + label = "Plug-in Path Attributes" def get_invalid(self, instance): invalid = list() diff --git a/openpype/settings/defaults/project_settings/maya.json b/openpype/settings/defaults/project_settings/maya.json index cf83793f31..b5f8f46ccd 100644 --- a/openpype/settings/defaults/project_settings/maya.json +++ b/openpype/settings/defaults/project_settings/maya.json @@ -343,58 +343,39 @@ "optional": false, "active": true, "attribute": { - "AlembicNode": "abc_File", - "VRayProxy": "fileName", - "RenderManArchive": "filename", - "pgYetiMaya": "cacheFileName", - "aiStandIn": "dso", - "RedshiftSprite": "tex0", - "RedshiftBokeh": "dofBokehImage", - "RedshiftCameraMap": "tex0", - "RedshiftEnvironment": "tex0", - "RedshiftEnvironment": "tex1", - "RedshiftEnvironment": "tex2", - "RedshiftDomeLight": "tex0", - "RedshiftDomeLight": "tex1", - "RedshiftIESLight": "profile", - "RedshiftLightGobo": "tex0", - "RedshiftNormalMap": "tex0", - "RedshiftProxyMesh": "fileName", - "RedshiftVolumeShape": "fileName", - "VRayTexGLSL": "fileName", - "VRayMtlGLSL": "fileName", - "VRayVRmatMtl": "fileName", - "VRayPtex": "ptexFile", - "VRayLightIESShape": "iesFile", - "VRayMesh": "fileName2", - "VRayMesh": "overrideFileName", - "VRayMesh": "alembicLayersFileName", - "VRayMesh": "materialAssignmentsFile", - "VRayMtlOSL": "fileName", - "VRayTexOSL": "fileName", - "VRayTexOCIO": "ocioConfigFile", - "VRaySettingsNode": "causticsFile2", - "VRaySettingsNode": "causticsAutoSaveFile2", - "VRaySettingsNode": "lc_fileName", - "VRaySettingsNode": "lc_autoSaveFile", - "VRaySettingsNode": "imap_fileName2", - "VRaySettingsNode": "imap_autoSaveFile2", - "VRaySettingsNode": "pmap_file2", - "VRaySettingsNode": "pmap_autoSaveFile2", - "VRayScannedMtl": "file", - "VRayScene": "FilePath", - "VRayScene": "parameterOverrideFilePath", - "VRayMtlMDL": "filename", - "VRaySimbiont": "file", - "dlOpenVDBShape": "filename", - "pgYetiMayaShape": "cfn", - "pgYetiMayaShape": "ofn", - "pgYetiMayaShape": "labf", - "pgYetiMayaShape": "trf", - "pgYetiMayaShape": "liveABCFilename", - "gpuCache": "cacheFileName" - } - + "AlembicNode": "abc_File", + "VRayProxy": "fileName", + "RenderManArchive": "filename", + "pgYetiMaya": "cacheFileName", + "aiStandIn": "dso", + "RedshiftSprite": "tex0", + "RedshiftBokeh": "dofBokehImage", + "RedshiftCameraMap": "tex0", + "RedshiftEnvironment": "tex2", + "RedshiftDomeLight": "tex1", + "RedshiftIESLight": "profile", + "RedshiftLightGobo": "tex0", + "RedshiftNormalMap": "tex0", + "RedshiftProxyMesh": "fileName", + "RedshiftVolumeShape": "fileName", + "VRayTexGLSL": "fileName", + "VRayMtlGLSL": "fileName", + "VRayVRmatMtl": "fileName", + "VRayPtex": "ptexFile", + "VRayLightIESShape": "iesFile", + "VRayMesh": "materialAssignmentsFile", + "VRayMtlOSL": "fileName", + "VRayTexOSL": "fileName", + "VRayTexOCIO": "ocioConfigFile", + "VRaySettingsNode": "pmap_autoSaveFile2", + "VRayScannedMtl": "file", + "VRayScene": "parameterOverrideFilePath", + "VRayMtlMDL": "filename", + "VRaySimbiont": "file", + "dlOpenVDBShape": "filename", + "pgYetiMayaShape": "liveABCFilename", + "gpuCache": "cacheFileName" + } }, "ValidateRenderSettings": { "arnold_render_attributes": [], diff --git a/openpype/settings/entities/schemas/projects_schema/schemas/schema_maya_publish.json b/openpype/settings/entities/schemas/projects_schema/schemas/schema_maya_publish.json index da642930d4..993028a74f 100644 --- a/openpype/settings/entities/schemas/projects_schema/schemas/schema_maya_publish.json +++ b/openpype/settings/entities/schemas/projects_schema/schemas/schema_maya_publish.json @@ -318,7 +318,7 @@ "collapsible": true, "checkbox_key": "enabled", "key": "ValidatePathForPlugin", - "label": "Non-existent Paths in Non-Maya Nodes", + "label": "Plug-in Path Attributes", "is_group": true, "children": [ { @@ -336,6 +336,10 @@ "key": "active", "label": "Active" }, + { + "type": "label", + "label": "Fill in the node types and attributes you want to validate. e.g. AlembicNode.abc_file, the node type is AlembicNode and the node attribute is abc_file" + }, { "type": "dict-modifiable", "collapsible": true,