Post #3496: Hello!
π Metadata
- Author: youthatninja
- Date: 2020-08-04 23:06:22
- Type:
question - Quality Score: 6/10
π·οΈ Tags
macro python-scripting intermediate solved
βοΈ Related PME Features
- Macro Editor
- Python Scripting
π¬ Content
Hello!
Id like to add condition before running main command
but it hides settings for the command and donβt expose it in edit mode in adjust last operation


Any suggestions?
And i need a little help with creating smooth/flat shading toggler
UPD
I manage it
bpy.ops.object.shade_flat() if bpy.context.object.data.polygons[0].use_smooth else bpy.ops.object.shade_smooth()
but was wrong with syntax at the first time
image780Γ143 11.2 KB