mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge branch 'enhancement/AY-7584_Library-Push-to-Current-project' into enhancement/copy_multiple_library_project
This commit is contained in:
commit
0f090f059c
2 changed files with 6 additions and 6 deletions
|
|
@ -6,8 +6,8 @@ from ayon_core.pipeline import load
|
|||
from ayon_core.pipeline.load import LoadError
|
||||
|
||||
|
||||
class PushToLibraryProject(load.ProductLoaderPlugin):
|
||||
"""Export selected versions to folder structure from Template"""
|
||||
class PushToProject(load.ProductLoaderPlugin):
|
||||
"""Export selected versions to different project"""
|
||||
|
||||
is_multiple_contexts_compatible = True
|
||||
|
||||
|
|
@ -41,7 +41,6 @@ class PushToLibraryProject(load.ProductLoaderPlugin):
|
|||
version_ids.append(context["version"]["id"])
|
||||
|
||||
args = get_ayon_launcher_args(
|
||||
"run",
|
||||
push_tool_script_path,
|
||||
"--project", project_name,
|
||||
"--versions", ",".join(version_ids)
|
||||
|
|
@ -5,6 +5,7 @@ import itertools
|
|||
import sys
|
||||
import traceback
|
||||
import uuid
|
||||
from typing import Optional
|
||||
|
||||
import ayon_api
|
||||
from ayon_api.utils import create_entity_id
|
||||
|
|
@ -1160,10 +1161,10 @@ class ProjectPushItemProcess:
|
|||
{"active": False}
|
||||
)
|
||||
|
||||
def _copy_version_thumbnail(self):
|
||||
def _copy_version_thumbnail(self) -> Optional[str]:
|
||||
thumbnail_id = self._src_version_entity["thumbnailId"]
|
||||
if not thumbnail_id:
|
||||
return
|
||||
return None
|
||||
path = get_thumbnail_path(
|
||||
self._item.src_project_name,
|
||||
"version",
|
||||
|
|
@ -1171,7 +1172,7 @@ class ProjectPushItemProcess:
|
|||
thumbnail_id
|
||||
)
|
||||
if not path:
|
||||
return
|
||||
return None
|
||||
return ayon_api.create_thumbnail(
|
||||
self._item.dst_project_name,
|
||||
path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue