Sort Prim Number by Color

   2431   1   1
User Avatar
6 posts
Joined: Sept. 2014
Hey Guys,

I have a question about sorting prim with attribute.

What i wann to do is to sort the prim number with the help of color attribute. so when the prim have the attribute early will
have a smaller prim number

i had tried with sort node but due to the color changing my prim number oso keep on changing.

jt wondering if your guys have any suggestion for this?

Thanks your all help in advance.

sortcolor.hipnc (206.5 KB)

User Avatar
453 posts
Joined: Feb. 2013
As far as I understand, your only problem is that your sorting order gets recomputed every frame.
You can sort by an expression and you can add (and manipulate) additional attributes per frame to keep track of your previous sorting order.
  • Quick Links