Fix pulling task and project from context

This commit is contained in:
Petr Kalis 2022-03-29 17:21:49 +02:00
parent 9d8df33d4a
commit 8b1cfa7d19
2 changed files with 4 additions and 4 deletions

View file

@ -15,12 +15,12 @@ class CollectReview(pyblish.api.ContextPlugin):
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

@ -13,12 +13,12 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
def process(self, context):
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"
)