Hi!
I have no groups on my geo and want my point wrangle to detect the distance to a specific primitive from the second input. Each point searches for a different primitive.
The documentation talks about not needing a group if I use an expresion like: @Cd.x>0 (yet, I tested their example and it does not work...)
VEX xyzdist: distance to a primitive number?{[SOLVED]}
304 5 0-
- olivierth
- Member
- 1287 posts
- Joined: April 2017
- Offline
-
- olivierth
- Member
- 1287 posts
- Joined: April 2017
- Offline
-
- tamte
- Member
- 9756 posts
- Joined: July 2007
- Offline
maybe share what exactly you tried?
one think to keep in mind is that the attribute in adhoc group string has to be a primitive attribute on the lookup geo
alternatively you can also directly use string of any primitive number or pattern that group parms accept, so not necessarily named groups
one think to keep in mind is that the attribute in adhoc group string has to be a primitive attribute on the lookup geo
alternatively you can also directly use string of any primitive number or pattern that group parms accept, so not necessarily named groups
Tomas Slancik
CG Supervisor
Framestore, NY
CG Supervisor
Framestore, NY
-
- tamte
- Member
- 9756 posts
- Joined: July 2007
- Offline
-
- olivierth
- Member
- 1287 posts
- Joined: April 2017
- Offline
AHHHHHH!!!!
Ok, like you were saying (I think), it has to be a primitive attribute visible in the geometry spreasheet (@primnum is not). I created a prim attribute i@primnumREF and now, my script works!
EDIT: I replied right after tamte...
Ok, like you were saying (I think), it has to be a primitive attribute visible in the geometry spreasheet (@primnum is not). I created a prim attribute i@primnumREF and now, my script works!
float dist = xyzdist(1, "@primnumREF==3", @P, primhit, UVs);
EDIT: I replied right after tamte...
Edited by olivierth - Nov. 17, 2026 14:47:20
-Olivier
-
- tamte
- Member
- 9756 posts
- Joined: July 2007
- Offline
-
- Quick Links
