Hi, I have this vex code that connects points which have the same id attribute. As an exercise to get more comfortable in vops I'd like to know how to translate this, any thoughts? I've attached a file to demonstrate this.
int points = findattribval(0, "point", "id", @id);
foreach(int pt; points)
{
if(pt != @ptnum)
{
addprim(0, "polyline", @ptnum, pt);
}
}
Learning VOPS, connect points by id attribute
1319 3 1-
- bashorton
- Member
- 17 posts
- Joined: 2月 2022
- オンライン
-
- osong
- Member
- 251 posts
- Joined: 5月 2017
- オフライン
-
- bashorton
- Member
- 17 posts
- Joined: 2月 2022
- オンライン
-
- animatrix_
- Member
- 5047 posts
- Joined: 2月 2012
- オフライン
bashortonosongAh thanks, very simple. I'll have to find a harder vops experiment!
this should help?
Maybe try to do this in VOPs

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]

-
- Quick Links