-
speed driven opacity
I have been working on an expression that drives the opacity of the layer based off the layers speed. The idea is to have the obj opacity reach 100 when it comes to a rest, stay at 100 and when it is animated again the opacity is driven to 0. So far the expression that I have come up with only works partially. The effect starts off at 0 opacity and as speed reaches 0 opacity goes to 100, however when I animate to its next position the obj re – fades back to 100. At this point I want it to go to 0.Here’s what I have so far:
x = transform.position.speed;
If (x>1500){
0
}else{
linear(x,0,1499,100,0)
}