Page MenuHome

Child particles not accessible from python
Closed, ArchivedPublicTO DO

Description

I wonder if this is a bug or not implemented, but if i try to access the child particles of a particle system then there is a collection of child particles.[1] But it is entirely useless, because the ChildParticle class contains no properties to read any data.[2]

[1] http://www.blender.org/documentation/blender_python_api_2_64_4/bpy.types.ParticleSystem.html#bpy.types.ParticleSystem.child_particles
[2] http://www.blender.org/documentation/blender_python_api_2_64_4/bpy.types.ChildParticle.html#bpy.types.ChildParticle

Event Timeline

Not implemented yet, is a todo item. It's a bit complicated because their coordinates aren't actually stored by generated dynamically.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.Nov 24 2012, 4:09 PM

Is there some way to generate/compute them in the same way? Would be essential for a current project.

If the particles are used for instancing objects, you could get the position/rotation/scale from the object dupli list.

I would need the hair particles and their hair keys. :(

PS: Is there some way to convert children to parents?

No that I know of, however the Convert button on the particle system modifier seems to work with child particles. It will create a mesh with vertices & edges for hairs.

Not the best solution. But at least it is a starting point.