tyFlow Forum
Sort operator - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: Feature Requests (https://forum.tyflow.com/forum-4.html)
+--- Thread: Sort operator (/thread-156.html)



Sort operator - masqu3rad3 - 04-05-2019

I know this can be done with script operator, though an operator which sorts the particles by id or other attributes in world space would be very nice.

For example, in a flow with 100 particles, when you sort the particle ids by distance to an object, particle with id 1 will be the closest to the object and 100 will be the farthest. But the positions of the particles wont change, they only will switch places.


RE: Sort operator - tyFlow - 04-05-2019

Hmmm....any particular reason you'd need this? In general particle IDs are somewhat arbitrary...the only guarantee is that there will be no duplicates.

Just wondering what test case this would be useful for, since I don't have any operators that operate directly by BirthID that I can think of...