Forum Replies Created

  • John Rael

    July 3, 2018 at 5:20 pm in reply to: auto white balance

    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;

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy