tyFlow Forum
reset particle age - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html)
+--- Thread: reset particle age (/thread-3808.html)



reset particle age - tycera - 08-07-2023

How do I reset Particle Age?
I tried with the Custom Properties operator, but I can't find a way to apply a value to the age channel.


RE: reset particle age - tyFlow - 08-10-2023

You can't modify a particle's age, no. Closest thing is resetting a particle's event age by having it re-enter an event.

What's the use-case here?


RE: reset particle age - tycera - 08-11-2023

I wanted to put the particles into a two event loop, but reset the particle age as they enter the loop so I could use that to control when they exit the loop.
If it was PFlow I'd just reset the age. What's the best way to to it in tyFlow?


RE: reset particle age - tyFlow - 08-11-2023

Event age automatically resets when a particle enters...that's probably what you're looking for/expecting. You can test that with an Age Test.


RE: reset particle age - tycera - 08-13-2023

Unfortunately the particles pass from one event to another in a loop, so the event age is reset every time the particle changes events. I'm looking to test the total time a particle has been in a loop of two events, not a single event.


RE: reset particle age - tyFlow - 08-13-2023

No default way to do that, no. Would be pretty easy with the Script operator. Probably something I could add as a default feature in a future build.


RE: reset particle age - tycera - 08-20-2023

Ok. Got it.
Thanks for the help.