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]}
379 5 0-
- olivierth
- Member
- 1294 posts
- Joined: 4月 2017
- オフライン
-
- olivierth
- Member
- 1294 posts
- Joined: 4月 2017
- オフライン
-
- tamte
- Member
- 9761 posts
- Joined: 7月 2007
- オフライン
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
- 9761 posts
- Joined: 7月 2007
- オフライン
-
- olivierth
- Member
- 1294 posts
- Joined: 4月 2017
- オフライン
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 - 2026年11月17日 14:47:20
-Olivier
-
- tamte
- Member
- 9761 posts
- Joined: 7月 2007
- オフライン
-
- Quick Links
