From 225e809673265dbf5c4545e4efdf7b24610314b6 Mon Sep 17 00:00:00 2001 From: Toke Jepsen Date: Wed, 31 Jul 2019 18:41:51 +0100 Subject: [PATCH] Validate if any file sequences has been collected. --- .../plugins/global/publish/validate_filesequences.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pype/plugins/global/publish/validate_filesequences.py diff --git a/pype/plugins/global/publish/validate_filesequences.py b/pype/plugins/global/publish/validate_filesequences.py new file mode 100644 index 0000000000..2f4ac3de4f --- /dev/null +++ b/pype/plugins/global/publish/validate_filesequences.py @@ -0,0 +1,12 @@ +import pyblish.api + + +class ValidateFileSequences(pyblish.api.ContextPlugin): + """Validates whether any file sequences were collected.""" + + order = pyblish.api.ValidatorOrder + targets = ["filesequence"] + label = "Validate File Sequences" + + def process(self, context): + assert context, "Nothing collected."