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.
Thank you for your reply
i think you are right, that the .time i use is not possible
i tried using that cause in my opinion that is what is needed to get it working properly
i could be completely wrong ofcourse
since this is my first expression, i do the best i can, but it seems my knowledge of expressions is not sufficiant to create what i intend.....
the idea of the .time, was to let the expression check the previous distance and the current distance, and then use a < or > formula to let it know the spheres are moving towards each other or away from each other and change the movement in Y accordingly
so the output would be more accurate to the animation and aim of what i try to create
the Z axe is in the equasion because the centre sphere has to be in the exact centre between the 2 outer spheres
herewith my latest file and a little video to explain where my goal lies
https://www.ieoie.nl/Maya/005_Bending.zip
thank you for your time
hoping we can solve this here at the forum......
*
The Universe is larger then you ever can think, But smaller then the size of your imagination.
all are welcome at
www.ieoie.nl
Last edited by ieoie; 17-08-2011 at 04:15 PM.
Reason: forgot something