How do you iterate through a group and select different points?

   2089   1   0
User Avatar
Member
27 posts
Joined: Jan. 2017
Offline
I have a two part question…

1. how do you iterate through a group in vex?
2. how would you refer to point 1 inside a group of points in Vex? Ex. say I wanted to find the distance between two points inside a group I want to subtract the position of point 0 in the group by the position of point 1. How would I do that inside of Vex?

I have been trying to figure this one out to no avail
Edited by stephenanimation27 - Feb. 26, 2018 23:09:53
User Avatar
Member
8584 posts
Joined: July 2007
Offline
you can use expandpointgroup() VEX function to get array of point numbers of points in the group, then do whatever you want with them
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links