mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
♻️ some debug option for FBX workflow
This commit is contained in:
parent
5649093230
commit
ee84251cc4
2 changed files with 10 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue