Particles node · simulation · time dependent

particle_trails

Turns moving particles (input with an `id` point attribute, e.g. particle_solver output) into polyline trails built from each particle's positions over the last `length` frames. Output: one open polyline per particle (head = current position, last vertex), point attributes Cd (copied from the particle, faded toward the tail), Alpha, width, pscale, id, and prim attribute id. Without `id`, the point index is used (only correct if the point order is stable). Use for sparks, streaks, motion lines. length 4-10 for sparks, 20-60 for ribbons.

Inputs

Parameters 5

lengthint
Default 8Range 2 to 200

Trail length in frames (number of history samples).

fadetoggle
Default on

Write Alpha fading from 1 at the head to 0 at the tail, and darken Cd.

widthfloat
Default 0.02Range 0 to …

Trail width written to the `width`/`pscale` point attribute (tapers to the tail).

start_frameint
Default 1

Frame where the simulation starts

substepsint
Default 2Range 1 to …

Solver substeps per frame

Use it

Add it from the node menu (right-click empty graph space or Tab, then type particle_trails), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"particle_trails","name":"my_particle_trails","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.