[Bf-python] Manually unregistering addon panels

Adhi Hargo cadmus.sw at gmail.com
Tue Jul 30 17:55:17 CEST 2013


If you just want to hide a panel registered by an addon, writing a
poll() classmethod would be sufficient.

class MyPanel(bpy.types.Panel):
    ...
    @classmethod
    def poll(class, context):
        show_this_panel = True
        return show_this_panel

It's done similarly whether in an addon or not.

-- 
- Adhi Hargo



More information about the Bf-python mailing list