I’m trying to implement a new editor for Blender 2.8. However, I’m having a few problems, especially because the documentation is not really updated. I’m trying to learn from what I can find in the documentation and the code.
This page https://wiki.blender.org/index.php/Dev:Source/UI/Tutorials/AddAnEditor has been of great help, and thanks to it I managed to create a “blank” space in Blender. However, I’m struggling to continue the development.
The space I create doesn’t have the drop menu to change the space again. I couldn’t find a way to add it. Actually, I couldn’t find a way to add anything to the header or the main region.
Following this page https://wiki.blender.org/index.php/Dev:Doc/FAQ at the section “Where is the UI code?” I have created the python code for my new editor (and also added it to the __init__.py file) in release/scripts/modules/bl_ui/ . But I’m not sure of how I should “connect” the python code with the C code I wrote to create the editor! I’ve tried to mess around with the python files of other editors, and I can see that it has influence (making disappear menus or buttons), so I really believe that the python code I wrote is not working because I need to connect it with the C code I previously wrote.
I also compared what I wrote with other editors’ code (in particular INFO and CONSOLE, which I believe are the simplest), and they are pretty similar to mine. Am I missing something?
Any help would be really appreciated thank you in advance!