Bases: MayaInstancePlugin
, OptionalPyblishPluginMixin
Validates the skeletonAnim_SET
must have one or more objects
Source code in client/ayon_maya/plugins/publish/validate_animation_rig_content.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 | class ValidateAnimatedRigContent(plugin.MayaInstancePlugin,
OptionalPyblishPluginMixin):
"""Validates the `skeletonAnim_SET` must have one or more objects
"""
order = ValidateContentsOrder + 0.05
label = "Animated Rig Content"
families = ["animation.fbx"]
optional = True
def process(self, instance):
if not self.is_active(instance.data):
return
skeleton_anim_nodes = instance.data("animated_skeleton", [])
if not skeleton_anim_nodes:
raise PublishValidationError(
"The skeletonAnim_SET includes no objects.",
description=self.get_description())
@staticmethod
def get_description():
return inspect.cleandoc("""
### Invalid FBX export
FBX export is enabled for your animation instance however the
instance does not meet the required configurations for a valid
export.
It must contain at one or more objects in the `skeletonAnim_SET`.
""")
|