-
Unable to get value at previous frame
Hey guys. Been browsing this forum for years, and now I finally have a question so I made an account.
I have the expression read a variable (x) that has a different value every frame.
x = thisComp.layer(“A_BASS”).effect(“Both Channels”)(“Slider”);if (x.valueAtTime(time) < 30) {
valueAtTime(time-thisComp.frameDuration*time)-1;
}
else 100+(x/2);For some reason, the if statement generates a value of 100 any time its true (the expression controls the magnification value of the magnify effect, which happens to have a minimum value of 100). Even if the previous frame has a magnification value of 140, it still returns 100.
Any idea what to do? All help appreciated