Get Attribute: spawnCount
Menu Path : Operator > Attribute > Get Spawn Count
The Get Spawn Count operator returns the number of particles that have been spawned in the current frame.
Operator settings
| Setting | Type | Description |
|---|---|---|
| Location | Enum | The location of the attribute. The options are: • Current: Gets the value of the attribute from the current system data container. For example, particle data from a Particle System. • Source: Gets the value of the attribute from the previous system data container read from. You can only read from this Location in the first Context of a system after a system data change. For example, in an Initialize Particle Context. |
Operator settings
| Setting | Type | Description |
|---|---|---|
| Location | Enum | The location of the attribute. The options are: • Current: Gets the value of the attribute from the current system data container. For example, in a Spawn Context. • Source: Gets the value of the attribute from the previous system data container read from. You can only read from this Location in the first Context of a system after a system data change. For example, in an Initialize Particle Context. |
Operator properties
| Output | Type | Description |
|---|---|---|
| Spawn Count | float | The value of the spawnCount attribute, which represents the number of particles spawned in the current frame, based on Location. If this attribute has not been written to, this operator returns 0. |
Details
The value the operator returns uses the system's space, either local space or world space.