I'm working out of this book called "Maya Character Creation", and I'm having trouble with a tail whip expression in it.
I always get a syntax error on the first 5 lines when I try to create this, but I think I've got it typed in exactly. What am I doing wrong?
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;