#! C:/Program Files/Nuke6.3v6/Nuke6.3.exe -nx
version 6.3 v4
Gizmo {
 addUserKnob {20 User}
 addUserKnob {41 blackpoint l "Black Point" T neutralGrade.blackpoint}
 addUserKnob {41 whitepoint l "White Point" T neutralGrade.whitepoint}
 addUserKnob {19 midgray l "Mid Gray" t "This color is turned into 0.18 gray"}
 midgray 0.18
 addUserKnob {41 reverse T neutralGrade.reverse}
 addUserKnob {41 black_clamp l "black clamp" -STARTLINE T neutralGrade.black_clamp}
 addUserKnob {41 white_clamp l "white clamp" -STARTLINE T neutralGrade.white_clamp}
}
 Input {
  inputs 0
  name Input1
  xpos 457
  ypos -180
 }
 Grade {
  black {{((blackpoint.r)+(blackpoint.g)+(blackpoint.b))/3}}
  white {{((whitepoint.r)+(whitepoint.g)+(whitepoint.b))/3}}
  multiply {{"((1/parent.midgray.r + 1/parent.midgray.g + 1/parent.midgray.b)/3) * 0.18"}}
  black_clamp false
  name neutralGrade
  selected true
  xpos 457
  ypos -96
 }
 Output {
  name Output1
  xpos 457
  ypos 3
 }
end_group
