📋 Metadata

  • Author: youthatninja
  • Date: 2020-08-04 23:06:22
  • Type: question

💬 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