I'm working with popnet and generating some particles with random lifetimes, I use the standard Trail+Add setup to generate line trails for them.
I'd like to randomise the trail length of the particles, one way I thought I could do this is trim them after the generation of the trail, however I was thinking I could do an optimization trick by directly defining the random trail length in the trail node, by putting a random function using @id in the Trail Length input field:
pow(rand(@id),2)*20
However,when I do that, I get the error:
Local variable 'id' not found.
So maybe its not possible to have this sort of functionality at the trail node step of my node graph and instead just generate extra long trails and randomly trim them after?