Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set cut_paste_input [stack 0]
- version 10.0 v4
- push $cut_paste_input
- Group {
- name magicCarpet_Fixed
- knobChanged "\nif(nuke.thisNode()\['AutoForce'].getValue()):\n nuke.thisNode().begin()\n\n crop1r = nuke.toNode('Crop1').sample('red', 10, 10, 8, 8)\n crop1g = nuke.toNode('Crop1').sample('green', 10, 10, 8, 8)\n crop1b = nuke.toNode('Crop1').sample('blue', 10, 10, 8, 8)\n \n crop2r = nuke.toNode('Crop2').sample('red', 10, 10, 8, 8)\n crop2g = nuke.toNode('Crop2').sample('green', 10, 10, 8, 8)\n crop2b = nuke.toNode('Crop2').sample('blue', 10, 10, 8, 8)\n \n crop3r = nuke.toNode('Crop3').sample('red', 10, 10, 8, 8)\n crop3g = nuke.toNode('Crop3').sample('green', 10, 10, 8, 8)\n crop3b = nuke.toNode('Crop3').sample('blue', 10, 10, 8, 8)\n \n crop4r = nuke.toNode('Crop4').sample('red', 10, 10, 8, 8)\n crop4g = nuke.toNode('Crop4').sample('green', 10, 10, 8, 8)\n crop4b = nuke.toNode('Crop4').sample('blue', 10, 10, 8, 8)\n \n nuke.toNode('Constant6')\['color'].setValue(\[crop1r, crop1g, crop1b, 1])\n nuke.toNode('Constant7')\['color'].setValue(\[crop2r, crop2g, crop2b, 1])\n nuke.toNode('Constant8')\['color'].setValue(\[crop3r, crop3g, crop3b, 1])\n nuke.toNode('Constant9')\['color'].setValue(\[crop4r, crop4g, crop4b, 1])\n\n nuke.thisNode().end()\n"
- selected true
- xpos -274
- ypos 6569
- addUserKnob {20 magicCarpet}
- addUserKnob {41 to1 T CornerPin2D1.to1}
- addUserKnob {41 to2 T CornerPin2D1.to2}
- addUserKnob {41 to3 T CornerPin2D1.to3}
- addUserKnob {41 to4 T CornerPin2D1.to4}
- addUserKnob {26 ""}
- addUserKnob {41 Erode T Dilate1.size}
- addUserKnob {41 Blur T Blur1.size}
- addUserKnob {26 ""}
- addUserKnob {4 RenderSwitch l Render M {Setup Final ""}}
- RenderSwitch Final
- addUserKnob {26 "" +STARTLINE}
- addUserKnob {26 line l "" +STARTLINE T "Fixes for magicCarpet (Max van Leeuwen)"}
- addUserKnob {6 AutoForce l "Auto Force Sampling" t "Automatically forces the colour sampling on every change made to the corner pin knobs" +STARTLINE}
- AutoForce true
- addUserKnob {22 Update t "Update corner pins" -STARTLINE T "if(not nuke.thisNode()\['AutoForce'].getValue()):\n nuke.thisNode().begin()\n\n crop1r = nuke.toNode('Crop1').sample('red', 10, 10, 8, 8)\n crop1g = nuke.toNode('Crop1').sample('green', 10, 10, 8, 8)\n crop1b = nuke.toNode('Crop1').sample('blue', 10, 10, 8, 8)\n \n crop2r = nuke.toNode('Crop2').sample('red', 10, 10, 8, 8)\n crop2g = nuke.toNode('Crop2').sample('green', 10, 10, 8, 8)\n crop2b = nuke.toNode('Crop2').sample('blue', 10, 10, 8, 8)\n \n crop3r = nuke.toNode('Crop3').sample('red', 10, 10, 8, 8)\n crop3g = nuke.toNode('Crop3').sample('green', 10, 10, 8, 8)\n crop3b = nuke.toNode('Crop3').sample('blue', 10, 10, 8, 8)\n \n crop4r = nuke.toNode('Crop4').sample('red', 10, 10, 8, 8)\n crop4g = nuke.toNode('Crop4').sample('green', 10, 10, 8, 8)\n crop4b = nuke.toNode('Crop4').sample('blue', 10, 10, 8, 8)\n \n nuke.toNode('Constant6')\['color'].setValue(\[crop1r, crop1g, crop1b, 1])\n nuke.toNode('Constant7')\['color'].setValue(\[crop2r, crop2g, crop2b, 1])\n nuke.toNode('Constant8')\['color'].setValue(\[crop3r, crop3g, crop3b, 1])\n nuke.toNode('Constant9')\['color'].setValue(\[crop4r, crop4g, crop4b, 1])\n\n nuke.thisNode().end()"}
- addUserKnob {41 set_to_input l "Corner pin to input" t "Is pressed automatically on node creation" T CornerPin2D1.set_to_input}
- }
- BackdropNode {
- inputs 0
- name combining_ramp_Y_axis
- tile_color 0x8e8e3800
- note_font_size 42
- xpos -967
- ypos -163
- bdwidth 279
- bdheight 172
- }
- BackdropNode {
- inputs 0
- name final_result
- tile_color 0x8e3737ff
- gl_color 0xcc2c1cff
- note_font_size 42
- xpos -577
- ypos -13
- bdwidth 197
- bdheight 161
- }
- BackdropNode {
- inputs 0
- name lower_ramp_X_axis
- xpos -878
- ypos -397
- bdwidth 556
- bdheight 225
- }
- BackdropNode {
- inputs 0
- name matte_pipe
- tile_color 0x7171c600
- note_font_size 42
- xpos -314
- ypos -164
- bdwidth 156
- bdheight 212
- }
- BackdropNode {
- inputs 0
- name preview_pipe
- tile_color 0x8e8e3800
- note_font_size 42
- xpos -117
- ypos -165
- bdwidth 254
- bdheight 103
- }
- BackdropNode {
- inputs 0
- name upper_ramp_X_axis
- xpos -944
- ypos -674
- bdwidth 621
- bdheight 266
- }
- Input {
- inputs 0
- name IMG_IN
- xpos -1180
- ypos 106
- number 1
- }
- Dot {
- name Dot11
- xpos -1146
- ypos -713
- }
- Dot {
- name Dot3
- xpos -1085
- ypos -713
- }
- set Ne0b8d360 [stack 0]
- Dot {
- name Dot1
- xpos -741
- ypos -713
- }
- set Na56dd020 [stack 0]
- Dot {
- name Dot9
- xpos -476
- ypos -713
- }
- set Na64dead0 [stack 0]
- Crop {
- box {{parent.CornerPin2D1.to3.x i x1 329.0499878 x80 706.4000244} {parent.CornerPin2D1.to3.y i x1 1268.050049 x80 501.7999878} {parent.CornerPin2D1.to3.x-20 i x1 339.0499878 x80 716} {parent.CornerPin2D1.to3.y-20 i x1 1278.050049 x80 513}}
- reformat true
- crop false
- name Crop3
- xpos -510
- ypos -648
- }
- push $Ne0b8d360
- Dot {
- name Dot6
- xpos -1085
- ypos -374
- }
- set Na68df1b0 [stack 0]
- Dot {
- name Dot4
- xpos -784
- ypos -374
- }
- set Na93de1d0 [stack 0]
- Crop {
- box {{parent.CornerPin2D1.to2.x i x1 329.0499878 x80 706.4000244} {parent.CornerPin2D1.to2.y i x1 1268.050049 x80 501.7999878} {parent.CornerPin2D1.to2.x-20 i x1 339.0499878 x80 716} {parent.CornerPin2D1.to2.y+20 i x1 1278.050049 x80 513}}
- reformat true
- crop false
- name Crop2
- xpos -544
- ypos -378
- }
- Input {
- inputs 0
- name nothing
- xpos -433
- ypos -143
- }
- set Naa0dd680 [stack 0]
- Ramp {
- p0 {{(parent.CornerPin2D1.to2.x+parent.CornerPin2D1.to1.x)/2} {(parent.CornerPin2D1.to2.y+parent.CornerPin2D1.to1.y)/2}}
- p1 {{(parent.CornerPin2D1.to3.x+parent.CornerPin2D1.to4.x)/2} {(parent.CornerPin2D1.to3.y+parent.CornerPin2D1.to4.y)/2}}
- name Ramp3
- xpos -934
- ypos -143
- }
- Constant {
- inputs 0
- channels rgb
- color {0 0 0 1}
- format "4096 3112 0 0 4096 3112 1 4K_Super_35(full-ap)"
- name Constant8
- xpos -508
- ypos -612
- }
- set Nee4c540 [stack 0]
- Ramp {
- p0 {{parent.CornerPin2D1.to3.x i} {parent.CornerPin2D1.to3.y i}}
- p1 {{parent.CornerPin2D1.to4.x i} {parent.CornerPin2D1.to4.y i}}
- type smooth0
- name Ramp2
- xpos -508
- ypos -540
- }
- Invert {
- name Invert1
- xpos -508
- ypos -486
- }
- push $Nee4c540
- ShuffleCopy {
- inputs 2
- name ShuffleCopy2
- xpos -661
- ypos -480
- }
- Premult {
- name Premult2
- xpos -661
- ypos -454
- }
- Constant {
- inputs 0
- channels rgb
- color {0 0 0 1}
- format "4096 3112 0 0 4096 3112 1 4K_Super_35(full-ap)"
- name Constant9
- xpos -771
- ypos -612
- }
- Merge2 {
- inputs 2
- name Merge2
- xpos -771
- ypos -454
- }
- Dot {
- name Dot5
- xpos -900
- ypos -450
- }
- ShuffleCopy {
- inputs 2
- name ShuffleCopy3
- xpos -934
- ypos -94
- }
- Premult {
- name Premult3
- xpos -934
- ypos -68
- }
- Dot {
- name Dot2
- xpos -900
- ypos -42
- }
- push $Naa0dd680
- Ramp {
- p0 {{parent.CornerPin2D1.to1.x} {parent.CornerPin2D1.to1.y}}
- p1 {{parent.CornerPin2D1.to2.x} {parent.CornerPin2D1.to2.y}}
- name Ramp1
- xpos -433
- ypos -242
- }
- Constant {
- inputs 0
- channels rgb
- color {0 0 0 1}
- format "4096 3112 0 0 4096 3112 1 4K_Super_35(full-ap)"
- name Constant7
- xpos -543
- ypos -314
- }
- ShuffleCopy {
- inputs 2
- name ShuffleCopy1
- xpos -543
- ypos -242
- }
- Premult {
- name Premult1
- xpos -543
- ypos -216
- }
- Constant {
- inputs 0
- channels rgb
- color {0 0 0 1}
- format "2048 1556 0 0 2048 1556 1 2K_Super_35(full-ap)"
- name Constant6
- xpos -818
- ypos -288
- }
- Merge2 {
- inputs 2
- name Merge1
- xpos -818
- ypos -216
- }
- Merge2 {
- inputs 2
- name Merge3
- xpos -818
- ypos -46
- }
- Constant {
- inputs 0
- color {0.224999994 0.224999994 0.224999994 1}
- name Constant5
- xpos -166
- ypos -561
- }
- CornerPin2D {
- to1 {0 0}
- to2 {2880 0}
- to3 {2880 1620}
- to4 {0 1620}
- invert false
- from1 {0 0}
- from2 {2880 0}
- from3 {2880 1620}
- from4 {0 1620}
- name CornerPin2D1
- xpos -166
- ypos -448
- }
- set Ne34c39a0 [stack 0]
- Dilate {
- channels alpha
- name Dilate1
- xpos -275
- ypos -138
- }
- Blur {
- channels alpha
- name Blur1
- xpos -275
- ypos -100
- }
- ShuffleCopy {
- inputs 2
- red red
- green green
- blue blue
- alpha alpha2
- name ShuffleCopy4
- xpos -275
- ypos -46
- }
- Premult {
- name Premult4
- xpos -275
- ypos -20
- }
- Dot {
- name Dot10
- xpos -241
- ypos 13
- }
- push $Na68df1b0
- Dot {
- name Dot7
- xpos -1085
- ypos 13
- }
- Merge2 {
- inputs 2
- name mergeCarpet
- xpos -567
- ypos 9
- }
- Crop {
- box {0 0 {parent.IMG_IN.format.width i} {parent.IMG_IN.format.height i}}
- reformat true
- crop false
- name clean_size
- xpos -567
- ypos 105
- }
- push $Ne34c39a0
- push $Na64dead0
- Dot {
- name Dot8
- xpos 15
- ypos -713
- }
- Merge2 {
- inputs 2
- operation screen
- name Merge4
- xpos -19
- ypos -118
- }
- Switch {
- inputs 2
- which {{RenderSwitch}}
- name Switch1
- xpos -19
- ypos 105
- }
- Output {
- name Output1
- xpos -19
- ypos 151
- }
- push $Na56dd020
- Crop {
- box {{parent.CornerPin2D1.to4.x x1 329.0499878 x80 706.4000244} {parent.CornerPin2D1.to4.y x1 1268.050049 x80 501.7999878} {parent.CornerPin2D1.to4.x+20 x1 339.0499878 x80 716} {parent.CornerPin2D1.to4.y-20 x1 1278.050049 x80 513}}
- reformat true
- crop false
- name Crop4
- xpos -775
- ypos -646
- }
- push $Na93de1d0
- Crop {
- box {{parent.CornerPin2D1.to1.x i x1 329.0499878 x80 706.4000244} {parent.CornerPin2D1.to1.y i x1 1268.050049 x80 501.7999878} {parent.CornerPin2D1.to1.x+20 i x1 339.0499878 x80 716} {parent.CornerPin2D1.to1.y+20 i x1 1278.050049 x80 513}}
- reformat true
- crop false
- name Crop1
- xpos -818
- ypos -330
- }
- end_group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement