Blender Kitsu: Add Operator to Import Playblasts into Edit #274

Merged
Nick Alberelli merged 16 commits from TinyNick/blender-studio-pipeline:feature/import-playblasts into main 2024-04-03 17:38:07 +02:00
Showing only changes of commit a6b8d633ac - Show all commits

View File

@ -2360,9 +2360,9 @@ class KITSU_OT_shot_image_sequence(bpy.types.Operator):
if not cache.project_active_get(): if not cache.project_active_get():
cls.poll_message_set("No Kitsu Project Found check Add-on Preferences") cls.poll_message_set("No Kitsu Project Found check Add-on Preferences")
return False return False
for sqe in context.selected_sequences: for strip in context.selected_sequences:
if sqe.type != 'MOVIE': if strip.kitsu.shot_id == "":
cls.poll_message_set("Selected strips must be 'MOVIE'") cls.poll_message_set(f"Selected strip {strip.name} is not metadata strip'")
return False return False
if len(bpy.context.selected_sequences) == 0: if len(bpy.context.selected_sequences) == 0:
cls.poll_message_set("Please select a 'MOVIE' strip") cls.poll_message_set("Please select a 'MOVIE' strip")