Growing pts selection by using neighbours function
3183
9
0
olivierth
Member
1010 posts
Joined: 4月 2017
Offline
2018年8月11日 13:02
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)
alecaille
Member
24 posts
Joined: 12月 2014
Offline
2018年8月11日 13:18
Group create / Disable Base Group / Group Type=Points / Include by edges / Edge Depth (your slider) , point group= initial points..
Andr
Member
900 posts
Joined: 2月 2016
Offline
2018年8月11日 17:11
“edge depth”, nice little parameter I wasn't aware of! (-:
olivierth
Member
1010 posts
Joined: 4月 2017
Offline
2018年8月12日 10:01
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
BabaJ
Member
2042 posts
Joined: 9月 2015
Offline
2018年8月12日 11:38
Use your slider to determine how many times to loop through the array.
Edited by BabaJ - 2018年8月12日 11:48:17
olivierth
Member
1010 posts
Joined: 4月 2017
Offline
2018年8月12日 14:13
I meant, I'd like to know how to replicate the same growth in VEX. -Olivier
BabaJ
Member
2042 posts
Joined: 9月 2015
Offline
2018年8月12日 15:30
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 - 2018年8月12日 15:32:21
olivierth
Member
1010 posts
Joined: 4月 2017
Offline
2018年8月12日 17:16
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)
BabaJ
Member
2042 posts
Joined: 9月 2015
Offline
2018年8月13日 10:13
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)
olivierth
Member
1010 posts
Joined: 4月 2017
Offline
2018年8月17日 10:28
Thanks for the example. I'll try to study it. -Olivier