Post #1018: Hi Roaoao,
📋 Metadata
- Author: panosz
- Date: 2017-09-30 10:37:34
- Type:
question - Quality Score: 6/10
- Replies (1): post_01019
🏷️ Tags
popup-dialog hotkeys intermediate unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Custom tab
- Python Scripting
- Operator integration
💬 Content
Hi Roaoao,
In a regular menu I use this command
bpy.ops.pme.pm_toggle(action=‘TOGGLE’, name=‘Physics_Panel Physics’)
I want to use a checkbox in order to have a clear view of what is active and what is not. Is this possible somehow? I’ve read your conversation with HokusPokus but I could make something out of this
Yes, we can’t use Property tab for Dyntopo. Use Custom tab with this code:
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.
Any help would be appreciated, thanks :yes: