Post #2932: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

🏷️ Tags

pie-menu custom-properties intermediate

  • Pie Menu Editor
  • Custom Python Scripting
  • Property Editor

💬 Content

roaoao:

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()

Hi,

I wonder if this principle could be applied to create a single toggle for normals display that depending on the selection handles either
overlay.show_vertex_normals or overlay.show_curve_normals ?


🔗 View on Blender Artists