How to code a working Pie Menu for the Sequencer? There has been coded pie menus for most elements in Blender, but not the Sequencer. I found this example, but it is not working for me. Nothing happens when pressing "S". Is the reason that it is not possible to do a pie menu for the sequencer?

import bpy
from bpy.types import Menu

# spawn a selection of tools for speeding up VSE workflow

#Select all strips to the left
class SelectAllToTheLeft(bpy.types.Operator):
    bl_idname = "sequencer.allleft"
    bl_label = "All strips to the left"

    def execute(self, context) :'LEFT', linked_time=True)
        return {'FINISHED'}

#Select all strips to the right
class SelectAllToTheRight(bpy.types.Operator):
    bl_idname = "sequencer.allright"
    bl_label = "All strips to the right"

    def execute(self, context) :'RIGHT', linked_time=True)
        return {'FINISHED'}

#Set current override camera as active camera in the viewport
class OverrideToActiveCamera(bpy.types.Operator):
    bl_idname = "sequencer.overrideactivecamera"
    bl_label = "Overide Camera to active"

    def execute(self, context) :
        return {"FINISHED"}

class VSE_PIE_riton(Menu):
    bl_idname = "pie.vsetools"
    bl_label = "VSE Tool"

    def draw(self, context):
        layout = self.layout

        pie = layout.menu_pie()

        pie.operator("sequencer.allleft", text = "All strips to the left", icon="BACK")
        pie.operator("sequencer.allright", text = "All strips to the right", icon="FORWARD")
        pie.operator("sequencer.reload", text = "Reload strips",icon="FILE_REFRESH")
        pie.operator("sequencer.overrideactivecamera", text = "Override to Active Camera", icon = "SCENE")

def register():


    wm = bpy.context.window_manager
    km ="Sequencer")
    kmi ="wm.call_menu_pie","S", "PRESS")"pie.vsetools"

def unregister():


if __name__ == "__main__":
up vote 2 down vote accepted

Too many shortcuts in keymap def.

  • Define the space for keymap
  • Use keyword arguments to make sure they are assigned correctly.


wm = bpy.context.window_manager
km ="Sequencer",
kmi ="wm.call_menu_pie", 
        value="PRESS") = "pie.vsetools"

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.