-
Quick expression problem with Levels Adjustment
I’ve got a little fire I need to put out, so any quick responses to this would be MOST appreciated!
I thought I would be able to easily control the levels adjustment effect with the dynamic fade expression, and just modify values, but it keeps giving me the inverse of what I want. I’m using a Levels adjustment (The individual controls version), and applying the below expression to the Output Black parameter. This fades the clip up to white, instead of fading down from white. I can’t figure out how to invert it! It seems like it’d be so simple, but its proving to be quite a problem. Any ideas?
transition = 20; // transition time in frames
if (marker.numKeys<2){
tSecs = transition / ( 1 / thisComp.frameDuration); // convert to seconds
linear(time, inPoint, inPoint + tSecs, 0, 2.5) - linear(time, outPoint - tSecs, outPoint, 0, 2.5)
}else{
linear(time, inPoint, marker.key(1).time, 0, 2.5) - linear(time, marker.key(2).time, outPoint, 0, 2.5)
}Also a quick note: I have tried swapping values, and I get a negative (literally) effect instead of positive.