mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #2006 from pypeclub/bugfix/webpublisher_task_type
This commit is contained in:
commit
3d841611af
1 changed files with 9 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ Provides:
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import clique
|
import clique
|
||||||
|
import tempfile
|
||||||
|
|
||||||
import pyblish.api
|
import pyblish.api
|
||||||
from avalon import io
|
from avalon import io
|
||||||
|
|
@ -94,7 +95,7 @@ class CollectPublishedFiles(pyblish.api.ContextPlugin):
|
||||||
instance.data["families"] = families
|
instance.data["families"] = families
|
||||||
instance.data["version"] = \
|
instance.data["version"] = \
|
||||||
self._get_last_version(asset, subset) + 1
|
self._get_last_version(asset, subset) + 1
|
||||||
instance.data["stagingDir"] = task_dir
|
instance.data["stagingDir"] = tempfile.mkdtemp()
|
||||||
instance.data["source"] = "webpublisher"
|
instance.data["source"] = "webpublisher"
|
||||||
|
|
||||||
# to store logging info into DB openpype.webpublishes
|
# to store logging info into DB openpype.webpublishes
|
||||||
|
|
@ -113,6 +114,8 @@ class CollectPublishedFiles(pyblish.api.ContextPlugin):
|
||||||
instance.data["frameEnd"] = \
|
instance.data["frameEnd"] = \
|
||||||
instance.data["representations"][0]["frameEnd"]
|
instance.data["representations"][0]["frameEnd"]
|
||||||
else:
|
else:
|
||||||
|
instance.data["frameStart"] = 0
|
||||||
|
instance.data["frameEnd"] = 1
|
||||||
instance.data["representations"] = self._get_single_repre(
|
instance.data["representations"] = self._get_single_repre(
|
||||||
task_dir, task_data["files"], tags
|
task_dir, task_data["files"], tags
|
||||||
)
|
)
|
||||||
|
|
@ -174,7 +177,11 @@ class CollectPublishedFiles(pyblish.api.ContextPlugin):
|
||||||
(family, [families], subset_template_name, tags) tuple
|
(family, [families], subset_template_name, tags) tuple
|
||||||
AssertionError if not matching family found
|
AssertionError if not matching family found
|
||||||
"""
|
"""
|
||||||
task_obj = settings.get(task_type)
|
task_type = task_type.lower()
|
||||||
|
lower_cased_task_types = {}
|
||||||
|
for t_type, task in settings.items():
|
||||||
|
lower_cased_task_types[t_type.lower()] = task
|
||||||
|
task_obj = lower_cased_task_types.get(task_type)
|
||||||
assert task_obj, "No family configuration for '{}'".format(task_type)
|
assert task_obj, "No family configuration for '{}'".format(task_type)
|
||||||
|
|
||||||
found_family = None
|
found_family = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue