I want to make it so I (and my students) can access the Graph Editor's "Key" menu from the Timeline. This is very easy to do by changing the source code: in space_time.py
I just need to add sub.menu("GRAPH_MT_key")
under the class TIME_MT_editor_menus(Menu):
as shown in this screenshot:
However, I would really like to do this via an addon so that it is easier to distribute to my students. I am relatively new to addon coding, so I am probably missing something huge, but it seems like all we should need to do is append the Key menu to the Timeline editor menus. I tried the following, but it didn't work:
bl_info = {
"name": "Timeline Key Menu",
"blender": (3, 6, 0),
"location": "Timeline > Key",
"description": ("Adds the graph editor's Key menu to the Timeline window"),
"category": "Animation",
}
import bpy
def register():
bpy.types.TIME_MT_editor_menus.append(bpy.types.GRAPH_MT_key)
def unregister():
bpy.types.TIME_MT_editor_menus.append(bpy.types.GRAPH_MT_key)
if __name__ == "__main__":
register()
Any thoughts on what I'm missing?