mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
♻️ make the validation logic more clear
This commit is contained in:
parent
1279acc090
commit
97834e32ba
1 changed files with 4 additions and 4 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue