-
Easy stop roller
I am having serious trouble making my animation ease from one value to the next.
I have a layer (called “Numbers”) containing numbers and logos arranged something like this:LOGO
2
LOGO
LOGO
4
LOGO
3
0
LOGO
6
7
LOGO
1
8
LOGO
5
9
LOGO(sorry, didint know how to attach a picture of the layer.)
this layer moves behind a “window layer” that only allows one number or logo to be displayed at a time. like a slot machine display. so in other words to change the value in the window i must edit the y value of my Numbers layer.
To do this i have added a slider control to another layer (FaceValue) and used an expression. so if my slider control value is any whole number between 0 and 9, that number will be visible in the “window”. if the slider value is anything other than a whole number between 0 and 9, the value will be moving (wiggle(0.2,10000).
to animate it i have keyframed the slider values. at 0:00:00 the slider value is 10 and at 0:02:00 the value is the number i want to display (eg 5 or 8 or any number 0-9).
the problem i have is that the animation goes from wiggling at 50 000 pixels per second, to stopped, without slowing down. i want it to slowdown to a stop. Like a slot machine would do. just dont know how to write the expression. i was thinking a time related expression would help but im no good at expresions. please help.
x = thisComp.layer("FaceValue").effect("SliderControl")("Slider")
if (x == 1){
400+34
}
else if (x == 2){
233.3+34;
}
else if (x == 3){
838.3+34;
}
else if (x == 4){
131.3+34;
}
else if (x == 5){
-299.7+34;
}
else if (x == 6){
-36.7+34;
}
else if (x == 7){
1011.3+34;
}
else if (x == 8){
-472.7+34;
}
else if (x == 9){
578.3+34;
}
else if (x == 0){
-124.7+34;
}
else if (x == 10){
-182;
}
else if (x == 11){
346;
}
else if (x == 12){
-639;
}
else if (x == 13){
90;
}
else if (x == 14){
-813;
}else{
wiggle(.2,10000);
}