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

Pull clip info from crossfades/fades via python

Updated March 24, 2017 14:15 PM

How to get a MovieClipSequence Clip File via Python

Updated February 21, 2016 01:06 AM

How to get the current active VSE channel?

Updated December 04, 2017 17:15 PM