how can i get the parametric value of a curve

   4371   5   0
User Avatar
Member
111 posts
Joined: Dec. 2008
Offline
Hi guys, I got a problem, I have several points and a curve in h, and the points are on the curve. I want to sort the point order so they can follow the order of the parametric value of the curve on which the points stay. So how can I get parametric value to return for the point attribute.
Thanks in advance.
I attach a simple sence

Attachments:
get the paramatric value.hip (42.7 KB)

User Avatar
Member
168 posts
Joined:
Offline
not an elegant solution but might help

Attachments:
posPoints.hipnc (48.0 KB)

Albert
User Avatar
Member
1390 posts
Joined: July 2005
Offline
Hi,
append a SortSOP -> Point Sort by Expression, then:

xyzdist($TX, $TY, $TZ, “../curve1”, 0, 1)

skk.
User Avatar
Member
257 posts
Joined: Nov. 2007
Offline
I like to do that by uvs, I generally use those uv's to drive other stuff and when you resample your curve they interpolate.

curve
-> append uvtexture, set it to rowx&columns
-> attribbpromot uv's from vertex to point
-> append sort sop, set expression to $MAPU
Cg Supervisor | Effects Supervisor | Expert Technical Artist at Infinity Ward
https://www.linkedin.com/in/peter-claes-10a4854/ [www.linkedin.com]
User Avatar
Member
1390 posts
Joined: July 2005
Offline
pclaes
I like to do that by uvs, I generally use those uv's to drive other stuff

Oh, perhaps I should point out, that this is what xyzdist() is doing here, but because those points are not part of a curve, they only lay on it, so xyzdist() takes a “u” of a closest spot on a curve.
User Avatar
Member
111 posts
Joined: Dec. 2008
Offline
thanks guys, you are so sweet
  • Quick Links