-
keyframe to Linear
Hello forum,
i found this thread here https://forums.creativecow.net/thread/227/18998
i have 2 keyframes on other layer (null)
and apply this expression to other layer opacityhow i can maintain last value to 0
currently this code set back to 100.
Please help. Thank youilya
p=thisComp.layer("null").effect("keyframe")("Slider") // two keyframes
v = 100;if (p.numKeys > 0){
n = p.nearestKey(time).index;
if (p.key(n).time > time) n--;
if (n > 0 && n < p.numKeys)
v = linear(time,p.key(n).time,p.key(n+1).time,100,0); // it get back to 100 after time past last keyframe??
}
v