Post #290: ![](https://blenderartists.org/user_avatar/blenderartists.org/rhyging5/48/725092

📋 Metadata

  • Author: roaoao
  • Date: 2016-08-28 09:23:16
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00289

🏷️ Tags

pie-menu hotkeys intermediate solved

  • Command tab
  • Property Editor
  • Python Scripting
  • Custom Icons

💬 Content

rhyging5:

hello roaoao, can help me about to the “Stroke Method” of sculpting? The command I got works fine, but just for a specific brush only. I would like a command that change to “line” or “anchored” method whatever the brush you are using. Thanks again for all support provided for each specific question :wink:

The python path for the current brush is paint_settings(C).brush. You can use it in Property, Command and Custom tabs.
In your case you need to use this code in Command tab:

Line Stroke Method:

paint_settings(C).brush.stroke_method = 'LINE'

Anchored Stroke Method:

paint_settings(C).brush.stroke_method = 'ANCHORED'

🔗 View on Blender Artists