Export_3ds: Improved distance cue node search
[blender-addons.git] / power_sequencer / operators / deselect_handles_and_grab.py
blobefaad87faf248ac60b51aa985eb0c496c82dd12a
1 # SPDX-FileCopyrightText: 2016-2020 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors
3 # SPDX-License-Identifier: GPL-3.0-or-later
5 import bpy
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):
11 """
12 Deselect the handles of all selected strips and call the Sequence Slide operator
13 """
15 doc = {
16 "name": doc_name(__qualname__),
17 "demo": "",
18 "description": doc_description(__doc__),
19 "shortcuts": [],
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"}
27 @classmethod
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
35 s.select = True
37 bpy.ops.transform.seq_slide("INVOKE_DEFAULT")
38 return {"FINISHED"}