diff --git a/client/ayon_core/hosts/maya/plugins/publish/collect_fbx_animation.py b/client/ayon_core/hosts/maya/plugins/publish/collect_fbx_animation.py index d8fd7a16e8..6ddad5870e 100644 --- a/client/ayon_core/hosts/maya/plugins/publish/collect_fbx_animation.py +++ b/client/ayon_core/hosts/maya/plugins/publish/collect_fbx_animation.py @@ -22,14 +22,22 @@ class CollectFbxAnimation(pyblish.api.InstancePlugin, if i.endswith("skeletonAnim_SET") ] if not skeleton_sets: + self.log.debug( + "No animated skeleton found in instance: `{}`".format( + instance.name + )) return instance.data["families"].append("animation.fbx") instance.data["animated_skeleton"] = [] for skeleton_set in skeleton_sets: + if not skeleton_set: + self.log.debug(f"Skipping empty skeleton set: {skeleton_set}") + continue skeleton_content = cmds.sets(skeleton_set, query=True) self.log.debug( - "Collected animated skeleton data: {}".format( + "Collected animated skeleton data in {}: {}".format( + skeleton_set, skeleton_content )) if skeleton_content: diff --git a/client/ayon_core/hosts/maya/plugins/publish/extract_fbx_animation.py b/client/ayon_core/hosts/maya/plugins/publish/extract_fbx_animation.py index ee66ed2fb7..ec0fbeecc4 100644 --- a/client/ayon_core/hosts/maya/plugins/publish/extract_fbx_animation.py +++ b/client/ayon_core/hosts/maya/plugins/publish/extract_fbx_animation.py @@ -47,7 +47,7 @@ class ExtractFBXAnimation(publish.Extractor): i for i in instance if i.endswith("skeletonAnim_SET") ] - self.log.debug( + self.log.warning( "Top group of animated skeleton not found in " "{}.\nSkipping fbx animation extraction.".format(skeleton_set)) return