Skip to main content

class RAParticleCollection

Rocky PrePost Scripting wrapper for the collection of particles in a project. This wrapper corresponds to the “Particles” item in the project’s data tree. To retrieve the RAParticleCollection from a RAStudy, use:
Instances of the RAParticleCollection class act as regular Python lists, and can be iterated on, accessed via index, etc:
Items in this list are of type RAParticle. Methods:

Clear()

Remove all items from the list.

GetParticle(particle_name: str)

Get a particle given its name.

GetParticleNames()

Get a list of the names of all the particles in this collection.
  • Return type: list

New()

Add a new item. Returns the newly created item.

Remove(item: T)

Remove an item from the list.