How to approach the following task to move point on a line
3229 8 2- Anh Em oi
- Member
- 10 posts
- Joined: April 2020
- Offline
Hello
I want to create a line with a given length X. The number of points depends on the length Y.
The point with the highest point number supposed to be static. Now I want to move the point 0 and
all points in-between supposed to move following these rules.
- the maximum distance between the points is the length Y
- the minimum distance between the points is a constant C
- the overall maximum distance the point 0 can move is C*Number of points
Then it should show the following behavior.
I move point 0 to the right until it reach the minimum distance to point 1, now it pushes point 1 along until it reach the minimum distance to point 2 and so on. When I move point 0 again to left, just point 0 moves, until the maximum distance is reached, now it drags point 1 to the left as well.
Thanks for your help
I want to create a line with a given length X. The number of points depends on the length Y.
The point with the highest point number supposed to be static. Now I want to move the point 0 and
all points in-between supposed to move following these rules.
- the maximum distance between the points is the length Y
- the minimum distance between the points is a constant C
- the overall maximum distance the point 0 can move is C*Number of points
Then it should show the following behavior.
I move point 0 to the right until it reach the minimum distance to point 1, now it pushes point 1 along until it reach the minimum distance to point 2 and so on. When I move point 0 again to left, just point 0 moves, until the maximum distance is reached, now it drags point 1 to the left as well.
Thanks for your help
Edited by Anh Em oi - July 2, 2020 02:42:05
- Herve
- Member
- 40 posts
- Joined: Aug. 2018
- Offline
- zengchen
- Member
- 77 posts
- Joined: Feb. 2017
- Offline
- Anh Em oi
- Member
- 10 posts
- Joined: April 2020
- Offline
zengchen
Is it the effect you wanted?
almost, when you increase the value in current distance its doing what I want, but when you decrease the value it pushes the point in the wrong order. I want that the left point moves until it reaches the next one, then pushes this point until both reach the next one.
I want to use it in order to create a vertical blind. Maybe this video shows better then I can describe it.
https://www.youtube.com/watch?v=kjM4mJ4pKXE [www.youtube.com]
Thanks for your help.
- zengchen
- Member
- 77 posts
- Joined: Feb. 2017
- Offline
mellowmesher
almost, when you increase the value in current distance its doing what I want, but when you decrease the value it pushes the point in the wrong order. I want that the left point moves until it reaches the next one, then pushes this point until both reach the next one.
I think it may need a solver, to switch increase / decrease situation frame by frame.
I do not know rigging, maybe it will be a better way than vex…
Edited by zengchen - July 2, 2020 08:42:31
- Anh Em oi
- Member
- 10 posts
- Joined: April 2020
- Offline
- Anh Em oi
- Member
- 10 posts
- Joined: April 2020
- Offline
- zengchen
- Member
- 77 posts
- Joined: Feb. 2017
- Offline
- Anh Em oi
- Member
- 10 posts
- Joined: April 2020
- Offline
-
- Quick Links