If particle system uses Collection as particles in the Render tab of the Particle System settings is there a way to get exact object which each particle is assigned to via bpy? I know that other particles attributes can be obtained with the depsgraph, e.g.:
import bpy emitter = bpy.context.object # assuming it is a particle emitter dg = bpy.context.evaluated_depsgraph_get() eval_emitter = emitter.evaluated_get(dg) for ps in eval_emitter.particle_systems: for p in ps.particles: print(p.location)
But I can not find anything related to which object is assigned to particular particle among the particle attributes. Is there a way to get this info directly from the particles or maybe to somehow reproduce exact random distribution of which object is used as an instance for which particle?