use modal and display shots created one after other

This commit is contained in:
2024-05-27 14:40:23 +02:00
parent b1bde01b57
commit 940cd1100f
4 changed files with 133 additions and 40 deletions
+16 -1
View File
@@ -582,4 +582,19 @@ def update_text_strips(scene):
strip['text_pattern'] = strip.text
if 'text_pattern' in strip.keys():
strip.text = strip['text_pattern'].format_map(MissingKey(**format_data))
strip.text = strip['text_pattern'].format_map(MissingKey(**format_data))
def create_shot_strip(name, start, end):
shot_strip = bpy.context.scene.sequence_editor.sequences.new_effect(
name,
'COLOR',
get_channel_index('Shots'),
frame_start=start,
frame_end=end
)
shot_strip.blend_alpha = 0
shot_strip.color = (0.5, 0.5, 0.5)
return shot_strip