How do I select the adjoined handle in the Sequencer with python? I believe that the code actually should do this, but it doesn't?

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:    
            s.select = True
            context.scene.sequence_editor.active_strip = s 
            bpy.ops.sequencer.select(extend=True, linked_handle=True, left_right='NONE', linked_time=False)

        return {'FINISHED'}

def register():

def unregister():

if __name__ == "__main__":

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.