From 1a9817cdcae64752040acad013d7c3c50d77c83d Mon Sep 17 00:00:00 2001 From: Ramon Klauck Date: Mon, 11 Aug 2025 21:40:04 +0200 Subject: [PATCH] VSE: add copy and paste operators to preview keymap This feature allows the user to use `ctrl + C`, `ctrl + V` and `ctrl + shift + V` directly in the sequencer preview. It adds these operators also to the preview Strip menu. It works the same as in the sequencer timeline. Pull Request: https://projects.blender.org/blender/blender/pulls/143371 --- scripts/presets/keyconfig/keymap_data/blender_default.py | 4 ++++ scripts/startup/bl_ui/space_sequencer.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/scripts/presets/keyconfig/keymap_data/blender_default.py b/scripts/presets/keyconfig/keymap_data/blender_default.py index 994c832d117..e6cc5412a76 100644 --- a/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -3242,6 +3242,10 @@ def km_sequencer_preview(params): {"properties": [("unselected", False)]}), ("sequencer.delete", {"type": 'X', "value": 'PRESS'}, None), ("sequencer.delete", {"type": 'DEL', "value": 'PRESS'}, None), + ("sequencer.copy", {"type": 'C', "value": 'PRESS', "ctrl": True}, None), + ("sequencer.paste", {"type": 'V', "value": 'PRESS', "ctrl": True}, None), + ("sequencer.paste", {"type": 'V', "value": 'PRESS', "ctrl": True, "shift": True}, + {"properties": [("keep_offset", True)]}), # Animation ("anim.keyframe_insert", {"type": 'I', "value": 'PRESS'}, None), diff --git a/scripts/startup/bl_ui/space_sequencer.py b/scripts/startup/bl_ui/space_sequencer.py index c8adc7bf8ad..2030ecdf031 100644 --- a/scripts/startup/bl_ui/space_sequencer.py +++ b/scripts/startup/bl_ui/space_sequencer.py @@ -1146,6 +1146,8 @@ class SEQUENCER_MT_strip(Menu): if has_preview: layout.separator() layout.operator("sequencer.preview_duplicate_move", text="Duplicate") + layout.operator("sequencer.copy", text="Copy") + layout.operator("sequencer.paste", text="Paste") layout.separator() layout.menu("SEQUENCER_MT_strip_animation") layout.separator()