Greetings to all 
I made a very simple animation in Maya: 1 cube that is still
and another object (a sphere) that is translating. I imported
it into Unity through the FBX.
In Unity I have only a simple camera and those objects. So my
question is: how to connect a slider so when I move it the
animation moves also? I found on a forum this topic:
http://forum.unity3d.com/viewtopic.php?p=186536&sid=57dec25679eb9bcebf4a195fe70fa6b7
and a cool script with buttons and slider.
I tried to attach it to camera but the problem is
that the buttons doesnt work properlly. They dont take into
account my animation (Take 001) but only the whole time in scene.
So when I press STOP it stops the current time not my particular
animation.
Any idea ?
PS. I am no programmer so my knowledge in this field is poor
PS. 2 sorry for my english
Cheers,
Lucas
Well, I tried to make something by myself.
var hSliderValue : float = 0.0;
function OnGUI () {
hSliderValue;
animation["Take 001"].time = hSliderValue;
hSliderValue = GUI.HorizontalSlider (Rect (25, 25, 100, 30), hSliderValue, 0, 1);
}
I also changed the WrapMode to ClampForever so I can go back with my slider when i reached the end.
But the problem now is that the animation is shaking all the time. Don`t know why?
Any suggestions ?
cheers
Finally, I made it myself
just studying the whole day the forum and every possible topic about sliders 
To avoid the shaking I added the speed value = 0.
Maybe someone will need this one day 
This is my whole code.
var hSliderValue : float = 0.0;
function Start ()
{
animation["Take 001"].weight = 1;
animation["Take 001"].enabled = true;
animation["Take 001"].speed = 0;
}
function Update ()
{
animation["Take 001"].time = hSliderValue;
}
function OnGUI () {
hSliderValue = GUI.HorizontalSlider (Rect (25, 25, 100, 30), hSliderValue, 0, 1);
}
cheers,
lucas