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

  • 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
image
image
Any suggestions?
And i need a little help with creating smooth/flat shading toggler

imageimage780Γ—143 11.2 KB

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


πŸ”— View on Blender Artists