♻️ some debug option for FBX workflow

This commit is contained in:
Ondřej Samohel 2024-04-09 12:25:04 +02:00
parent 5649093230
commit ee84251cc4
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
2 changed files with 10 additions and 2 deletions

View file

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

View file

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