mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
allow for aov_filter preset override
This commit is contained in:
parent
8cbf3943c8
commit
1cdc959551
1 changed files with 4 additions and 4 deletions
|
|
@ -148,7 +148,7 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
|
||||
families = ["render.farm", "renderlayer", "imagesequence"]
|
||||
|
||||
aov_filter = [AOVFilter("maya", ["beauty"])]
|
||||
aov_filter = {"maya": ["beauty"]}
|
||||
|
||||
enviro_filter = [
|
||||
"PATH",
|
||||
|
|
@ -307,9 +307,9 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
|||
preview = False
|
||||
# if filtered aov name is found in filename, toggle it for
|
||||
# preview video renderin
|
||||
for filter in self.aov_filter:
|
||||
if os.environ.get("AVALON_APP", "") == filter.app:
|
||||
for aov in filter.aov:
|
||||
for app in self.aov_filter:
|
||||
if os.environ.get("AVALON_APP", "") == app:
|
||||
for aov in self.aov_filter[app]:
|
||||
if re.match(
|
||||
r".+(?:\.|_)({})(?:\.|_).*".format(aov),
|
||||
list(c)[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue