Post #493: ![](https://blenderartists.org/user_avatar/blenderartists.org/draguu/48/15444_2.

📋 Metadata

🏷️ Tags

popup-dialog particle-systems advanced solved

  • Popup Dialog Editor
  • Property Editor
  • Python Scripting

💬 Content

draguu:

ok here is the thing , after a few trial and error , somehow it works ,

but now it only shows 1st particle system index values in the emission panel , and if we remove all the particle system then it doesnt even show particle context window ,

Sorry, this one should work:

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

🔗 View on Blender Artists