From 97834e32ba49af2b6492b875957d82d628b0001b Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Fri, 23 Jun 2023 16:31:29 +0200 Subject: [PATCH] :recycle: make the validation logic more clear --- .../maya/plugins/publish/validate_ass_relative_paths.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openpype/hosts/maya/plugins/publish/validate_ass_relative_paths.py b/openpype/hosts/maya/plugins/publish/validate_ass_relative_paths.py index 4230195a22..49913fa42b 100644 --- a/openpype/hosts/maya/plugins/publish/validate_ass_relative_paths.py +++ b/openpype/hosts/maya/plugins/publish/validate_ass_relative_paths.py @@ -27,9 +27,9 @@ class ValidateAssRelativePaths(pyblish.api.InstancePlugin): errors = [] try: - relative_texture = cmds.getAttr( + absolute_texture = cmds.getAttr( "defaultArnoldRenderOptions.absolute_texture_paths") - relative_procedural = cmds.getAttr( + absolute_procedural = cmds.getAttr( "defaultArnoldRenderOptions.absolute_procedural_paths") texture_search_path = cmds.getAttr( "defaultArnoldRenderOptions.tspath" @@ -45,9 +45,9 @@ class ValidateAssRelativePaths(pyblish.api.InstancePlugin): scene_dir, scene_basename = os.path.split(cmds.file(q=True, loc=True)) scene_name, _ = os.path.splitext(scene_basename) - if not self.maya_is_true(relative_texture): + if self.maya_is_true(absolute_texture): errors.append("Texture path is set to be absolute") - if not self.maya_is_true(relative_procedural): + if self.maya_is_true(absolute_procedural): errors.append("Procedural path is set to be absolute") anatomy = instance.context.data["anatomy"]