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
647 3 1- bashorton
- Member
- 15 posts
- Joined: Feb. 2022
- Offline
- osong
- Member
- 250 posts
- Joined: May 2017
- Offline
- bashorton
- Member
- 15 posts
- Joined: Feb. 2022
- Offline
- animatrix_
- Member
- 4685 posts
- Joined: Feb. 2012
- Offline
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]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
-
- Quick Links