Merge branch 'enhancement/AY-7584_Library-Push-to-Current-project' into enhancement/copy_multiple_library_project

This commit is contained in:
Petr Kalis 2025-08-18 16:56:41 +02:00
commit 0f090f059c
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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