Post #391: Hi Roaoao,

📋 Metadata

  • Author: a_guy73
  • Date: 2016-10-11 23:49:37
  • Type: question
  • Quality Score: 6/10
  • Replies (1): post_00392

🏷️ Tags

intermediate unsolved macro

  • Macro Editor
  • Python Scripting

💬 Content

Hi Roaoao,
I have 3 custom buttons that have stopped working mainly to dealing with “unified_brush_settings” I compared a new json file to an older one.

Back when it was working:
“if C.tool_settings.sculpt.detail_type_method == ‘RELATIVE’: L.prop(bpy.context.scene.tool_settings.unified_paint_settings,“strength ”, slider=True)”
Current version:
“if C.tool_settings.sculpt.detail_type_method == ‘RELATIVE’: L.prop(bpy.context.scene.tool_settings.unified_paint_settings, “strength”, slider=True)”

I noticed the current version has the backslashes removed and when I re-add them in I get a syntax error.
How can I fix this?


🔗 View on Blender Artists