# How to code a working Pie Menu for Sequencer?

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

# 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) :
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) :
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) :
print("coucou")
return {"FINISHED"}

bl_idname = "pie.vsetools"
bl_label = "VSE Tool"

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

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.overrideactivecamera", text = "Override to Active Camera", icon = "SCENE")

def register():
#tools
bpy.utils.register_class(SelectAllToTheLeft)
bpy.utils.register_class(SelectAllToTheRight)
bpy.utils.register_class(OverrideToActiveCamera)

#pie
bpy.utils.register_class(VSE_PIE_riton)

wm = bpy.context.window_manager

def unregister():
#tools
bpy.utils.unregister_class(SelectAllToTheLeft)
bpy.utils.unregister_class(SelectAllToTheRight)
bpy.utils.unregister_class(OverrideToActiveCamera)

#pie
bpy.utils.unregister_class(VSE_PIE_riton)

if __name__ == "__main__":
register()


Too many shortcuts in keymap def.

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

edit:

wm = bpy.context.window_manager
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.2013673037290573, "perplexity": 16136.644954703614}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-09/segments/1550249504746.91/warc/CC-MAIN-20190223142639-20190223164639-00334.warc.gz"}