Post #4480: I don’t know if I understood correctly, but you can also change brushes by name

📋 Metadata

🏷️ Tags

pie-menu hotkeys intermediate

  • 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']

image

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


🔗 View on Blender Artists