Growing pts selection by using neighbours function

   145   9   0
User Avatar
Member
160 posts
Joined: April 2017
Offline
Hi!

I've got a simple curve with a bunch of points on it. I've generated a list of all the neighbour points and I grouped a few points on the line. I would like to grow this group by using the neighbours info and controlling the “spread” amount with a channel slider.

I've seen somebody use a solver to grow a group over time but I'd like a slider to do this.

Thanks for any help!

-Olivier

Attachments:
find_angles_cable.jpg (103.4 KB)

User Avatar
Member
10 posts
Joined: Dec. 2014
Offline
Group create / Disable Base Group / Group Type=Points / Include by edges / Edge Depth (your slider) , point group= initial points..
User Avatar
Member
23 posts
Joined: Feb. 2016
Offline
“edge depth”, nice little parameter I wasn't aware of! (-:
User Avatar
Member
160 posts
Joined: April 2017
Offline
Thanks alecaile, it works nicely!

I'm still curious on how to do this in vex using the neighbours function and iteration channel slider. Anyone knows how to do this?

-Olivier
User Avatar
Member
1139 posts
Joined: Sept. 2015
Offline
Use your slider to determine how many times to loop through the array.
Edited by BabaJ - Aug. 12, 2018 11:48:17
User Avatar
Member
160 posts
Joined: April 2017
Offline
I meant, I'd like to know how to replicate the same growth in VEX.

-Olivier
User Avatar
Member
1139 posts
Joined: Sept. 2015
Offline
Yes…loop through the array you create with the neighbors function in vex.

Post your hip otherwise, maybe I am misunderstanding you.
Edited by BabaJ - Aug. 12, 2018 15:32:21
User Avatar
Member
160 posts
Joined: April 2017
Offline
That's the thing, I DON'T know how to do this in VEX and I'm looking for an example. I don't know how to “loop” through an array. I have zero clue! Any help is appreciated.

-Olivier

Attachments:
how_to_grow_group.hip (72.9 KB)

User Avatar
Member
1139 posts
Joined: Sept. 2015
Offline
Ok…thought neighbors would list all the connected points of the same line ( in succession ).

Could still loop with the neihbors function as it works and just replace the reference point argument for each iteration.

But in this case since you have ordered point numbers you can do as in the hip file.

Attachments:
how_to_grow_group-1 v1.hiplc (80.8 KB)

User Avatar
Member
160 posts
Joined: April 2017
Offline
Thanks for the example. I'll try to study it.

-Olivier
  • Quick Links