How to check the list of operators added to the area header

To add an operator to the area header, we can use the “append” and “prepend” functions specifying in its parameters the drawing function of the operator call button.

For example, to add an operator of adding the default cube to the header of the viewport (3D View) area, we need to define the operator drawing function:

and add it to the window header:

The operator button will appear in the header of the viewport window.

Now we can view a list of all the functions that add operators to the area header by the “_draw_funcs” property of the “draw” method.

Note that the “_draw_funcs” property would be defined only if custom operators have been added to the area header. If custom operators were not added to the header, an error will be thrown:

AttributeError: ‘function’ object has no attribute ‘_draw_funcs’

My add-ons for Blender 2.90

Checked the work of my add-ons with the current Blender 2.90 release – all add-ons work correctly.

Add-ons tested for compatibility:

Area Switcher
Watermark Plus
Nodetree Source
Qr Signature
Eevee Materials Override
Print To Python Console
Specification Sheet
Accurate Region Border
Parent Plus
Add-Ons Template Generator
Environment Brute Force

Where did the status bar disappear in Blender 2.90

In Blender 2.90, the status bar with the number of vertices/edges/polygons of the selected object and with the amount of memory used is removed from the 3D Viewport by default.

You can return the displaying of the status bar back in Blender preferences.

Continue reading “Where did the status bar disappear in Blender 2.90”