📋 Metadata
- Author: youthatninja
- Date: 2020-08-20 19:35:33
- Type:
answer - Reply to: post_03527
- Replies (1): post_03531
💬 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()