Thank you for your reply
I actually thought I need to use them both! I’ve created a new editor in source/blender/editors (in C++) and a Python script in release/scripts/startup/bl_ui/ .
You are right I don’t really get an error. The new editor window is created, but it is empty, and I really do not understand how to add new elements in the header and in the main region! Not even the toggle to change editor again! Here’s the result:
For what concerns the code, the C++ code is basically the same of the tutorial I linked in my last post ( https://wiki.blender.org/index.php/Dev:Source/UI/Tutorials/AddAnEditor ). While the Python script is:
import bpy from bpy.types import Header, Menu class ACTOR_HT_header(Header): bl_space_type = 'ACTOR' def draw(self, context): layout = self.layout layout.template_header() pass class ACTOR_MT_area(Menu): bl_label = "Area" def draw(self, context): layout = self.layout layout.operator("screen.area_dupli") if context.space_data.type == 'VIEW_3D': layout.operator("screen.region_quadview") layout.operator("screen.screen_full_area") layout.operator("screen.screen_full_area", text="Toggle Fullscreen Area").use_hide_panels = True classes = ( ACTOR_HT_header, ACTOR_MT_area, ) if __name__ == "__main__": # only for live edit. from bpy.utils import register_class for cls in classes: register_class(cls)
It is basically the same code of the info editor (which I think is the simplest), but I changed the name (Actor).