OP-2766 - Fix pulling task and project from context

This commit is contained in:
Petr Kalis 2022-03-29 17:25:19 +02:00
parent cc1cc364c7
commit 0f08f3e31d
2 changed files with 5 additions and 4 deletions

View file

@ -23,15 +23,16 @@ class CollectReview(pyblish.api.ContextPlugin):
label = "Collect Review"
order = pyblish.api.CollectorOrder
hosts = ["photoshop"]
order = pyblish.api.CollectorOrder + 0.1
def process(self, context):
family = "review"
task = os.getenv("AVALON_TASK", None)
subset = get_subset_name(
family,
"",
task,
context.data["anatomyData"]["task"]["name"],
context.data["assetEntity"]["_id"],
context.data["anatomyData"]["project"]["name"],
host_name="photoshop"
)

View file

@ -20,12 +20,12 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
break
family = "workfile"
task = os.getenv("AVALON_TASK", None)
subset = get_subset_name(
family,
"",
task,
context.data["anatomyData"]["task"]["name"],
context.data["assetEntity"]["_id"],
context.data["anatomyData"]["project"]["name"],
host_name="photoshop"
)