Point closest to UV 0

   1475   2   0
User Avatar
Member
27 posts
Joined: June 2016
Offline
Hey,

I have an object that's been uv mapped from 0-1.
I'm wanting to grab the point that's nearest 0. The point order is random on the object.

Any ideas?

Thanks!
User Avatar
Member
1737 posts
Joined: May 2006
Online
You could measure the length of @uv, store it as an attribute. Sort the points by that attribute, then grab the first point.

Edited by mestela - Aug. 24, 2016 08:57:22

Attachments:
find_lowest_uv.hipnc (97.2 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
27 posts
Joined: June 2016
Offline
Great technique! Thanks very much.
  • Quick Links