Post #3477: ![](https://blenderartists.org/user_avatar/blenderartists.org/kim_quyen/48/61154

๐Ÿ“‹ Metadata

  • Author: roaoao
  • Date: 2020-07-25 12:26:26
  • Type: answer
  • Quality Score: 8/10
  • Replies (1): post_03478

๐Ÿท๏ธ Tags

popup-dialog custom-tab python-scripting intermediate solved

  • Custom Tab
  • Popup Dialog Editor
  • Python Scripting

๐Ÿ’ฌ Content

Kim_Quyen:

I want to get 2 settings in this red box attached to the Side Panel or Popup Dialog, is there any way to do it?

Hi @Kim_Quyen,
If you know Python you can find the code to use in Custom tab in Blenderโ€™s Text Editor by pressing Edit Source button in RMB context menu of the buttons.
To enable Edit Source feature go to Edit > Preferences > Interface > Display and activate Developer Extras.

Here is the code for brush texture (Custom tab):

b = brush(); b and L.template_ID(b, 'texture', new='texture.new')

Texture image (Custom tab):

b = brush(); t = b and b.texture; t and L.template_image(t, "image", t.image_user)

โค๏ธ 4 likes


๐Ÿ”— View on Blender Artists