Post #4480: I don’t know if I understood correctly, but you can also change brushes by name
📋 Metadata
- Author: Motiomancer
- Date: 2022-07-30 23:05:27
- Type:
answer - Quality Score: 8/10
- Reply to: post_04479
- Replies (1): post_04481
🏷️ Tags
⚙️ Related PME Features
- Python Scripting
- Pie Menu Editor
- Custom Icons
💬 Content
I don’t know if I understood correctly, but you can also change brushes by name with the pie menu code:
paint_settings(C).brush = D.brushes['SculptDraw.001']

So if you want a custom brush it would look like this in the custom tab
from bl_ui.space_toolsystem_common import ToolSelectPanelHelper; ico=ToolSelectPanelHelper._icon_value_from_icon_handle('brush.sculpt.draw'); L.operator("pme.exec", text=text, icon_value=ico).cmd = "paint_settings(C).brush = D.brushes['SculptDraw.001']"
We use the draw icon but change the end after cmd = for the pie menu command
❤️ 2 likes