From b72f94e9eecdac21e9e2bdec748de15d67b6282c Mon Sep 17 00:00:00 2001 From: Simone Barbieri Date: Thu, 6 Jun 2024 15:08:38 +0100 Subject: [PATCH] Fix container data in loaders --- .../hosts/unreal/plugins/load/load_geometrycache_abc.py | 4 ++-- client/ayon_core/hosts/unreal/plugins/load/load_layout.py | 2 +- .../hosts/unreal/plugins/load/load_skeletalmesh_abc.py | 4 ++-- .../hosts/unreal/plugins/load/load_skeletalmesh_fbx.py | 4 ++-- .../hosts/unreal/plugins/load/load_staticmesh_abc.py | 4 ++-- .../hosts/unreal/plugins/load/load_staticmesh_fbx.py | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/ayon_core/hosts/unreal/plugins/load/load_geometrycache_abc.py b/client/ayon_core/hosts/unreal/plugins/load/load_geometrycache_abc.py index 59313d629c..dad930d1ec 100644 --- a/client/ayon_core/hosts/unreal/plugins/load/load_geometrycache_abc.py +++ b/client/ayon_core/hosts/unreal/plugins/load/load_geometrycache_abc.py @@ -118,8 +118,8 @@ class PointCacheAlembicLoader(UnrealBaseLoader): "container_name": container_name, "asset_name": asset_name, "loader": self.__class__.__name__, - "representation": str(context["representation"]["_id"]), - "parent": str(context["representation"]["parent"]), + "representation": str(context["representation"]["id"]), + "parent": str(context["representation"]["versionId"]), "frame_start": frame_start, "frame_end": frame_end, "product_type": product_type, diff --git a/client/ayon_core/hosts/unreal/plugins/load/load_layout.py b/client/ayon_core/hosts/unreal/plugins/load/load_layout.py index 41525f622d..6fd9ac8957 100644 --- a/client/ayon_core/hosts/unreal/plugins/load/load_layout.py +++ b/client/ayon_core/hosts/unreal/plugins/load/load_layout.py @@ -580,7 +580,7 @@ class LayoutLoader(UnrealBaseLoader): "container_name": container_name, "asset_name": asset_name, "loader": str(self.__class__.__name__), - "representation": str(context["representation"]["_id"]), + "representation": str(context["representation"]["id"]), "parent": str(context["representation"]["versionId"]), "family": context["product"]["productType"], "loaded_assets": loaded_assets diff --git a/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_abc.py b/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_abc.py index f2c6f9b8f7..ec5fa80fbe 100644 --- a/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_abc.py +++ b/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_abc.py @@ -106,8 +106,8 @@ class SkeletalMeshAlembicLoader(UnrealBaseLoader): "container_name": container_name, "asset_name": asset_name, "loader": self.__class__.__name__, - "representation": str(context["representation"]["_id"]), - "parent": str(context["representation"]["parent"]), + "representation": str(context["representation"]["id"]), + "parent": str(context["representation"]["versionId"]), "default_conversion": default_conversion, "product_type": product_type, # TODO these should be probably removed diff --git a/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_fbx.py b/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_fbx.py index 49a0480047..58dcfa3f5f 100644 --- a/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_fbx.py +++ b/client/ayon_core/hosts/unreal/plugins/load/load_skeletalmesh_fbx.py @@ -113,8 +113,8 @@ class SkeletalMeshFBXLoader(UnrealBaseLoader): "container_name": container_name, "asset_name": asset_name, "loader": self.__class__.__name__, - "representation": str(context["representation"]["_id"]), - "parent": str(context["representation"]["parent"]), + "representation": str(context["representation"]["id"]), + "parent": str(context["representation"]["versionId"]), "product_type": product_type, # TODO these should be probably removed "asset": folder_path, diff --git a/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_abc.py b/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_abc.py index 6d1760ba93..9a720204be 100644 --- a/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_abc.py +++ b/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_abc.py @@ -112,8 +112,8 @@ class StaticMeshAlembicLoader(UnrealBaseLoader): "container_name": container_name, "asset_name": asset_name, "loader": self.__class__.__name__, - "representation": str(context["representation"]["_id"]), - "parent": str(context["representation"]["parent"]), + "representation": str(context["representation"]["id"]), + "parent": str(context["representation"]["versionId"]), "default_conversion": default_conversion, "product_type": product_type, # TODO these should be probably removed diff --git a/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_fbx.py b/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_fbx.py index 2fff9f4d03..30b2a41155 100644 --- a/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_fbx.py +++ b/client/ayon_core/hosts/unreal/plugins/load/load_staticmesh_fbx.py @@ -98,8 +98,8 @@ class StaticMeshFBXLoader(UnrealBaseLoader): "container_name": container_name, "asset_name": asset_name, "loader": self.__class__.__name__, - "representation": str(context["representation"]["_id"]), - "parent": str(context["representation"]["parent"]), + "representation": str(context["representation"]["id"]), + "parent": str(context["representation"]["versionId"]), "product_type": product_type, # TODO these should be probably removed "asset": folder_path,