Post #392:
a_
📋 Metadata
- Author: roaoao
- Date: 2016-10-12 00:14:26
- Type:
answer - Quality Score: 7/10
- Reply to: post_00391
🏷️ Tags
⚙️ Related PME Features
- Python Scripting
- Macro Editor
- Custom Icons
💬 Content
a_guy73:
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?**
Hi, a_guy73,
You are trying to import exported json file? Right?
What version of the addon you used to export “new” json file?
Can you pm me both files?
The code should look like this (with backslashes):
<i>"if C.tool_settings.sculpt.detail_type_method == 'RELATIVE': L.prop(bpy.context.scene.tool_settings.unified_paint_settings, \"strength\", slider=True)"</i>
**