Post #3188: : post_03203
🏷️ Tags
pie-menu scripting intermediate solved
⚙️ Related PME Features
- Pie Menu Editor
- Python Scripting
- Poll Methods
💬 Content
anminmakura:
How do I configure poll_cmd to “Missing Material” an object in active selection?
Try this poll method:
return len(C.object.material_slots) == 0 or [ms for ms in C.object.material_slots if not ms.material]
❤️ 3 likes