ReferenceScripting APIMotionSceneparticles
MotionScene.particles
methodA particle layer's system: bursts, rates, pausing.
| Name | particles |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.particles(…) |
| As a node | Burst Particles (logic graph) |
| Since | 0.4 |
Syntax
particles(layer: string): MotionParticlesParameters
| Name | Type | Description |
|---|---|---|
layer | string | The layer's name or id (Particles, Fx, Rain, Fireworks, Fire, 3D particles) |
Returns
MotionParticles: its system.
Remarks
Another kind of layer does nothing, and the console says so.
Example
scene.on("beat", (n) => { if (n % 4 === 0) scene.particles("Embers").burst(80); });See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.