Blender Kitsu: Set Custom Thumbnail during Playblast #77

Merged
Nick Alberelli merged 12 commits from feature/custom-playblast-thumbnails into main 2023-06-15 21:26:54 +02:00
Showing only changes of commit 3baec3a9b7 - Show all commits

View File

@ -95,13 +95,13 @@ class KITSU_OT_playblast_create(bpy.types.Operator):
# Playblast file always starts at frame 0, account for this in thumbnail frame selection # Playblast file always starts at frame 0, account for this in thumbnail frame selection
self.thumbnail_frame_final = self.thumbnail_frame - context.scene.frame_start self.thumbnail_frame_final = self.thumbnail_frame - context.scene.frame_start
# Ensure thumbnail frame is not outside of rendered frame range # Ensure thumbnail frame is not outside of frame range
if self.thumbnail_frame_final not in range( if self.thumbnail_frame_final not in range(
0, context.scene.frame_start - context.scene.frame_end 0, (context.scene.frame_end - context.scene.frame_start) + 1
): ):
self.report( self.report(
{"ERROR"}, {"ERROR"},
f"Thumbnail frame '{self.thumbnail_frame}' is outside of rendered frame range ", f"Thumbnail frame '{self.thumbnail_frame}' is outside of frame range ",
) )
return {"CANCELLED"} return {"CANCELLED"}