mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
PS - task name pulled from avalon.api instead of env
This commit is contained in:
parent
c2a1017c1d
commit
c9006c3f81
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import os
|
||||
import pyblish.api
|
||||
import avalon.api
|
||||
|
||||
from avalon import photoshop
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ class CollectInstances(pyblish.api.ContextPlugin):
|
|||
instance.data["publish"] = layer.visible
|
||||
|
||||
if self.group_by_task_name:
|
||||
task = os.getenv("AVALON_TASK", None)
|
||||
task = avalon.api.Session["AVALON_TASK"]
|
||||
sanitized_task_name = task[0].upper() + task[1:]
|
||||
instance.data["subsetGroup"] = sanitized_task_name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue