From b9150f745571ee18a67bd790e280e7ebacd015cc Mon Sep 17 00:00:00 2001 From: wijnand Date: Mon, 7 May 2018 16:51:07 +0200 Subject: [PATCH] added hosts as currently the check is for on disk files --- .../plugins/global/publish/validate_sequence_frames.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/colorbleed/plugins/global/publish/validate_sequence_frames.py b/colorbleed/plugins/global/publish/validate_sequence_frames.py index dcd2fab3d7..e015648da8 100644 --- a/colorbleed/plugins/global/publish/validate_sequence_frames.py +++ b/colorbleed/plugins/global/publish/validate_sequence_frames.py @@ -1,11 +1,10 @@ import pyblish.api -from avalon.vendor import clique class ValidateSequenceFrames(pyblish.api.InstancePlugin): """Ensure the sequence of frames is complete - The files found in the instance are checked against the startFrame and + The files found in the folder are checked against the startFrame and endFrame of the instance. If the first or last file is not corresponding with the first or last frame it is flagged as invalid. """ @@ -13,15 +12,11 @@ class ValidateSequenceFrames(pyblish.api.InstancePlugin): order = pyblish.api.ValidatorOrder label = "Validate Sequence Frames" families = ["colorbleed.imagesequence", "colorbleed.yeticache"] + hosts = ["shell"] def process(self, instance): collection = instance[0] - # Hack: Skip the check for `colorbleed.yeticache` from within Maya - # When publishing a Yeti cache from Maya the "collection" is a node, - # which is a string and it will fail when calling `indexes` - if not isinstance(collection, clique.Collection): - return self.log.warning(collection) frames = list(collection.indexes)