Nearest Primitive to Point; expression/technique?

   4668   2   1
User Avatar
Member
49 posts
Joined: July 2005
Offline
I thought there was a Houdini expression to detect the nearest primitive to a point (or location), but I can't seem to locate it.

Does anyone know if that expression exists or an efficient way to do this in sops?

Thanks
Jeff Willette
Freelance TD
User Avatar
Staff
1072 posts
Joined: July 2005
Offline
You're looking for “xyzdist” using a prim_num of -1 (see “exhelp xyzdist”).
User Avatar
Member
49 posts
Joined: July 2005
Offline
Nice!

Thanks, I read the help on that before but I guess I just stopped reading after it says “…specified sop's primitive.”

Thank you very much, that's exactly what I needed.

I thought I was going crazy becuase I was sure I had done that before.
Jeff Willette
Freelance TD
  • Quick Links