Im a long time observer, first time poster here on cgtalk.
My character has a spline ik tail. I know there is already a bunch of tutorials on this, but I want to create a satisfying automatic secondary movement for this tail. The results I have so far with particle or softbody dynamics are no good because they create a springboard effect, while im looking for a whip effect.
There is a solution I found in this book Maya Character Creations, it involves an expression:
int $time = ‘currentTime -query’;
int $delay10 = ‘getAttr -time ($time - 10) Hips.ry’;
int $delay20 = ‘getAttr -time ($time - 20) Hips.ry’;
int $delay30 = ‘getAttr -time ($time - 30) Hips.ry’;
int $delay40 = ‘getAttr -time ($time - 40) Hips.ry’;
TailRoot.rotateZ = 0 + Hips.rotateY;
Tail2.rotateZ = 0 + $delay10;
Tail3.rotateZ = 0 + $delay20;
Tail4.rotateZ = 0 + $delay30;
TailEnd.rotateZ = 0 + $delay40;
You can find the chapter that explains this expression online, halfway down this page:
I followed every step in the book from scratch, but I cannot get this expression to work. It gives me an error at every line of code. Is it because its not compatible with Maya 5? I am not too familiar with Mel and expressions but I have implemented some without any problems in the past. So please could someone show me how to make this work or suggest me something else.