mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
flame: adding validation of source clip
This commit is contained in:
parent
926eb5b95e
commit
26ce68ad70
1 changed files with 21 additions and 0 deletions
21
openpype/hosts/flame/plugins/publish/validate_source_clip.py
Normal file
21
openpype/hosts/flame/plugins/publish/validate_source_clip.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import pyblish
|
||||
|
||||
@pyblish.api.log
|
||||
class ValidateSourceClip(pyblish.api.InstancePlugin):
|
||||
"""Validate instance is not having empty `flameSourceClip`"""
|
||||
|
||||
order = pyblish.api.ValidatorOrder
|
||||
label = "Validate Source Clip"
|
||||
hosts = ["flame"]
|
||||
families = ["clip"]
|
||||
|
||||
def process(self, instance):
|
||||
flame_source_clip = instance.data["flameSourceClip"]
|
||||
|
||||
if flame_source_clip is None:
|
||||
raise (
|
||||
"Timeline segment `{}` is not having "
|
||||
"relative clip in reels. Please make sure "
|
||||
"you push `Save Sources` button in Conform Tab").format(
|
||||
instance.data["name"]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue