slate frame exception - in case it already exists

This commit is contained in:
Jakub Jezek 2023-09-25 11:21:28 +02:00
parent 51875f592e
commit 4289997553
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -588,6 +588,12 @@ class ExporterReview(object):
# get first and last frame
self.first_frame = min(self.collection.indexes)
self.last_frame = max(self.collection.indexes)
# make sure slate frame is not included
frame_start_handle = self.instance.data["frameStartHandle"]
if frame_start_handle > self.first_frame:
self.first_frame = frame_start_handle
else:
self.fname = os.path.basename(self.path_in)
self.fhead = os.path.splitext(self.fname)[0] + "."