Post #638: Ho

📋 Metadata

🏷️ Tags

pie-menu hotkeys advanced solved

  • 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.


🔗 View on Blender Artists