Post #3597: : post_03599
🏷️ Tags
pie-menu scripting intermediate solved
⚙️ Related PME Features
- Pie Menu Editor
- Python Scripting
- Poll Method
💬 Content
Stefakapapy:
Is there a way to show a pie only if a hair particle system is attached to the selected object ?
Hi @Stefakapapy,
Use this code as a poll method:
return len([ps for ps in C.object.particle_systems if ps.settings.type == 'HAIR']) > 0
❤️ 5 likes