Sorry if it is too noobish. But here is the problem, as you see in the picture below I wanna animate the left shape (zig zag planes) to the right one. It's like windows shutters ( or w/e it's called ) that close from bottom to top. I know very little about IK rigging and the real problem here is they have to close one by one sequentially from bottom to top so it becomes the right shape. I know I can do that manually one by one with FK but some of the geometries are like 100 zigzags and animating them one by one would be a lot of Pain in the butt. Any help or suggestion or even a video tutorial would be much appreciated. thank you very much.
Replies
[ame="http://www.youtube.com/watch?v=D87isBR-Cuw"]Accordion Rig Quick Demo - YouTube[/ame]
If so, iv uploaded the maya file,
https://dl.dropboxusercontent.com/u/2516103/accordion.mb
Basically what iv done is write a simple expression to drive the bones based on the last ikHandle.
You need to apply 1 / number of ikhandles in your chain to the translate (in this case y) of each ik handle and incrementally increase it down the chain.
you can apply the same expression to the other axes and it should work(the maya file has this on all axes)
the top ones will move as well, obviously that is relative to how much you move. if you move the last handle 1 unit, the top bone will move 1/100th of 1 unit so this is near irrelevant. But as this unit is increased, the amount the top one moves will increase and eventually they will all end up as in your before/after screen in your original post.
hope this helps!
I managed to get you the inverse of what you need: the top folds first and then the lower ones fold. I'm not really a rigger/animator so I'm not much more help, I'm afraid. Maybe this is enough to get you looking in the right places?
https://dl.dropboxusercontent.com/u/448525/keep/Polycount/IK-luxaflexattempt.max
(file is max 2011 or higher)
I even read some of the syntaxes of maxscript, still I couldn't manage to do this. I couldn't even go through my bones (bones001, bones002 , ...) with a loop that had bone"i" in it's do()! what was with that!
@Snader I downloaded the file but it didn't have any IK handle , and when I applied an IK solver to it, it went crazy like what I encountered the first time I tried rigging it, nothing like the gif you put here but anyways I really appreciate that
I am still desperate in need of help.
btw I found this http://www.mgrote.com/tutorials/mirror.php one, it may be helpful to some ppl who are searching for it, but it didn't help me.
There might be easier ways to do it, but I did it this way because it can be scripted quickly. It uses an IK chain per segment, then you use a script controller on each ik object.
https://dl.dropboxusercontent.com/u/2904948/Tutorials/SliderZ.max
This was the script I use to set it up. Parent each IK object to the one above it, then select them from top to bottom.
Reaction controllers are like Set Driven Keys in Maya. Or basically, they monitor other object's position or rotation states and keep a predetermined animation curve based on those states.
You can probably find some tutorials on Reaction controllers, there is some good info in the Max help file.
https://dl.dropboxusercontent.com/u/2904948/Tutorials/SliderReactionZ.max
For any1 who google got here, do it with reaction manager, it may take time but It definitely will worth.