Post #349: ![](https://blenderartists.org/user_avatar/blenderartists.org/aermartin/48/8843_

๐Ÿ“‹ Metadata

  • Author: roaoao
  • Date: 2016-09-23 05:00:12
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_00348

๐Ÿท๏ธ Tags

popup-dialog ui-customization advanced partially-solved

  • Popup Dialog Editor
  • Python Scripting

๐Ÿ’ฌ Content

aermartin:

a side note, tried to replace C with bl_context for the brush panel. didnโ€™t do any difference for me. Itโ€™s working but if you click the brush icon to select another brush, it dissapears after that (the icon, sometimes it also collapses away)

Ok, try to add some extra code for the brush and color buttons: bl_context.set_context(C).

E.g. brush button:

bl_context.set_context(C); ps = paint_settings(bl_context); L.template_ID_preview(ps, 'brush', new='brush.add', rows=3, cols=8) if ps else None

This should fix collapse issue.
Hidden icon is a known issue. I donโ€™t know how to fix it yet.


๐Ÿ”— View on Blender Artists