Post #491: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

  • Author: draguu
  • Date: 2016-12-25 23:41:15
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_00490

🏷️ Tags

bug-fix intermediate solved

  • Pie Menu Editor
  • Python Scripting

💬 Content

roaoao:

Thanks, here is the fix.
I can’t send you the file because I it has some untested changes. But I think you know how to add this code to pie_menu_editor/init.py file (line 580):

            elif attr == "particle_system":
                value = self.get_modifier_by_type(
                    ao, 'PARTICLE_SYSTEM').particle_system

It will look like this:

...
            elif attr in BlContext.data:
                value = ao.data if ao else None
            elif attr == "particle_system":
                value = self.get_modifier_by_type(
                    ao, 'PARTICLE_SYSTEM').particle_system
            elif attr in BlContext.mods:
                value = self.get_modifier_by_type(ao, BlContext.mods[attr])
...

ok no prob man . thank … i will add it :slight_smile:


🔗 View on Blender Artists