Post #3529: Thank you!

📋 Metadata

🏷️ Tags

pie-menu hotkeys intermediate solved

  • Pie Menu Editor
  • Python Scripting

💬 Content

Thank you!
I restrict pie menu to the edit mode, so now i can use just

bpy.ops.mira.make_arc()

Is the way to create a toggle, for smooth/flat shading in one pie item
This way it working only for meshes, but not for curves

bpy.ops.object.shade_flat() if bpy.context.object.data.polygons[0].use_smooth else bpy.ops.object.shade_smooth()

And this for no one

bpy.ops.object.shade_flat() if bpy.context.object.data.polygons[0].use_smooth or bpy.context.object.data.splines[0].use_smooth else bpy.ops.object.shade_smooth()


🔗 View on Blender Artists