Select adjoined handle in Sequencer with python?

by tintwotin   Last Updated December 06, 2018 14:15 PM

How do I select the adjoined handle in the Sequencer with python?

enter image description here

import bpy

class SequencerSelectAdjoinedLeft(bpy.types.Operator):
    """Select Adjoined Left"""

    bl_idname = "sequencer.select_adjoined_left"
    bl_label = "Select Adjoined Left"
    bl_options = {'REGISTER', 'UNDO'}

    def poll(cls, context):
        return bpy.context.scene is not None

    def execute(self, context):

        selection = context.selected_sequences

        if not selection:
            return {'CANCELLED'}  

        for s in selection:    
   = True
            context.scene.sequence_editor.active_strip = s 
  , linked_handle=True, left_right='NONE', linked_time=False)

        return {'FINISHED'}

def register():

def unregister():

if __name__ == "__main__":

Related Questions

Updated September 08, 2016 08:06 AM

Updated March 24, 2017 14:15 PM

Updated May 13, 2019 21:15 PM

Updated February 21, 2016 01:06 AM

Updated March 24, 2017 23:15 PM