Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2746 from pypeclub/feature/OP-2650_flame-validato…
Browse files Browse the repository at this point in the history
…r-instance-data-has-flameSourceClip
  • Loading branch information
jakubjezek001 authored Feb 18, 2022
2 parents be04bc8 + a2ff926 commit 5b3d9db
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions openpype/hosts/flame/plugins/publish/validate_source_clip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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"]

self.log.debug("_ flame_source_clip: {}".format(flame_source_clip))

if flame_source_clip is None:
raise AttributeError((
"Timeline segment `{}` is not having "
"relative clip in reels. Please make sure "
"you push `Save Sources` button in Conform Tab").format(
instance.data["asset"]
))

0 comments on commit 5b3d9db

Please sign in to comment.