Where is the timeline reference in the code? (or how do I access it?)

Hey there! I’ve just migrated my project to 2.8 and as I was re-binding my shortcuts I noticed I wasn’t able to bind the timeline window anymore. The error said that it wasn’t contained in the array of possible windows.

In 2,79 I’d access it through wm.context_set_enum “TIMELINE”

But here it just says there is no value called TIMELINE

Is there something I can do about it?
Here is the exact error:

Traceback (most recent call last):
File “D:\Programs\Blender 2.8\blender-2.80.0 alpha2\2.80\scripts\startup\bl_operators\wm.py”, line 142, in execute_context_assign
exec(“context.%s = self.value” % data_path)
File “”, line 1, in
TypeError: bpy_struct: item.attr = val: enum “TIMELINE” not found in (, ‘VIEW_3D’, ‘IMAGE_EDITOR’, ‘NODE_EDITOR’, ‘SEQUENCE_EDITOR’, ‘CLIP_EDITOR’, ‘DOPESHEET_EDITOR’, ‘GRAPH_EDITOR’, ‘NLA_EDITOR’, ‘TEXT_EDITOR’, ‘CONSOLE’, ‘INFO’, ‘OUTLINER’, ‘PROPERTIES’, 'FILE_BROWSE)
location: :-1

I hope this is fixable… I’d be happy to dig through the code a bit if needed, though I’m not very adept at it, I’ve always wanted to get acquainted with blender’s binary guts.

Cheers!

The timeline is now a sub-editor of the dopesheet. If you set both the editor to the dopesheet and its mode to the timeline then it should work, but I’m not sure it’s possible with wm.context_set_enum for keymaps.

We should have a single property to easily set the editors listed in the UI, but it seems to be missing now.

Ah, right! I see. Very well then, thank you for replying! :grinning: