Curve to curve position match based on @curveu

   1885   2   1
User Avatar
Member
25 posts
Joined: June 2020
Offline
Hello and happy New Year!

I have a question about curves. I have two curves with different numbers of points and both have a @curveu. I'm trying to move all of the points of the first curve to the corresponding position along the second curve based on @curveu. Does anyone have thoughts on how to approach that?

Thanks so much!

Attachments:
Curves.jpg (88.1 KB)

User Avatar
Member
5100 posts
Joined: Feb. 2012
Offline
Hi,

You can use primuv VEX function inside a Point Wrangle SOP where the second input is the reference curve to move the input points onto:

@P = primuv ( 1, "P", @primnum, @curveu );
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
25 posts
Joined: June 2020
Offline
Works perfect! Thanks so much, animatrix.
  • Quick Links