Post #1926: How do I create a pie menu item that toggles between these two tool settings? Cu
📋 Metadata
- Author: Colacuve
- Date: 2019-02-06 18:07:52
- Type:
question - Quality Score: 5/10
- Replies (1): post_01927
🏷️ Tags
pie-menu python-scripting beginner unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Python Scripting
💬 Content
How do I create a pie menu item that toggles between these two tool settings? Currently, trying to discern when to use operator vs l.prop or what not is very difficult.
bpy.context.scene.tool_settings.transform_pivot_point = ‘CURSOR’
bpy.context.scene.tool_settings.transform_pivot_point = ‘BOUNDING_BOX_CENTER’