Post #2925: The problem is in Auto Smooth Angle slot. Empties don’t have this property.
📋 Metadata
- Author: roaoao
- Date: 2019-12-19 18:13:58
- Type:
answer - Quality Score: 8/10
- Reply to: post_02922
- Replies (1): post_02932
🏷️ Tags
pie-menu custom-properties intermediate solved
⚙️ Related PME Features
- 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