0

Is there a way to show bounding boxes for particle system objects and find their min/max coords?

enter image description here

cxnt
  • 397
  • 1
  • 5
  • 27

2 Answers2

0

Not sure if their are bounding boxes for Particle systems but one way to create bounding boxes is by assigning the "Collision" property to a 3d Object like a Cube containing the Particle system and then treat it as a bounding box.
The below simulation is done by using a Wind Force field and using icospheres objects for Particle System under Newtonian Physics. The bounding Box -Cube in this case is provided the collision property under the Physics tab and its Z-tranperncy alpha (under material) is set to "0".

However,inorder to show the limits of the Bounding Cube ,if a wireframe modifier is used the collision property no longer applies and there is no bounding.
enter image description here

srt111
  • 1,080
  • 8
  • 17
0

just iterate through the particles e.g.

largest = {x:0,y:0,z:0}
particle_system = bpy.context.object.particle_systems[0]
    for particle in particle_system.particles:
        for axes in particle:
            for axis in largest:
                if axis < axes:
                     axis = axes
print(largest)
Thebob
  • 1