Blender Kitsu: Set Custom Thumbnail during Playblast #77
@ -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
|
||||
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(
|
||||
0, context.scene.frame_start - context.scene.frame_end
|
||||
0, (context.scene.frame_end - context.scene.frame_start) + 1
|
||||
):
|
||||
self.report(
|
||||
{"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"}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user