Post #3477: : post_03478
๐ท๏ธ Tags
popup-dialog custom-tab python-scripting intermediate solved
โ๏ธ Related PME Features
- 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