1 # SPDX-FileCopyrightText: 2016-2020 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors
3 # SPDX-License-Identifier: GPL-3.0-or-later
7 from .utils
.doc
import doc_name
, doc_idname
, doc_brief
, doc_description
10 class POWER_SEQUENCER_OT_deselect_handles_and_grab(bpy
.types
.Operator
):
12 Deselect the handles of all selected strips and call the Sequence Slide operator
16 "name": doc_name(__qualname__
),
18 "description": doc_description(__doc__
),
20 "keymap": "Sequencer",
22 bl_idname
= doc_idname(__qualname__
)
23 bl_label
= doc
["name"]
24 bl_description
= doc_brief(doc
["description"])
25 bl_options
= {"REGISTER", "UNDO"}
28 def poll(cls
, context
):
29 return context
.selected_sequences
31 def execute(self
, context
):
32 for s
in context
.selected_sequences
:
33 s
.select_left_handle
= False
34 s
.select_right_handle
= False
37 bpy
.ops
.transform
.seq_slide("INVOKE_DEFAULT")