#! C:/Program Files/Nuke10.0v4/nuke-10.0.4.dll -nx version 10.0 v4 Gizmo { inputs 2 knobChanged "\n\n\nk = nuke.thisNode()\['gradient'].value()\ninvert = nuke.thisNode()\['invert_ramp'].value()\n\nif k == \"linear\" and invert == False:\n b_traail.apply_multiply_lin_value()\n\t\nelif k == \"linear\" and invert == True:\n b_traail.apply_reversed_multiply_lin_value()\n\t\nelif k == \"quadratic\" and invert == False:\n b_traail.apply_multiply_sq_value()\n\nelif k == \"quadratic\" and invert == True:\n b_traail.apply_reversed_multiply_sq_value()\t\n\t\nelif k == \"double-quadratic\" and invert == False:\n b_traail.apply_multiply_double_sq_value()\n\t\nelif k == \"double-quadratic\" and invert == True:\n b_traail.apply_inverted_multiply_double_sq_value()\n\n" addUserKnob {20 User} addUserKnob {52 gradient_type_auto T "nuke.thisNode()\['knobChanged'].setValue(\"\"\"\n\n\nk = nuke.thisNode()\['gradient'].value()\ninvert = nuke.thisNode()\['invert_ramp'].value()\n\nif k == \"linear\" and invert == False:\n b_traail.apply_multiply_lin_value()\n\t\nelif k == \"linear\" and invert == True:\n b_traail.apply_reversed_multiply_lin_value()\n\t\nelif k == \"quadratic\" and invert == False:\n b_traail.apply_multiply_sq_value()\n\nelif k == \"quadratic\" and invert == True:\n b_traail.apply_reversed_multiply_sq_value()\t\n\t\nelif k == \"double-quadratic\" and invert == False:\n b_traail.apply_multiply_double_sq_value()\n\t\nelif k == \"double-quadratic\" and invert == True:\n b_traail.apply_inverted_multiply_double_sq_value()\n\n\"\"\")" +STARTLINE} addUserKnob {20 trigger l "Trigger " n 1} addUserKnob {26 b_ImageCombiner l INVISIBLE +INVISIBLE T b_ImageCombiner_v01} addUserKnob {3 from} addUserKnob {26 d l "" -STARTLINE T " "} addUserKnob {3 to -STARTLINE} addUserKnob {26 ""} addUserKnob {22 run -STARTLINE T "reload(b_traail)\nb_traail.run()"} addUserKnob {26 dd l "" -STARTLINE T " "} addUserKnob {22 reset -STARTLINE T "reload(b_traail)\nb_traail.reset()"} addUserKnob {26 ""} addUserKnob {41 which l "shrink " T SW.which} addUserKnob {41 retract l "retract " T Control.retract} addUserKnob {41 reduction_factor t "reduces the density of the trail according to the reduction factor\n" T Control_B.reduction_factor} addUserKnob {26 ""} addUserKnob {20 shading l Shading n 1} addUserKnob {41 mode_1 l "mode " T Control.mode} addUserKnob {4 gradient t "select the value distribution for your ramp" M {linear quadratic double-quadratic "" ""}} addUserKnob {6 invert_ramp t "this one inverts the direction of the ramp" -STARTLINE} addUserKnob {7 smooth l "smooth "} addUserKnob {41 multiply l "color " T Grade1.multiply} addUserKnob {41 unpremult l "(un)premult by" T Grade1.unpremult} addUserKnob {41 disable_1 l disable_mask T mask_input.disable} addUserKnob {26 ""} addUserKnob {20 format_1 l Format n 1} addUserKnob {41 format l "output format" T R.format} addUserKnob {41 filter T R.filter} addUserKnob {41 black_outside l "black outside" T R.black_outside} addUserKnob {26 ""} addUserKnob {26 author l "" +STARTLINE T "Boris Martinez 2018\nwww.boris-mc.com\n"} } NoOp { inputs 0 name Control_B knobChanged "\n\nc = nuke.thisNode()\['reduction_factor'].value()\n\nif c == \"none\":\n print \"not reduced\"\n b_traail.reduce_density_1()\nelif c == \"1/2\":\n print \"1/2 reduction\"\n b_traail.reduce_density_2()\nelif c == \"1/3\":\n print \"1/3 reduction\"\n b_traail.reduce_density_3()\n\t\nelif c == \"1/4\":\n print \"1/4 reduction\"\n b_traail.reduce_density_4()\n\n\n" label "KEEP\t\t" xpos 6136 ypos 950 addUserKnob {20 User} addUserKnob {4 reduction_factor M {"none\t" 1/2 1/3 1/4 "" "" "" "" ""}} addUserKnob {52 reduction_auto T "nuke.thisNode()\['knobChanged'].setValue(\"\"\"\n\nc = nuke.thisNode()\['reduction_factor'].value()\n\nif c == \"none\":\n print \"not reduced\"\n b_traail.reduce_density_1()\nelif c == \"1/2\":\n print \"1/2 reduction\"\n b_traail.reduce_density_2()\nelif c == \"1/3\":\n print \"1/3 reduction\"\n b_traail.reduce_density_3()\n\t\nelif c == \"1/4\":\n print \"1/4 reduction\"\n b_traail.reduce_density_4()\n\n\n\"\"\")" +STARTLINE} } Input { inputs 0 name source label KEEP xpos 7953 ypos -3005 } set N304fc800 [stack 0] Grade { multiply_panelDropped true black_clamp false maskChannelMask none name Grade1 label KEEP xpos 7842 ypos -2922 } Reformat { format "640 360 0 0 640 360 1 " scale 0.18 black_outside true name R label KEEP xpos 7842 ypos -2854 } set N304fc000 [stack 0] push $N304fc000 Input { inputs 0 name mask xpos 7682 ypos 2457 number 1 } push $N304fc800 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push 0 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 push $N304fc000 Constant { inputs 0 channels rgb format {{{R.format}}} name C label KEEP xpos 5795 ypos 434 } set N30563400 [stack 0] push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 push $N30563400 Switch { inputs 250 name SW label KEEP xpos 7742 ypos 2232 } Keymix { inputs 3 name mask_input label KEEP xpos 7931 ypos 2330 } CopyBBox { inputs 2 name bo label KEEP xpos 7931 ypos 2481 } Output { name Output1 label KEEP xpos 7931 ypos 2608 } Viewer { inputs 2 frame_range 1-150 input_number 1 name Viewer1 xpos 7931 ypos 2646 } push $N304fc000 NoOp { name Control knobChanged "\n\nc = nuke.thisNode()\['mode'].value()\n\nif c == \"over\":\n print \"set mode to over\"\n b_traail.set_merge_operation_over()\nelif c == \"max\":\n print \"set mode to max\"\n b_traail.set_merge_operation_max()\nelif c == \"minus\":\n print \"set mode to minus\"\n b_traail.set_merge_operation_minus()\nelif c == \"min\":\n print \"set mode to min\"\n b_traail.set_merge_operation_min()\nelif c == \"average\":\n print \"set mode to min\"\n b_traail.set_merge_operation_average()\n\n\n\n" label "KEEP\t" selected true xpos 7436 ypos -1706 addUserKnob {20 User} addUserKnob {7 retract R 0 500} addUserKnob {52 mode_auto T "nuke.thisNode()\['knobChanged'].setValue(\"\"\"\n\nc = nuke.thisNode()\['mode'].value()\n\nif c == \"over\":\n print \"set mode to over\"\n b_traail.set_merge_operation_over()\nelif c == \"max\":\n print \"set mode to max\"\n b_traail.set_merge_operation_max()\nelif c == \"minus\":\n print \"set mode to minus\"\n b_traail.set_merge_operation_minus()\nelif c == \"min\":\n print \"set mode to min\"\n b_traail.set_merge_operation_min()\nelif c == \"average\":\n print \"set mode to min\"\n b_traail.set_merge_operation_average()\n\n\n\n\"\"\")" +STARTLINE} addUserKnob {4 mode M {over max minus average "min\t\t\t\t\t\t\t\t" "" "" "" "" "" ""}} } end_group