From 17f3e0c71b502043f506c4b79d29cdb1df66d80b Mon Sep 17 00:00:00 2001 From: "christophe.seux" Date: Fri, 10 Jan 2025 16:31:57 +0100 Subject: [PATCH] Avoid choosing same source and destination channel in the scene cut detection --- operators/sequencer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/operators/sequencer.py b/operators/sequencer.py index 6144e2f..2b36492 100644 --- a/operators/sequencer.py +++ b/operators/sequencer.py @@ -204,13 +204,13 @@ class VSETB_OT_scene_cut_detection(Operator): def invoke(self, context, event): - # Select active channel by default - if strip := context.active_sequence_strip: - self.source_channel_name = get_channel_name(strip) - if context.scene.sequence_editor.channels.get('Shots'): self.destination_channel_name = 'Shots' + # Select active channel by default + if (strip := context.active_sequence_strip) and get_channel_name(strip) != 'Shots': + self.source_channel_name = get_channel_name(strip) + self.frame_start = context.scene.frame_start self.frame_end = context.scene.frame_end