4
$\begingroup$

I'm just trying to to get my addon panel to show up in the tool shelf in Texture Paint mode, but I can't figure out the correct 'bl_' combination to make it work.

$\endgroup$

1 Answer 1

5
$\begingroup$

I use this

bl_<prop>      | allowed
---------------+-------------------------------------------------------------
bl_space_type  | 'CLIP_EDITOR', 'CONSOLE', 'DOPESHEET_EDITOR', 'EMPTY',
               | 'FILE_BROWSER', 'GRAPH_EDITOR', 'IMAGE_EDITOR', 'INFO',
               | 'LOGIC_EDITOR', 'NLA_EDITOR', 'NODE_EDITOR', 'OUTLINER',
               | 'PROPERTIES', 'SEQUENCE_EDITOR', 'TEXT_EDITOR', 'TIMELINE',
               | 'USER_PREFERENCES', 'VIEW_3D'
---------------+-------------------------------------------------------------
bl_region_type | 'CHANNELS', 'HEADER', 'PREVIEW', 'TEMPORARY', 'TOOLS',
               | 'TOOL_PROPS', 'UI', 'WINDOW'
---------------+-------------------------------------------------------------
bl_context     | 'armature_edit', 'curve_edit', 'imagepaint', 'lattice_edit',
               | 'mball_edit', 'mesh_edit', 'objectmode', 'particlemode',
               | 'posemode', 'sculpt_mode', 'surface_edit', 'text_edit',
               | 'vertexpaint', 'weightpaint'

So for you I think it's:

bl_space_type = 'VIEW_3D'
bl_region_type = 'TOOLS'
bl_context = "imagepaint"
$\endgroup$
3
  • $\begingroup$ Thanks! Where did you find that? $\endgroup$
    – cmomoney
    Jan 27, 2016 at 21:18
  • 2
    $\begingroup$ assembled from documentation blender.org/api/blender_python_api_current/… etc -- literally just adding the bl_<kind> to the search $\endgroup$
    – zeffii
    Jan 27, 2016 at 21:22
  • $\begingroup$ Ah, my search was too specific then. $\endgroup$
    – cmomoney
    Jan 27, 2016 at 21:26

You must log in to answer this question.

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