Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.05 KB | None | 0 0
  1. set cut_paste_input [stack 0]
  2. version 10.0 v4
  3. push $cut_paste_input
  4. Group {
  5. name magicCarpet_Fixed
  6. 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"
  7. selected true
  8. xpos -274
  9. ypos 6569
  10. addUserKnob {20 magicCarpet}
  11. addUserKnob {41 to1 T CornerPin2D1.to1}
  12. addUserKnob {41 to2 T CornerPin2D1.to2}
  13. addUserKnob {41 to3 T CornerPin2D1.to3}
  14. addUserKnob {41 to4 T CornerPin2D1.to4}
  15. addUserKnob {26 ""}
  16. addUserKnob {41 Erode T Dilate1.size}
  17. addUserKnob {41 Blur T Blur1.size}
  18. addUserKnob {26 ""}
  19. addUserKnob {4 RenderSwitch l Render M {Setup Final ""}}
  20. RenderSwitch Final
  21. addUserKnob {26 "" +STARTLINE}
  22. addUserKnob {26 line l "" +STARTLINE T "Fixes for magicCarpet (Max van Leeuwen)"}
  23. addUserKnob {6 AutoForce l "Auto Force Sampling" t "Automatically forces the colour sampling on every change made to the corner pin knobs" +STARTLINE}
  24. AutoForce true
  25. 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()"}
  26. addUserKnob {41 set_to_input l "Corner pin to input" t "Is pressed automatically on node creation" T CornerPin2D1.set_to_input}
  27. }
  28. BackdropNode {
  29. inputs 0
  30. name combining_ramp_Y_axis
  31. tile_color 0x8e8e3800
  32. note_font_size 42
  33. xpos -967
  34. ypos -163
  35. bdwidth 279
  36. bdheight 172
  37. }
  38. BackdropNode {
  39. inputs 0
  40. name final_result
  41. tile_color 0x8e3737ff
  42. gl_color 0xcc2c1cff
  43. note_font_size 42
  44. xpos -577
  45. ypos -13
  46. bdwidth 197
  47. bdheight 161
  48. }
  49. BackdropNode {
  50. inputs 0
  51. name lower_ramp_X_axis
  52. xpos -878
  53. ypos -397
  54. bdwidth 556
  55. bdheight 225
  56. }
  57. BackdropNode {
  58. inputs 0
  59. name matte_pipe
  60. tile_color 0x7171c600
  61. note_font_size 42
  62. xpos -314
  63. ypos -164
  64. bdwidth 156
  65. bdheight 212
  66. }
  67. BackdropNode {
  68. inputs 0
  69. name preview_pipe
  70. tile_color 0x8e8e3800
  71. note_font_size 42
  72. xpos -117
  73. ypos -165
  74. bdwidth 254
  75. bdheight 103
  76. }
  77. BackdropNode {
  78. inputs 0
  79. name upper_ramp_X_axis
  80. xpos -944
  81. ypos -674
  82. bdwidth 621
  83. bdheight 266
  84. }
  85. Input {
  86. inputs 0
  87. name IMG_IN
  88. xpos -1180
  89. ypos 106
  90. number 1
  91. }
  92. Dot {
  93. name Dot11
  94. xpos -1146
  95. ypos -713
  96. }
  97. Dot {
  98. name Dot3
  99. xpos -1085
  100. ypos -713
  101. }
  102. set Ne0b8d360 [stack 0]
  103. Dot {
  104. name Dot1
  105. xpos -741
  106. ypos -713
  107. }
  108. set Na56dd020 [stack 0]
  109. Dot {
  110. name Dot9
  111. xpos -476
  112. ypos -713
  113. }
  114. set Na64dead0 [stack 0]
  115. Crop {
  116. 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}}
  117. reformat true
  118. crop false
  119. name Crop3
  120. xpos -510
  121. ypos -648
  122. }
  123. push $Ne0b8d360
  124. Dot {
  125. name Dot6
  126. xpos -1085
  127. ypos -374
  128. }
  129. set Na68df1b0 [stack 0]
  130. Dot {
  131. name Dot4
  132. xpos -784
  133. ypos -374
  134. }
  135. set Na93de1d0 [stack 0]
  136. Crop {
  137. 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}}
  138. reformat true
  139. crop false
  140. name Crop2
  141. xpos -544
  142. ypos -378
  143. }
  144. Input {
  145. inputs 0
  146. name nothing
  147. xpos -433
  148. ypos -143
  149. }
  150. set Naa0dd680 [stack 0]
  151. Ramp {
  152. p0 {{(parent.CornerPin2D1.to2.x+parent.CornerPin2D1.to1.x)/2} {(parent.CornerPin2D1.to2.y+parent.CornerPin2D1.to1.y)/2}}
  153. p1 {{(parent.CornerPin2D1.to3.x+parent.CornerPin2D1.to4.x)/2} {(parent.CornerPin2D1.to3.y+parent.CornerPin2D1.to4.y)/2}}
  154. name Ramp3
  155. xpos -934
  156. ypos -143
  157. }
  158. Constant {
  159. inputs 0
  160. channels rgb
  161. color {0 0 0 1}
  162. format "4096 3112 0 0 4096 3112 1 4K_Super_35(full-ap)"
  163. name Constant8
  164. xpos -508
  165. ypos -612
  166. }
  167. set Nee4c540 [stack 0]
  168. Ramp {
  169. p0 {{parent.CornerPin2D1.to3.x i} {parent.CornerPin2D1.to3.y i}}
  170. p1 {{parent.CornerPin2D1.to4.x i} {parent.CornerPin2D1.to4.y i}}
  171. type smooth0
  172. name Ramp2
  173. xpos -508
  174. ypos -540
  175. }
  176. Invert {
  177. name Invert1
  178. xpos -508
  179. ypos -486
  180. }
  181. push $Nee4c540
  182. ShuffleCopy {
  183. inputs 2
  184. name ShuffleCopy2
  185. xpos -661
  186. ypos -480
  187. }
  188. Premult {
  189. name Premult2
  190. xpos -661
  191. ypos -454
  192. }
  193. Constant {
  194. inputs 0
  195. channels rgb
  196. color {0 0 0 1}
  197. format "4096 3112 0 0 4096 3112 1 4K_Super_35(full-ap)"
  198. name Constant9
  199. xpos -771
  200. ypos -612
  201. }
  202. Merge2 {
  203. inputs 2
  204. name Merge2
  205. xpos -771
  206. ypos -454
  207. }
  208. Dot {
  209. name Dot5
  210. xpos -900
  211. ypos -450
  212. }
  213. ShuffleCopy {
  214. inputs 2
  215. name ShuffleCopy3
  216. xpos -934
  217. ypos -94
  218. }
  219. Premult {
  220. name Premult3
  221. xpos -934
  222. ypos -68
  223. }
  224. Dot {
  225. name Dot2
  226. xpos -900
  227. ypos -42
  228. }
  229. push $Naa0dd680
  230. Ramp {
  231. p0 {{parent.CornerPin2D1.to1.x} {parent.CornerPin2D1.to1.y}}
  232. p1 {{parent.CornerPin2D1.to2.x} {parent.CornerPin2D1.to2.y}}
  233. name Ramp1
  234. xpos -433
  235. ypos -242
  236. }
  237. Constant {
  238. inputs 0
  239. channels rgb
  240. color {0 0 0 1}
  241. format "4096 3112 0 0 4096 3112 1 4K_Super_35(full-ap)"
  242. name Constant7
  243. xpos -543
  244. ypos -314
  245. }
  246. ShuffleCopy {
  247. inputs 2
  248. name ShuffleCopy1
  249. xpos -543
  250. ypos -242
  251. }
  252. Premult {
  253. name Premult1
  254. xpos -543
  255. ypos -216
  256. }
  257. Constant {
  258. inputs 0
  259. channels rgb
  260. color {0 0 0 1}
  261. format "2048 1556 0 0 2048 1556 1 2K_Super_35(full-ap)"
  262. name Constant6
  263. xpos -818
  264. ypos -288
  265. }
  266. Merge2 {
  267. inputs 2
  268. name Merge1
  269. xpos -818
  270. ypos -216
  271. }
  272. Merge2 {
  273. inputs 2
  274. name Merge3
  275. xpos -818
  276. ypos -46
  277. }
  278. Constant {
  279. inputs 0
  280. color {0.224999994 0.224999994 0.224999994 1}
  281. name Constant5
  282. xpos -166
  283. ypos -561
  284. }
  285. CornerPin2D {
  286. to1 {0 0}
  287. to2 {2880 0}
  288. to3 {2880 1620}
  289. to4 {0 1620}
  290. invert false
  291. from1 {0 0}
  292. from2 {2880 0}
  293. from3 {2880 1620}
  294. from4 {0 1620}
  295. name CornerPin2D1
  296. xpos -166
  297. ypos -448
  298. }
  299. set Ne34c39a0 [stack 0]
  300. Dilate {
  301. channels alpha
  302. name Dilate1
  303. xpos -275
  304. ypos -138
  305. }
  306. Blur {
  307. channels alpha
  308. name Blur1
  309. xpos -275
  310. ypos -100
  311. }
  312. ShuffleCopy {
  313. inputs 2
  314. red red
  315. green green
  316. blue blue
  317. alpha alpha2
  318. name ShuffleCopy4
  319. xpos -275
  320. ypos -46
  321. }
  322. Premult {
  323. name Premult4
  324. xpos -275
  325. ypos -20
  326. }
  327. Dot {
  328. name Dot10
  329. xpos -241
  330. ypos 13
  331. }
  332. push $Na68df1b0
  333. Dot {
  334. name Dot7
  335. xpos -1085
  336. ypos 13
  337. }
  338. Merge2 {
  339. inputs 2
  340. name mergeCarpet
  341. xpos -567
  342. ypos 9
  343. }
  344. Crop {
  345. box {0 0 {parent.IMG_IN.format.width i} {parent.IMG_IN.format.height i}}
  346. reformat true
  347. crop false
  348. name clean_size
  349. xpos -567
  350. ypos 105
  351. }
  352. push $Ne34c39a0
  353. push $Na64dead0
  354. Dot {
  355. name Dot8
  356. xpos 15
  357. ypos -713
  358. }
  359. Merge2 {
  360. inputs 2
  361. operation screen
  362. name Merge4
  363. xpos -19
  364. ypos -118
  365. }
  366. Switch {
  367. inputs 2
  368. which {{RenderSwitch}}
  369. name Switch1
  370. xpos -19
  371. ypos 105
  372. }
  373. Output {
  374. name Output1
  375. xpos -19
  376. ypos 151
  377. }
  378. push $Na56dd020
  379. Crop {
  380. 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}}
  381. reformat true
  382. crop false
  383. name Crop4
  384. xpos -775
  385. ypos -646
  386. }
  387. push $Na93de1d0
  388. Crop {
  389. 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}}
  390. reformat true
  391. crop false
  392. name Crop1
  393. xpos -818
  394. ypos -330
  395. }
  396. end_group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement