mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
OP-2766 - Fix pulling task and project from context
This commit is contained in:
parent
cc1cc364c7
commit
0f08f3e31d
2 changed files with 5 additions and 4 deletions
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue