📋 Metadata
- Author: roaoao
- Date: 2016-12-26 00:48:01
- Type:
answer - Reply to: post_00492
- Replies (1): post_00494
💬 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])