Hi Chris,
I have been trying to use your auto white balance, but I keep getting the error “invalid numeric result (divide by zero?)”
more specifically:
”
Error at line 19 in property ‘Shadow Amount’ of layer 5 (‘8mm ships.mov 2’) in comp ‘FINAL_OUTPUT’. invalid numeric result (divide by zero?)., an expression was disabled as a result of an error.
”
Here’s the expression:
r = comp(“exposure repair”).layer(“background”).effect(“Step 3: Set Gray”)(“Color”)[0]*2;
g = comp(“exposure repair”).layer(“background”).effect(“Step 3: Set Gray”)(“Color”)[1]*2;
b = comp(“exposure repair”).layer(“background”).effect(“Step 3: Set Gray”)(“Color”)[2]*2;
mr=Math.log(r);
mg=Math.log(g);
mb=Math.log(b);
a=mr+mg+mb;
dd=(0.8-(a/3))+(comp(“FINAL_OUTPUT”).layer(“MASTER CONTROL SLIDERS”).effect(“Exposure Compensator”)(“Slider”)/100);
if(dd>(comp(“FINAL_OUTPUT”).layer(“MASTER CONTROL SLIDERS”).effect(“[] Gamma Clamp at gamma*10 scal”)(“Slider”))/20)
{
roll=(comp(“FINAL_OUTPUT”).layer(“MASTER CONTROL SLIDERS”).effect(“[] Gamma Clamp at gamma*10 scal”)(“Slider”)/20);
linear(roll,0,dd,100,0);
}
else
0;