Sort Prim Number by Color

   2431   1   1
User Avatar
Member
6 posts
Joined: Sept. 2014
Offline
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.

Attachments:
sortcolor.hipnc (206.5 KB)

User Avatar
Member
453 posts
Joined: Feb. 2013
Offline
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