Post #2818: @roaoao
📋 Metadata
- Author: Michael_Knubben
- Date: 2019-10-09 10:43:08
- Type:
bug_report - Quality Score: 7/10
- Replies (1): post_02820
🏷️ Tags
pie-menu scripting intermediate unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Python Scripting
💬 Content
I’m trying to set up my Tab pie, and having some issues with this code that’s meant to allow me to jump straight into vertex/edge/face selection from either Object or Edit mode.
It worked in 2.79, but has issues in 2.8 (and 2.81):
bpy.ops.object.mode_set(mode='EDIT'); bpy.ops.wm.context_set_value(data_path="tool_settings.mesh_select_mode", value= "(True, False, False)")
The issue being that visually nothing happens until I move the viewport or click somewhere.
I’m also using the same code in my GP Tab pie, and there it functions perfectly.
Any idea as to what’s happening, and possible solutions?