Post #2925: The problem is in Auto Smooth Angle slot. Empties don’t have this property.

📋 Metadata

🏷️ Tags

pie-menu custom-properties intermediate solved

  • Pie Menu Editor
  • Custom Tab
  • Python Scripting

💬 Content

The problem is in Auto Smooth Angle slot. Empties don’t have this property.
Try to use this code instead in Custom tab:

L.column().prop(C.object.data, 'auto_smooth_angle', text='') if hasattr(C.object.data, 'auto_smooth_angle') else L.separator()

❤️ 2 likes


🔗 View on Blender Artists