2
$\begingroup$

I'm just trying to get my addon panel to show up into the 3D view port, but I can't figure out the correct 'bl_' combination to make it work.

$\endgroup$

1 Answer 1

3
$\begingroup$

Setting bl_space_type = 'VIEW_3D' will place your panel within the 3dview. You then set bl_region_type = 'TOOLS' to have it show in the tools region while the less intuitive bl_region_type = 'UI' places it in the properties region.

If you want to place a panel in the properties editor, you would set bl_space_type = 'PROPERTIES' and bl_region_type = 'WINDOW', then you set bl_context to match the context you want it shown in - Object, Scene, World, Modifier...

Also remember that you need to register your panel class -

def register():
    bpy.utils.register_class(MyPanel)
$\endgroup$
1
  • $\begingroup$ thanks for your reply. I look for add it into the scene 3D. i try also with a popup dialog and it works well but it disappeared when i click in other point of the Blender interface. $\endgroup$
    – Zer2017
    Mar 31, 2017 at 18:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .