Post #3331: I had the same problem with sculpt, vertex and weight paint

πŸ“‹ Metadata

🏷️ Tags

pie-menu hotkeys intermediate solved

  • Pie Menu Editor
  • Python Scripting
  • Property Editor

πŸ’¬ Content

I had the same problem with sculpt, vertex and weight paint

There is a workaround for this, after you add it to the menu you have to replace paint_settings() for the correct path,
example:
paint_settings().brush.use_accumulate doesn’t work

C.tool_settings.weight_paint.brush.use_accumulate works

You can do this for any case in the specific painting/sculpt mode, here are the working paths for every one of them (this is always in the property tab):

For sculpt: C.tool_settings.sculpt
For vertex paint: C.tool_settings.vertex_paint
For weight paint: C.tool_settings.weight_paint

In your case if you add those 3 things you are gonna get:

paint_settings().brush.blend
paint_settings().brush.use_accumulate
paint_settings().brush.use_frontface

And it should be:

C.tool_settings.weight_paint.brush.blend
C.tool_settings.weight_paint.brush.use_accumulate
C.tool_settings.weight_paint.brush.use_frontface

Hope it helps.


❀️ 1 likes


πŸ”— View on Blender Artists