Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'power_sequencer/operators/cut_strips_under_cursor.py')
-rw-r--r--power_sequencer/operators/cut_strips_under_cursor.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/power_sequencer/operators/cut_strips_under_cursor.py b/power_sequencer/operators/cut_strips_under_cursor.py
index b7c64135..d7e1141a 100644
--- a/power_sequencer/operators/cut_strips_under_cursor.py
+++ b/power_sequencer/operators/cut_strips_under_cursor.py
@@ -23,14 +23,16 @@ from .utils.functions import get_mouse_frame_and_channel
class POWER_SEQUENCER_OT_split_strips_under_cursor(bpy.types.Operator):
"""
Splits all strips under cursor including muted strips, but excluding locked strips.
- Auto selects sequences under the time cursor when you don't have a selection.
+ Auto selects sequences under the time cursor when you don't have a selection
"""
doc = {
"name": doc_name(__qualname__),
"demo": "https://i.imgur.com/ZyEd0jD.gif",
"description": doc_description(__doc__),
- "shortcuts": [({"type": "K", "value": "PRESS"}, {}, "Cut All Strips Under Cursor")],
+ "shortcuts": [
+ ({"type": "K", "value": "PRESS"}, {}, "Cut All Strips Under Cursor")
+ ],
"keymap": "Sequencer",
}
bl_idname = doc_idname(__qualname__)
@@ -39,7 +41,10 @@ class POWER_SEQUENCER_OT_split_strips_under_cursor(bpy.types.Operator):
bl_options = {"REGISTER", "UNDO"}
side: bpy.props.EnumProperty(
- items=[("LEFT", "", ""), ("RIGHT", "", "")], name="Side", default="LEFT", options={"HIDDEN"}
+ items=[("LEFT", "", ""), ("RIGHT", "", "")],
+ name="Side",
+ default="LEFT",
+ options={"HIDDEN"},
)
@classmethod
@@ -61,5 +66,10 @@ class POWER_SEQUENCER_OT_split_strips_under_cursor(bpy.types.Operator):
deselect = False
if deselect:
bpy.ops.sequencer.select_all(action="DESELECT")
- (context.selected_sequences or bpy.ops.power_sequencer.select_strips_under_cursor())
- return bpy.ops.sequencer.split(frame=context.scene.frame_current, side=self.side)
+ (
+ context.selected_sequences
+ or bpy.ops.power_sequencer.select_strips_under_cursor()
+ )
+ return bpy.ops.sequencer.split(
+ frame=context.scene.frame_current, side=self.side
+ )