Refacto of the scene cut detection, make it generic and add another algorythm as an option

This commit is contained in:
2025-01-10 16:24:52 +01:00
parent de16df05ef
commit 425c842bfd
8 changed files with 248 additions and 155 deletions
+2 -2
View File
@@ -585,12 +585,12 @@ def update_text_strips(scene):
strip.text = strip['text_pattern'].format_map(MissingKey(**format_data))
def create_shot_strip(name, start, end):
def create_shot_strip(name, start, end, channel='Shots'):
shot_strip = bpy.context.scene.sequence_editor.sequences.new_effect(
name,
'COLOR',
get_channel_index('Shots'),
get_channel_index(channel),
frame_start=start,
frame_end=end
)