説明なし
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

iblur_hub.gizmo 9.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. #! C:/Program Files/Nuke6.3v4/Nuke6.3.exe -nx
  2. version 6.3 v4
  3. Group {
  4. name iblur_hub
  5. inputs 2
  6. help "iblur hub is yet another iblur node but not only ;-)\n\nFor small values and no bonus option selected it can replace others iblur, with no extra time renders.\n\n - For small values, prefers the \"horizontal\" or \"diagonal\" mode to avoid extra renders.\n - For larger values \"POST BLURS\" with \"Larger Blur\" option ticked can fix small details artefacts. (like the right part in the example. See it by clicking the \"infos\" button at the bottom.)\n\nIt can also make a lot more.\n\n\"NOISE DISTORT\" adds quickly random extra details in the edges. \nJust like in the \"Nuke Noise\" node :\n - \"X/Y Size\" controls noise's frequency\n - \"Z\" can be used to change noise's seed and animate it.\n\n\"CHROMATIC ABBERATIONS\" with \"Noise Distort\" can create nice Glint FXs\n - Just one parameter to control the amount.\n - For other sets of color, just do it your self ! \n"
  7. tile_color 0xff8332ff
  8. label "\[if \{\[value NoiseTrigger]\} \{return Noised\}]\n"
  9. note_font_color 0xffffffff
  10. addUserKnob {20 iblur_hub l "iblur hub"}
  11. addUserKnob {41 from0 l u T Copy1.from0}
  12. addUserKnob {6 VtakesUvalue l "same for" -STARTLINE}
  13. VtakesUvalue true
  14. addUserKnob {41 from1 l v -STARTLINE T Copy1.from1}
  15. addUserKnob {4 Mode M {Horizontal/Vertical Diagonal "All (Slower)"}}
  16. Mode "All (Slower)"
  17. addUserKnob {7 size l Size R 0 100}
  18. size 10
  19. addUserKnob {7 offset l Offset R -1 1}
  20. offset -0.5
  21. addUserKnob {26 ""}
  22. addUserKnob {6 NoiseTrigger l "<b>Noise Distort</b>" +STARTLINE}
  23. addUserKnob {19 NoiseBoost_white l Gain R 0 4}
  24. NoiseBoost_white 3.6
  25. addUserKnob {19 NoiseBoost_gamma l Gamma R 0.2 5}
  26. NoiseBoost_gamma 1
  27. addUserKnob {41 size_1 l "X/Y Size" T Noise1.size}
  28. addUserKnob {8 Noise1_zoffset l Z R 0 5}
  29. Noise1_zoffset 1
  30. addUserKnob {26 ""}
  31. addUserKnob {6 postBlurs l "<b>Post Blurs</b>" +STARTLINE}
  32. addUserKnob {7 postBlurSize_expr l "Size Mult" R 0 5}
  33. postBlurSize_expr 1
  34. addUserKnob {6 moreBlur l "Larger Blur" -STARTLINE}
  35. moreBlur true
  36. addUserKnob {6 Extreme -STARTLINE}
  37. addUserKnob {41 mix l Mix T Blur1.mix}
  38. addUserKnob {26 ""}
  39. addUserKnob {6 chromatic l "<b>Chromatic Abberrations</b>" +STARTLINE}
  40. addUserKnob {7 ChromaticMult l Multiplier R 0 5}
  41. ChromaticMult 1
  42. addUserKnob {26 ""}
  43. addUserKnob {7 grow_bbox l "Grow Bbox" R 0 100}
  44. addUserKnob {26 ""}
  45. addUserKnob {22 infos T "import webbrowser \nwebbrowser.open(\"http://www.nukepedia.com/gizmos/gizmos/filter/iblur_hub/\")" +STARTLINE}
  46. addUserKnob {26 philhub2013 l "philhub 2013" -STARTLINE T "\n"}
  47. }
  48. Noise {
  49. inputs 0
  50. size 28
  51. zoffset {{parent.Noise1_zoffset i}}
  52. center {640 360}
  53. name Noise1
  54. xpos 772
  55. ypos 45
  56. }
  57. Grade {
  58. channels rgba
  59. white {{parent.NoiseBoost_white.r i} {parent.NoiseBoost_white.g i} {parent.NoiseBoost_white.b i} {parent.NoiseBoost_white.a i}}
  60. gamma {{parent.NoiseBoost_gamma.r i} {parent.NoiseBoost_gamma.g i} {parent.NoiseBoost_gamma.b i} {parent.NoiseBoost_gamma.a i}}
  61. name NoiseBoost
  62. xpos 650
  63. ypos 45
  64. }
  65. Input {
  66. inputs 0
  67. name InputMask
  68. xpos 253
  69. ypos -225
  70. number 1
  71. }
  72. set N17abfa30 [stack 0]
  73. Dot {
  74. name Dot4
  75. xpos 287
  76. ypos -52
  77. }
  78. set N17abfd60 [stack 0]
  79. push $N17abfa30
  80. push $N17abfa30
  81. Input {
  82. inputs 0
  83. name Input1
  84. xpos 520
  85. ypos -319
  86. }
  87. set N17ac0090 [stack 0]
  88. FilterErode {
  89. inputs 1+1
  90. channels {rgba.red rgba.green -rgba.blue}
  91. size {{-parent.TransformChromatic.translate.x/3 i}}
  92. name FilterErodeChromatic
  93. xpos 520
  94. ypos -277
  95. }
  96. TransformMasked {
  97. inputs 1+1
  98. channels {rgba.red -rgba.green -rgba.blue}
  99. translate {{parent.size/3*parent.ChromaticMult i} 0}
  100. center {640 360}
  101. name TransformChromatic
  102. xpos 520
  103. ypos -231
  104. }
  105. Dot {
  106. name Dot8
  107. xpos 554
  108. ypos -195
  109. }
  110. set N17ac0a20 [stack 0]
  111. Saturation {
  112. saturation 0
  113. name Saturation1
  114. xpos 609
  115. ypos -198
  116. }
  117. push $N17ac0a20
  118. add_layer {shadow}
  119. ShuffleCopy {
  120. inputs 2
  121. alpha red
  122. name createAlpha
  123. xpos 520
  124. ypos -165
  125. }
  126. push $N17ac0090
  127. Dot {
  128. name Dot7
  129. xpos 740
  130. ypos -316
  131. }
  132. Dot {
  133. name Dot6
  134. xpos 740
  135. ypos -108
  136. }
  137. Switch {
  138. inputs 2
  139. which {{parent.chromatic i}}
  140. name SwitchChromatic
  141. label "\[value which]"
  142. xpos 520
  143. ypos -117
  144. }
  145. Copy {
  146. inputs 2
  147. from0 rgba.alpha
  148. to0 backward.u
  149. from1 -rgba.alpha
  150. to1 backward.v
  151. name Copy1
  152. xpos 520
  153. ypos -67
  154. disable {{"!\[ exists parent.input\[value InputMask.number] ]" i}}
  155. }
  156. Shuffle {
  157. in backward
  158. green red
  159. out backward
  160. name copyU2V
  161. label "\[value in]"
  162. xpos 520
  163. ypos -19
  164. disable {{!parent.VtakesUvalue i}}
  165. }
  166. Merge2 {
  167. inputs 2
  168. operation soft-light
  169. Bchannels motion
  170. output motion
  171. name M_noise
  172. note_font_color 0xffffffff
  173. xpos 520
  174. ypos 39
  175. disable {{!parent.NoiseTrigger i}}
  176. }
  177. Dot {
  178. name Dot2
  179. xpos 554
  180. ypos 97
  181. }
  182. set N17ac23a0 [stack 0]
  183. Dot {
  184. name Dot16
  185. xpos 836
  186. ypos 97
  187. }
  188. Erode {
  189. channels rgba
  190. size 16
  191. blur 0.44
  192. name Erode1
  193. xpos 802
  194. ypos 558
  195. }
  196. Blur {
  197. channels rgba
  198. size 10
  199. name Blur5
  200. xpos 802
  201. ypos 582
  202. }
  203. Dot {
  204. name Dot9
  205. xpos 836
  206. ypos 661
  207. }
  208. push $N17abfd60
  209. Dot {
  210. name Dot3
  211. xpos 153
  212. ypos -52
  213. }
  214. Dot {
  215. name Dot12
  216. xpos 153
  217. ypos 270
  218. }
  219. set N17b43700 [stack 0]
  220. Dot {
  221. name Dot1
  222. xpos 184
  223. ypos 402
  224. }
  225. push $N17ac23a0
  226. push $N17ac23a0
  227. Expression {
  228. channel0 {forward.u -forward.v -backward.u none}
  229. expr0 backward.u
  230. channel1 {-forward.u forward.v -backward.u none}
  231. expr1 0
  232. name expr6
  233. xpos 362
  234. ypos 130
  235. }
  236. VectorBlur {
  237. channels rgba
  238. uv forward
  239. scale {{parent.size i}}
  240. offset {{parent.offset i}}
  241. grow_bbox {{parent.grow_bbox i}}
  242. method forward
  243. alpha rgba.alpha
  244. name VectorBlur10
  245. xpos 362
  246. ypos 154
  247. }
  248. push $N17ac23a0
  249. Expression {
  250. channel0 {forward.u -forward.v -backward.u none}
  251. expr0 0
  252. channel1 {-forward.u forward.v -backward.u none}
  253. expr1 backward.v
  254. name expr7
  255. xpos 459
  256. ypos 130
  257. }
  258. VectorBlur {
  259. channels rgba
  260. uv forward
  261. scale {{parent.size i}}
  262. offset {{parent.offset i}}
  263. grow_bbox {{parent.grow_bbox i}}
  264. method forward
  265. alpha rgba.alpha
  266. name VectorBlur11
  267. xpos 459
  268. ypos 154
  269. }
  270. Dissolve {
  271. inputs 2
  272. channels rgba
  273. which 0.5
  274. name Dissolve4
  275. label "\[value which]"
  276. xpos 410
  277. ypos 226
  278. }
  279. set N17b44a20 [stack 0]
  280. push $N17ac23a0
  281. VectorBlur {
  282. channels rgba
  283. uv backward
  284. scale {{parent.size i}}
  285. offset {{parent.offset i}}
  286. grow_bbox {{parent.grow_bbox i}}
  287. method forward
  288. alpha rgba.alpha
  289. name VectorBlur12
  290. xpos 559
  291. ypos 151
  292. }
  293. push $N17ac23a0
  294. Expression {
  295. channel0 {forward.u -forward.v -backward.u none}
  296. expr0 -backward.u
  297. channel1 {-forward.u forward.v -backward.u none}
  298. expr1 backward.v
  299. name expr8
  300. xpos 662
  301. ypos 129
  302. }
  303. VectorBlur {
  304. channels rgba
  305. uv forward
  306. scale {{parent.size i}}
  307. offset {{parent.offset i}}
  308. grow_bbox {{parent.grow_bbox i}}
  309. method forward
  310. alpha rgba.alpha
  311. name VectorBlur13
  312. xpos 662
  313. ypos 153
  314. }
  315. Dissolve {
  316. inputs 2
  317. channels rgba
  318. which 0.5
  319. name Dissolve5
  320. label "\[value which]"
  321. xpos 611
  322. ypos 226
  323. }
  324. set N17b456e0 [stack 0]
  325. Dissolve {
  326. inputs 2
  327. channels rgba
  328. which 0.5
  329. name Dissolve6
  330. label "\[value which]"
  331. xpos 521
  332. ypos 250
  333. }
  334. push $N17b456e0
  335. push $N17b44a20
  336. Switch {
  337. inputs 3
  338. which {{Mode i}}
  339. name SwitchMode
  340. label "\[value which]"
  341. xpos 521
  342. ypos 310
  343. }
  344. Dot {
  345. name Dot14
  346. xpos 555
  347. ypos 353
  348. }
  349. set N17b45d40 [stack 0]
  350. Merge2 {
  351. inputs 2
  352. operation stencil
  353. name M_
  354. note_font_color 0xffffffff
  355. xpos 242
  356. ypos 348
  357. }
  358. set N17b46070 [stack 0]
  359. Grade {
  360. channels rgba
  361. blackpoint 0.2
  362. whitepoint 0.22
  363. white 0.7
  364. name Grade1
  365. xpos 383
  366. ypos 375
  367. }
  368. Merge2 {
  369. inputs 2
  370. operation multiply
  371. name M_2
  372. xpos 383
  373. ypos 399
  374. }
  375. Blur {
  376. channels rgba
  377. size {{parent.size/2}}
  378. name Blur4
  379. xpos 383
  380. ypos 438
  381. }
  382. Grade {
  383. channels rgba
  384. blackpoint 0.4
  385. name Grade5
  386. xpos 383
  387. ypos 462
  388. }
  389. push $N17b43700
  390. push $N17ac0090
  391. Dot {
  392. name Dot10
  393. xpos 10
  394. ypos -316
  395. }
  396. Dot {
  397. name Dot11
  398. xpos 10
  399. ypos 270
  400. }
  401. set N17b47390 [stack 0]
  402. Merge2 {
  403. inputs 2
  404. operation stencil
  405. name M_4
  406. xpos 45
  407. ypos 383
  408. }
  409. FilterErode {
  410. channels rgba
  411. size -2
  412. name FilterErode1
  413. xpos 45
  414. ypos 419
  415. }
  416. set N17c17810 [stack 0]
  417. Blur {
  418. channels rgba
  419. size {{parent.size/2 i}}
  420. name Blur6
  421. xpos 45
  422. ypos 443
  423. }
  424. Grade {
  425. channels rgba
  426. whitepoint 0.5
  427. name Grade6
  428. xpos 45
  429. ypos 467
  430. }
  431. set N18f078f0 [stack 0]
  432. Dot {
  433. name Dot15
  434. xpos 79
  435. ypos 501
  436. }
  437. set N17c17b40 [stack 0]
  438. Dot {
  439. name Dot5
  440. xpos 79
  441. ypos 540
  442. }
  443. push $N17c17b40
  444. push $N17b46070
  445. Grade {
  446. channels rgba
  447. whitepoint 0.01
  448. name Grade4
  449. xpos 242
  450. ypos 372
  451. }
  452. Merge2 {
  453. inputs 2
  454. operation stencil
  455. name M_5
  456. xpos 242
  457. ypos 413
  458. }
  459. Blur {
  460. channels rgba
  461. size {{parent.size/2 i}}
  462. invert_mask true
  463. name Blur2
  464. xpos 242
  465. ypos 437
  466. }
  467. Grade {
  468. channels rgba
  469. blackpoint 0.4
  470. name Grade2
  471. xpos 242
  472. ypos 470
  473. }
  474. Blur {
  475. channels rgba
  476. size {{parent.size/2 i}}
  477. name Blur3
  478. xpos 242
  479. ypos 504
  480. }
  481. Merge2 {
  482. inputs 2
  483. operation stencil
  484. name M_3
  485. xpos 242
  486. ypos 537
  487. }
  488. Grade {
  489. channels rgba
  490. whitepoint 0.5
  491. white_clamp {{!parent.Extreme i}}
  492. name Grade3
  493. xpos 242
  494. ypos 567
  495. }
  496. Blur {
  497. channels rgba
  498. size 20
  499. name Blur7
  500. xpos 242
  501. ypos 591
  502. }
  503. set N2f11b420 [stack 0]
  504. Switch {
  505. inputs 2
  506. which 1
  507. name SwitchMoreBlur
  508. xpos 383
  509. ypos 591
  510. disable {{parent.moreBlur i}}
  511. }
  512. Clamp {
  513. channels rgba
  514. name Clamp1
  515. xpos 383
  516. ypos 615
  517. }
  518. push $N17b45d40
  519. Blur {
  520. inputs 1+1
  521. channels rgba
  522. size {{parent.postBlurSize_expr*parent.size/4 i}}
  523. name Blur1
  524. xpos 521
  525. ypos 615
  526. disable {{!parent.postBlurs i}}
  527. }
  528. Merge2 {
  529. inputs 2
  530. operation screen
  531. mix 0.7
  532. name Scrn
  533. xpos 522
  534. ypos 658
  535. }
  536. Output {
  537. name Output1
  538. xpos 522
  539. ypos 700
  540. }
  541. push $N17b47390
  542. Dot {
  543. name Dot13
  544. xpos 10
  545. ypos 383
  546. }
  547. push $N2f11b420
  548. push $N18f078f0
  549. push $N17c17810
  550. Viewer {
  551. inputs 3
  552. input_number 2
  553. input_process false
  554. name Viewer1
  555. xpos -150
  556. ypos 437
  557. }
  558. end_group