Sort scatter points on moving curve

   442   2   0
User Avatar
Member
1 posts
Joined: Feb. 2017
Offline
I'm trying to sort the points on the curve using node SORT, but I don't see where the error is, but it just doesn't work. The curve is in motion. Thank you for your help

Attachments:
problem.png (2.8 MB)
problem.hiplc (767.9 KB)

User Avatar
Member
2041 posts
Joined: Sept. 2015
Offline
It's because at frame 53 and afterwards, you have points arcing downwards. You've defined your point order as the distance from location 0,-1, 0 - so those points are now nearer the other ones which are higher in y value.

You will have to devise an equation or some other method for sorting your point numbers - depending on what the entire range of your geometry will be doing.
Edited by BabaJ - Dec. 6, 2023 12:37:36
User Avatar
Member
4516 posts
Joined: Feb. 2012
Offline
You can freeze your animation using Timeshift SOP and then copy the point numbers by storing them as an attribute before the Timeshift.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
  • Quick Links