mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
🪲 fix task and product type
This commit is contained in:
parent
fd5a5a2142
commit
fe7adf36e6
1 changed files with 9 additions and 3 deletions
|
|
@ -81,12 +81,18 @@ class CollectResourcesPath(pyblish.api.InstancePlugin):
|
||||||
# TODO remove when all clients have solved this issue
|
# TODO remove when all clients have solved this issue
|
||||||
template_data.update({"frame": "FRAME_TEMP", "representation": "TEMP"})
|
template_data.update({"frame": "FRAME_TEMP", "representation": "TEMP"})
|
||||||
|
|
||||||
|
task_name = task_type = None
|
||||||
|
task_entity = instance.data.get("taskEntity")
|
||||||
|
if task_entity:
|
||||||
|
task_name = task_entity.name
|
||||||
|
task_type = task_entity.type
|
||||||
|
|
||||||
template_name = get_publish_template_name(
|
template_name = get_publish_template_name(
|
||||||
project_name=template_data["project"]["name"],
|
project_name=template_data["project"]["name"],
|
||||||
host_name=instance.context.data["hostName"],
|
host_name=instance.context.data["hostName"],
|
||||||
product_type=template_data["product"]["type"],
|
product_type=instance.data["productType"],
|
||||||
task_name=template_data["product"]["name"],
|
task_name=task_name,
|
||||||
task_type=template_data["product"]["type"],
|
task_type=task_type,
|
||||||
project_settings=instance.context.data["project_settings"],
|
project_settings=instance.context.data["project_settings"],
|
||||||
logger=self.log,
|
logger=self.log,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue