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 bcaf3f9fc4 - Show all commits

View File

@ -244,7 +244,12 @@ class KITSU_OT_playblast_create(bpy.types.Operator):
) )
# Add_preview_to_comment # Add_preview_to_comment
task.add_preview_to_comment(comment, filepath.as_posix(), frame_number=self.frame_number) # Playblast file always starts at frame 0, account for this in thumbnail frame selection
task.add_preview_to_comment(
comment,
filepath.as_posix(),
frame_number=self.frame_number - context.scene.frame_start,
)
# Preview.set_main_preview() # Preview.set_main_preview()
logger.info(f"Uploaded playblast for shot: {shot.name} under: {task_type.name}") logger.info(f"Uploaded playblast for shot: {shot.name} under: {task_type.name}")