Post #2923: Hi @anminmakura,
📋 Metadata
- Author: roaoao
- Date: 2019-12-19 17:56:48
- Type:
answer - Quality Score: 8/10
- Reply to: post_02920
🏷️ Tags
macro python-scripting intermediate solved
⚙️ Related PME Features
- Macro Editor
- Python Scripting
💬 Content
Hi @anminmakura,
Try this code instead:
return C.active_object and len([m for m in C.active_object.modifiers if m.type == 'PARTICLE_SYSTEM']) > 0
❤️ 2 likes