mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Merge branch 'develop' into change/develop/nukestudio_improvements
This commit is contained in:
commit
e302e8d935
1 changed files with 10 additions and 8 deletions
|
|
@ -47,8 +47,9 @@ class ValidateRenderedFrames(pyblish.api.InstancePlugin):
|
|||
|
||||
collection = collections[0]
|
||||
|
||||
frame_length = instance.data["endFrame"] \
|
||||
- instance.data["startFrame"] + 1
|
||||
frame_length = int(
|
||||
instance.data["endFrame"] - instance.data["startFrame"] + 1
|
||||
)
|
||||
|
||||
if frame_length != 1:
|
||||
if len(collections) != 1:
|
||||
|
|
@ -66,13 +67,14 @@ class ValidateRenderedFrames(pyblish.api.InstancePlugin):
|
|||
# self.log.error(msg)
|
||||
# raise ValidationException(msg)
|
||||
|
||||
collected_frames_len = int(len(collection.indexes))
|
||||
self.log.info('frame_length: {}'.format(frame_length))
|
||||
self.log.info('len(collection.indexes): {}'.format(
|
||||
len(collection.indexes)))
|
||||
self.log.info(
|
||||
'len(collection.indexes): {}'.format(collected_frames_len)
|
||||
)
|
||||
|
||||
assert len(
|
||||
collection.indexes
|
||||
) is frame_length, ("{} missing frames. Use "
|
||||
"repair to render all frames").format(__name__)
|
||||
assert (collected_frames_len == frame_length), (
|
||||
"{} missing frames. Use repair to render all frames"
|
||||
).format(__name__)
|
||||
|
||||
instance.data['collection'] = collection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue