diff --git a/client/ayon_unreal/plugins/load/load_layout.py b/client/ayon_unreal/plugins/load/load_layout.py index b2ae9cfb..ceb89433 100644 --- a/client/ayon_unreal/plugins/load/load_layout.py +++ b/client/ayon_unreal/plugins/load/load_layout.py @@ -94,14 +94,15 @@ def _get_asset_containers(self, path): @staticmethod def _get_fbx_loader(loaders, family): name = "" - if family == 'rig': + if family in ['rig', 'skeletalMesh']: name = "SkeletalMeshFBXLoader" - elif family == 'model': + elif family in ['model', 'staticMesh']: name = "StaticMeshFBXLoader" elif family == 'camera': name = "CameraLoader" if name == "": + return None for loader in loaders: @@ -113,9 +114,9 @@ def _get_fbx_loader(loaders, family): @staticmethod def _get_abc_loader(loaders, family): name = "" - if family == 'rig': + if family in ['rig', 'skeletalMesh']: name = "SkeletalMeshAlembicLoader" - elif family == 'model': + elif family in ['model', 'staticMesh']: name = "StaticMeshAlembicLoader" if name == "": @@ -421,7 +422,9 @@ def _process(self, lib_path, asset_dir, sequence, if not loader: self.log.error( - f"No valid loader found for {repre_id}") + f"No valid loader found for {repre_id} " + f"({repr_format}) " + f"{product_type}") continue options = { @@ -461,12 +464,12 @@ def _process(self, lib_path, asset_dir, sequence, actors = [] - if product_type == 'model': + if product_type in ['model', 'staticMesh']: actors, _ = self._process_family( assets, 'StaticMesh', transform, basis, sequence, inst, rotation ) - elif product_type == 'rig': + elif product_type in ['rig', 'skeletalMesh']: actors, bindings = self._process_family( assets, 'SkeletalMesh', transform, basis, sequence, inst, rotation @@ -523,10 +526,10 @@ def _remove_actors(self, path): asset_container.get_asset(), "family") assets = EditorAssetLibrary.list_assets( str(package_path), recursive=False) - if family == 'model': + if family in ['model', 'staticMesh']: self._remove_family( assets, static_meshes_comp, 'StaticMesh', 'static_mesh') - elif family == 'rig': + elif family in ['rig', 'skeletalMesh']: self._remove_family( assets, skel_meshes_comp, 'SkeletalMesh', 'skeletal_mesh')