I am writing with the help of Google translator. In the blender 2.8, the status bar went down (there is information about layers and vertices). How to raise the whole thing up? Is there any addon or customization?
1 Answer
Append to the top bar.
The top bar in blender 2.8x is on the top, and the status bar is on the bottom. The status bar can be toggled on and off with python.
bpy.context.screen.show_statusbar = False # off
AFAIK there is no way to move statusbar to top using python. Would need to alter blender's source code.
As a workaround, the statistics previously in 2.79 displayed on info header (often at top of screen) are now in the status bar at bottom of screen.
Run the script below to append scene statistics to the top bar.
import bpy
def draw(self, context):
scene = context.scene
vl = context.view_layer
self.layout.label(text=scene.statistics(vl))
def register():
bpy.types.TOPBAR_HT_upper_bar.append(draw)
def unregister():
bpy.types.TOPBAR_HT_upper_bar.remove(draw)
if __name__ == "__main__":
register()
Alternatively could prepend the whole statusbar to the top bar, but this doesn't work as expected.
import bpy
bpy.types.TOPBAR_HT_upper_bar.prepend(bpy.types.STATUSBAR_HT_header.draw)
Change the theme colors of the topbar header text
To run automatically for all blend files, save the script, with a .py
extension, eg topbar_stats.py
in your 2.80/scripts/startup
folder, or for on a blend by blend basis: save in blend file, making sure once again the name has a .py
extension, and check the register checkbox.
-
$\begingroup$ ( I answer with the help of Google translator. ) Wow This is really very cool! But this is a little wrong. How to move up the entire lower status bar (including information on keystrokes) above the tabs: location, simulation. $\endgroup$– ValeGoGCommented Jul 16, 2019 at 8:15
-
1$\begingroup$ Edited to make it clearer that AFAIK the statusbar is hard-coded to the bottom of screen. Would need to alter blender source to change. $\endgroup$ Commented Jul 17, 2019 at 11:42
-
$\begingroup$ (I use Google translator.) Thank you so much for the answer and for taking the time to go :) @batFINGER $\endgroup$– ValeGoGCommented Jul 19, 2019 at 9:00
-
1$\begingroup$ Cheers. (A good test of any translator is translating the result back to original.) $\endgroup$ Commented Jul 19, 2019 at 9:09