set cut_paste_input [stack 0] push $cut_paste_input Group { name NaiveDisplayTransformPivoted addUserKnob {20 DisplayTransformPivoted_tab l DisplayTransformPivoted} addUserKnob {12 pv l "grey in out" t "x,y pivot for linear section"} pv {0.18 0.1} addUserKnob {7 m l contrast t "slope for linear section" R 0.5 3} m 0.66 addUserKnob {7 black t "Stops below middle grey that will be mapped to display-linear 0." R -6 0} black -6 addUserKnob {7 lin_black l "lin black" t "The calculated scene-linear black value. This value in scene-linear will be mapped to 0 in display-linear." R 0 0.1} lin_black {{pv.x*pow(2,black)}} addUserKnob {7 white t "Stops above middle grey that will be mapped to display maximum after compression." R 0 6.5} white 6.5 addUserKnob {7 lin_white l "lin white" t "Calculated scene-linear value which will be mapped to display maximum after compression" R 0 50} lin_white {{pv.x*pow(2,white)}} addUserKnob {26 ""} addUserKnob {6 compress_shoulder l "compress shoulder" t "enable shoulder highlight compression" +STARTLINE} compress_shoulder true addUserKnob {7 dlin_end l "dlin end" t "display linear end: the display linear threshold value for highlight compression" R 0.1 0.999} dlin_end 0.3 addUserKnob {7 ps l "p shoulder" t "Slope of the shoulder compression curve." R 1 4} ps 1 addUserKnob {6 compress_toe l "compress toe" t "compress shadows" +STARTLINE} compress_toe true addUserKnob {7 dlin_start l "dlin start" t "display linear start: the toe threshold for compression" R 0.001 0.5} dlin_start 0.25 addUserKnob {7 pt l "p toe" t "Slope of the toe compression curve" R 1 4} pt 1 addUserKnob {26 ""} addUserKnob {6 path_to_white l "modify path to white" t "Modify path to white above display maximum. \n\nMoves colorful hues towards the achromatic axis as a function of shoulder compression amount." +STARTLINE} path_to_white true addUserKnob {18 path_to_white_start l "path to white start" t "Starting point for the path to white - allows adjustment for the starting point of the \"highlight desaturation\" curve"} path_to_white_start {0 0 0} addUserKnob {6 path_to_white_start_panelDropped l "panel dropped state" -STARTLINE +HIDDEN} addUserKnob {18 path_to_white_end l "path to white end" t "Adjust ending point for path to white \"highlight desaturation\" curve." +INVISIBLE} path_to_white_end 1 addUserKnob {6 path_to_white_end_panelDropped l "panel dropped state" -STARTLINE +HIDDEN} addUserKnob {7 bias_path_to_white l bias t "gamma applied to path to white"} bias_path_to_white 0.45 addUserKnob {18 huebias t "RGB modifier for path to white factor - effectively applies a skew to the hues on their path to white"} huebias {0.7 1 {huebias.r}} addUserKnob {6 huebias_panelDropped l "panel dropped state" -STARTLINE +HIDDEN} addUserKnob {6 path_to_black l "modify path to black" t "Move compressed shadow values towards the achromatic axis." +STARTLINE} path_to_black true addUserKnob {7 bias_path_to_black l bias t "apply power function to lerp factor"} bias_path_to_black 0.2 addUserKnob {7 black_target l "black target" t "the target ratio to lerp towards for the black ratio.\n\nseems to effectively brighten or darken shadow contrast"} addUserKnob {4 norm M {maxrgb "weighted power" luminance}} addUserKnob {26 ""} addUserKnob {6 enable_display_gamut l "display colorimetry: acescg to" t "convert from acescg to the display gamut selected" +STARTLINE} enable_display_gamut true addUserKnob {4 display_gamut l "" -STARTLINE M {rec709 p3d65 bt2020 "" "" ""}} addUserKnob {6 clamp t "clamp to a 0 to 1 range" -STARTLINE} clamp true addUserKnob {7 eotf l "inv eotf" t "Apply an inverse power function to compensate for display EOTF" R 2.2 2.6} eotf 2.4 } Group { inputs 0 name HyberbolicTangent_Sigmoid2 note_font Helvetica xpos 24 ypos -187 disable true addUserKnob {20 tanh_sigmoid_tab l TanHSigmoid} addUserKnob {18 slope R 1 10} slope 3.75 addUserKnob {6 slope_panelDropped l "panel dropped state" -STARTLINE +HIDDEN} addUserKnob {18 offset} offset 0.45 addUserKnob {6 offset_panelDropped l "panel dropped state" -STARTLINE +HIDDEN} } Input { inputs 0 name Input xpos 680 ypos 510 } Expression { expr0 tanh(slope.r*(r-offset.r))/2+0.5 expr1 tanh(slope.g*(g-offset.g))/2+0.5 expr2 tanh(slope.b*(b-offset.b))/2+0.5 name Expression2 note_font Helvetica xpos 680 ypos 583 } Output { name Output1 xpos 680 ypos 670 } StickyNote { inputs 0 name StickyNote1 tile_color 0x111111ff label https://www.desmos.com/calculator/lnnxfva7w5 note_font Helvetica note_font_size 14 note_font_color 0x7d7d7dff xpos 791 ypos 575 } end_group Input { inputs 0 name Input xpos 730 ypos -733 } Dot { name Dot7 note_font "Helvetica Bold Bold Bold Bold Bold Bold Bold Bold Bold" note_font_size 24 note_font_color 0xff xpos 764 ypos -534 } set N8af1500 [stack 0] Expression { channel0 rgb expr0 weights.0*r+weights.1*g+weights.2*b channel1 none channel2 none channel3 none name Norm_Luminance2 note_font Helvetica xpos 950 ypos -513 addUserKnob {20 Params} addUserKnob {35 weight_presets l "" +STARTLINE M {weights/Rec.709 "knobs this \{weights \{0.2126 \{1-(weights.0+weights.2)\} 0.0722\}\}"}} addUserKnob {78 weights l "" -STARTLINE n 3} weights {0.2 {1-(weights.0+weights.2)} 0.2} } push $N8af1500 Expression { temp_name0 m temp_expr0 1e-8 temp_name1 mx temp_expr1 max(r,g,b) temp_name2 p1 temp_expr2 power temp_name3 p2 temp_expr3 power-1 channel0 rgb expr0 (fabs(r)