Is it possible to create your own editor type with python? I know that I can edit the sources of existing ones like the INFO header. But I want to create a complete new one where I can place my operators.
1 Answer
See API docs - Preface:
The Blender/Python API can’t (yet)...
- Create new space types.
It can only be done in the C code:
http://wiki.blender.org/index.php/Dev:2.6/Source/Tutorials/AddAnEditor
Nonetheless,
you may use draw handlers to overlay an existing editor with python-drawn content. Check out OpenGL Wrapper (bgl) and Font Drawing (blf).
or build blender with the Py-Buttons patch by Campbell Barton to create python-drawn widgets:
http://www.youtube.com/watch?v=mRiTfLpRlRU
(seems to crash if applied to current trunk, use an older revision or wait for a fix)
area.type
is set to use a certain Editor or Space type for that area in Python. $\endgroup$