ID (Particle)

Description

Returns the particle's unique identification number (ID) as a Long.

When a particle is born into a simulation, is gets assigned a unique ID number. This ID number stays unique throughout the simulation. When a particle dies, so does its ID number so that they are never recycled, even when they have a duration of forever for their life span.

The particle ID is distinct from the particle's index in the array of particles. The particle index is the position of the particle within the collection of particles. As particles die, indices are reused. The particle's ID is guaranteed to be unique throughout the lifetime of the cloud whereas the particle indices are reused many times.

Note: Even though IDs can be used to access particles within a cloud, accessing particles with IDs is slower than accessing them with indices.

C# Syntax

// get accessor
Int32 rtn = Particle.ID;

See Also

Particle.Index



Autodesk Softimage v7.5