I don't think "Total_LengthShape.distance.time" exists and also lines like...
else if (Total_LengthShape.distance > 200) && (Total_LengthShape.distance.time -1 <= Total_LengthShape.distance.time))
cause syntax issues because of missing parentheses, it should be...
else if ((Total_LengthShape.distance > 200) && (Total_LengthShape.distance.time -1 <= Total_LengthShape.distance.time))
I don't quite know what you're after but if the middle sphere should only be moving in the Y axis then why include the Z axis in the expression at all? I opened the scene and commented out the lines concerning the Z axis and the center sphere went up and down as the two end spheres moved back and forth.
i do not know what a driven key is, or how to set one up......Why are you doing this with an expression? Why not do it with a set driven key?
woow thanx....Sure, I'll give it a go. Also, having a lot of expressions in your scene can cause it to dramatically slow down If you can you would usually want to build it with utility nodes instead.
okAlright. Just finished recording, and am just touching it up before I send it out. I actually cover both the set driven key, and a brief overview of utility nodes. Hopefully you learn something from it.
Hey mate, you'll just have to wait a little longer! It's 1:30 am here, so I need to crash. (Which is exactly what my video editing software has been doing... Go figure.)
I'll upload it first thing in the morning!
Here you go! Enjoy!
Maya set driven key and utility node tutorial - YouTube
No problem, glad to help!