fixed default filter and list handling

This commit is contained in:
Ondrej Samohel 2022-04-12 17:10:11 +02:00
parent 6d63abc513
commit 052392ac35
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
families = ["render.farm", "prerender.farm",
"renderlayer", "imagesequence", "vrayscene"]
aov_filter = {"maya": [r".*(?:[\._-])*([Bb]eauty)(?:[\.|_])*.*"],
aov_filter = {"maya": [r".*([Bb]eauty).*"],
"aftereffects": [r".*"], # for everything from AE
"harmony": [r".*"], # for everything from AE
"celaction": [r".*"]}
@ -130,7 +130,7 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
"OPENPYPE_PUBLISH_JOB"
]
# custom deadline atributes
# custom deadline attributes
deadline_department = ""
deadline_pool = ""
deadline_pool_secondary = ""

View file

@ -21,4 +21,4 @@ def match_aov_pattern(host_name, aov_patterns, render_file_name):
aov_pattern = aov_patterns.get(host_name, [])
if not aov_pattern:
return False
return re.match(aov_pattern, render_file_name) is not None
return any(re.match(p, render_file_name) for p in aov_pattern)