Post #3597: ![](https://blenderartists.org/user_avatar/blenderartists.org/stefakapapy/48/592

📋 Metadata

🏷️ Tags

pie-menu scripting intermediate solved

  • 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


🔗 View on Blender Artists