Post #638:
Ho
📋 Metadata
- Author: roaoao
- Date: 2017-05-07 12:12:22
- Type:
answer - Quality Score: 8/10
- Reply to: post_00637
- Replies (2): post_00639, post_00640
🏷️ Tags
pie-menu hotkeys advanced solved
⚙️ Related PME Features
- Pie Menu Editor
- Custom tab
- Python Scripting
💬 Content
HokusPokus:
Thought i found out how to make the tickbox for DynTopo toggle update dynamically, like smoothshading, but see now that the syntax for smoothshading has a ‘property’ which i can’t seem to find for Dyntopo toggle… could you spill some details on this?
Yes, we can’t use Property tab for Dyntopo. Use Custom tab with this code:
L.operator("sculpt.dynamic_topology_toggle", text, icon='CHECKBOX_HLT' if C.sculpt_object.use_dynamic_topology_sculpting else 'CHECKBOX_DEHLT')
You can find the code for some buttons in Blender’s text editor.
Move cursor to the button, press RMB, select ‘Edit Source’ and open text editor.