adding slate condition to plugin

This commit is contained in:
Jakub Jezek 2023-04-20 21:39:49 +02:00
parent 452b4623ba
commit f05f7510b4
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -49,7 +49,12 @@ class ValidateSequenceFrames(pyblish.api.InstancePlugin):
collection = collections[0]
frames = list(collection.indexes)
if instance.data.get("slate"):
# Slate is not part of the frame range
frames = frames[1:]
current_range = (frames[0], frames[-1])
required_range = (instance.data["frameStart"],
instance.data["frameEnd"])