Post #3358: Use operator() function instead of prop() for operators and text=slot inst
📋 Metadata
- Author: roaoao
- Date: 2020-06-15 14:54:04
- Type:
answer - Quality Score: 7/10
- Reply to: post_03357
- Replies (1): post_03360
🏷️ Tags
pie-menu python-scripting intermediate solved
⚙️ Related PME Features
- Pie Menu Editor
- Python Scripting
💬 Content
Use operator() function instead of prop() for operators and text=slot instead of text=text:
L.operator("object.vertex_group_assign", icon=icon, icon_value=icon_value, text=slot) if len(C.active_object.vertex_groups) >= 1 else L.separator()
❤️ 3 likes