Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sb_haze.gizmo 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. #! C:/Program Files/Nuke8.0v1/nuke-8.0.v1.dll -nx
  2. version 8.0 v1
  3. Gizmo {
  4. name sb_Haze
  5. inputs 2
  6. help "Simon Bjork\nJuly 2012\nVersion 1.0\nbjork.simon@gmail.com\nStorm Studios"
  7. tile_color 0xe86611ff
  8. note_font Verdana
  9. mapsize {0.15 0.15}
  10. addUserKnob {20 controls l Controls}
  11. addUserKnob {26 divider1 l "" +STARTLINE}
  12. addUserKnob {26 info l "" +STARTLINE T "Make sure to set up your depth mask correctly."}
  13. addUserKnob {26 divider2 l "" +STARTLINE}
  14. addUserKnob {20 scattering n 1}
  15. scattering 0
  16. addUserKnob {41 master_blur l "master blur" T blur_controls.master_blur}
  17. addUserKnob {41 master_contribution l contribution T blur_controls.master_contribution}
  18. addUserKnob {41 master_amount l amount T blur_controls.master_amount}
  19. addUserKnob {20 endGroup_scattering l endGroup n -1}
  20. addUserKnob {20 atmosphere n 1}
  21. atmosphere 0
  22. addUserKnob {41 color T Constant1.color}
  23. addUserKnob {41 mix l amount T Merge1.mix}
  24. addUserKnob {20 endGroup_atmosphere l endGroup n -1}
  25. addUserKnob {20 depth_mask l "depth mask" n 1}
  26. depth_mask 0
  27. addUserKnob {6 view_matte l "view matte" +STARTLINE}
  28. addUserKnob {41 from0 l "depth mask channel" T mask2alpha.from0}
  29. addUserKnob {41 blackpoint l "near (black)" T mask_grade.blackpoint}
  30. addUserKnob {41 whitepoint l "far (white)" T mask_grade.whitepoint}
  31. addUserKnob {41 gamma l "falloff (gamma)" T mask_grade.gamma}
  32. addUserKnob {41 white_clamp l "white clamp" T mask_grade.white_clamp}
  33. addUserKnob {41 black_clamp l "black clamp" -STARTLINE T mask_grade.black_clamp}
  34. addUserKnob {41 size l blur T blur_mask.size}
  35. addUserKnob {41 to0 l "output mask" T add_mask.to0}
  36. addUserKnob {20 endGroup_depth_mask l endGroup n -1}
  37. }
  38. BackdropNode {
  39. inputs 0
  40. name BackdropNode1
  41. tile_color 0x7171c600
  42. label "atmo over"
  43. note_font_size 92
  44. xpos -3943
  45. ypos 2367
  46. bdwidth 643
  47. bdheight 487
  48. }
  49. BackdropNode {
  50. inputs 0
  51. name BackdropNode2
  52. tile_color 0x7171c600
  53. label "seven iterations blur"
  54. note_font_size 92
  55. xpos -3811
  56. ypos 2
  57. bdwidth 1088
  58. bdheight 1931
  59. }
  60. BackdropNode {
  61. inputs 0
  62. name BackdropNode3
  63. tile_color 0x8e8e3800
  64. label mask
  65. note_font_size 92
  66. xpos -1532
  67. ypos 3004
  68. bdwidth 857
  69. bdheight 1362
  70. }
  71. BackdropNode {
  72. inputs 0
  73. name BackdropNode4
  74. tile_color 0x8e8e3800
  75. label "hold-out mask"
  76. note_font_size 92
  77. xpos -498
  78. ypos 3009
  79. bdwidth 857
  80. bdheight 1362
  81. }
  82. NoOp {
  83. inputs 0
  84. name blur_controls
  85. tile_color 0xff00ff
  86. note_font_size 92
  87. xpos -4567
  88. ypos 354
  89. addUserKnob {20 User}
  90. addUserKnob {7 master_blur l blur}
  91. master_blur 160
  92. addUserKnob {7 master_contribution l contribution}
  93. master_contribution 0.2
  94. addUserKnob {7 master_amount l amount}
  95. master_amount 0.6
  96. }
  97. Input {
  98. inputs 0
  99. name img
  100. label "\[value number]"
  101. xpos -3473
  102. ypos -1160
  103. }
  104. AddChannels {
  105. channels alpha
  106. channels2 depth
  107. name AddChannels2
  108. xpos -3473
  109. ypos -934
  110. }
  111. Dot {
  112. name Dot16
  113. xpos -3439
  114. ypos -493
  115. }
  116. set N913b35d0 [stack 0]
  117. Dot {
  118. name Dot15
  119. xpos -5792
  120. ypos -493
  121. }
  122. Dot {
  123. name Dot14
  124. xpos -5796
  125. ypos 4221
  126. }
  127. set N913b3cb0 [stack 0]
  128. Dot {
  129. name Dot11
  130. xpos -5796
  131. ypos 5983
  132. }
  133. set N913b4020 [stack 0]
  134. Dot {
  135. name Dot2
  136. xpos -5796
  137. ypos 6330
  138. }
  139. push $N913b4020
  140. Input {
  141. inputs 0
  142. name hold_out
  143. label "\[value number]"
  144. xpos -103
  145. ypos 3271
  146. number 1
  147. }
  148. AddChannels {
  149. channels alpha
  150. color 1
  151. name AddChannels1
  152. xpos -103
  153. ypos 3503
  154. disable {{"\[exists parent.input1] ? 1 : 0" x428 1}}
  155. }
  156. Shuffle {
  157. alpha white
  158. name Shuffle2
  159. xpos -103
  160. ypos 3670
  161. disable {{"\[exists parent.input1] ? 1 : 0" x428 1}}
  162. }
  163. Dot {
  164. name Dot5
  165. xpos -69
  166. ypos 4099
  167. }
  168. push $N913b35d0
  169. Dot {
  170. name Dot10
  171. xpos -1104
  172. ypos -493
  173. }
  174. Dot {
  175. name Dot7
  176. xpos -1104
  177. ypos 3071
  178. }
  179. AddChannels {
  180. channels depth
  181. color 1
  182. name AddChannels3
  183. xpos -1138
  184. ypos 3248
  185. disable {{"\[exists parent.input0] ? 1 : 0" x428 1}}
  186. }
  187. Shuffle {
  188. alpha white
  189. name Shuffle5
  190. xpos -1138
  191. ypos 3380
  192. disable {{"\[exists parent.input0] ? 1 : 0" x428 1}}
  193. }
  194. set N938f4a90 [stack 0]
  195. push $N938f4a90
  196. Copy {
  197. inputs 2
  198. from0 depth.Z
  199. to0 rgba.alpha
  200. name mask2alpha
  201. xpos -1138
  202. ypos 3561
  203. }
  204. Shuffle {
  205. red alpha
  206. green alpha
  207. blue alpha
  208. name Shuffle3
  209. xpos -1138
  210. ypos 3676
  211. }
  212. Grade {
  213. channels alpha
  214. blackpoint 1000
  215. whitepoint 6000
  216. white_clamp true
  217. name mask_grade
  218. xpos -1138
  219. ypos 3781
  220. }
  221. Blur {
  222. channels alpha
  223. size 2
  224. name blur_mask
  225. xpos -1138
  226. ypos 3897
  227. }
  228. Merge2 {
  229. inputs 2
  230. operation mask
  231. name Merge2
  232. xpos -1138
  233. ypos 4096
  234. }
  235. Dot {
  236. name Dot17
  237. xpos -1104
  238. ypos 4221
  239. }
  240. set N93c06150 [stack 0]
  241. Dot {
  242. name Dot1
  243. xpos -1104
  244. ypos 4841
  245. }
  246. set N93c064c0 [stack 0]
  247. Dot {
  248. name Dot4
  249. xpos -1108
  250. ypos 5306
  251. }
  252. push $N93c064c0
  253. push $N93c06150
  254. Constant {
  255. inputs 0
  256. channels rgb
  257. color {0.7113785148 0.9035110474 0.9499999881 1}
  258. name Constant1
  259. xpos -3830
  260. ypos 2500
  261. }
  262. Shuffle {
  263. alpha white
  264. name Shuffle1
  265. xpos -3830
  266. ypos 2640
  267. }
  268. Dot {
  269. name Dot6
  270. xpos -3796
  271. ypos 2703
  272. }
  273. push $N913b35d0
  274. Dot {
  275. name Dot3
  276. xpos -3439
  277. ypos 348
  278. }
  279. set N93c075f0 [stack 0]
  280. Dot {
  281. name Dot8
  282. xpos -3047
  283. ypos 348
  284. }
  285. Blur {
  286. channels rgb
  287. size {{parent.blur_controls.master_blur/64 i}}
  288. name Blur13
  289. xpos -3081
  290. ypos 480
  291. }
  292. set N916107a0 [stack 0]
  293. Blur {
  294. channels rgb
  295. size {{parent.blur_controls.master_blur/32 i}}
  296. name Blur1
  297. xpos -3310
  298. ypos 591
  299. }
  300. set N91610b10 [stack 0]
  301. Blur {
  302. channels rgb
  303. size {{parent.blur_controls.master_blur/16 i}}
  304. name Blur5
  305. xpos -3310
  306. ypos 745
  307. }
  308. set N91610e80 [stack 0]
  309. Blur {
  310. channels rgb
  311. size {{parent.blur_controls.master_blur/8 i}}
  312. name Blur12
  313. xpos -3310
  314. ypos 935
  315. }
  316. set N916111f0 [stack 0]
  317. Blur {
  318. channels rgb
  319. size {{parent.blur_controls.master_blur/4 i}}
  320. name Blur6
  321. xpos -3310
  322. ypos 1133
  323. }
  324. set N91611560 [stack 0]
  325. Blur {
  326. channels rgb
  327. size {{parent.blur_controls.master_blur/2 i}}
  328. name Blur7
  329. xpos -3310
  330. ypos 1323
  331. }
  332. set N916118d0 [stack 0]
  333. Blur {
  334. channels rgb
  335. size {{parent.blur_controls.master_blur i}}
  336. name Blur8
  337. xpos -3310
  338. ypos 1539
  339. }
  340. push $N916118d0
  341. push $N91611560
  342. push $N916111f0
  343. push $N91610e80
  344. push $N91610b10
  345. push $N916107a0
  346. Dissolve {
  347. inputs 2
  348. channels rgb
  349. which {{parent.blur_controls.master_contribution i}}
  350. name Dissolve12
  351. xpos -3081
  352. ypos 585
  353. }
  354. Dissolve {
  355. inputs 2
  356. channels rgb
  357. which {{parent.blur_controls.master_contribution i}}
  358. name Dissolve13
  359. xpos -3081
  360. ypos 739
  361. }
  362. Dissolve {
  363. inputs 2
  364. channels rgb
  365. which {{parent.blur_controls.master_contribution i}}
  366. name Dissolve14
  367. xpos -3081
  368. ypos 929
  369. }
  370. Dissolve {
  371. inputs 2
  372. channels rgb
  373. which {{parent.blur_controls.master_contribution i}}
  374. name Dissolve5
  375. xpos -3081
  376. ypos 1127
  377. }
  378. Dissolve {
  379. inputs 2
  380. channels rgb
  381. which {{parent.blur_controls.master_contribution i}}
  382. name Dissolve6
  383. xpos -3081
  384. ypos 1317
  385. }
  386. Dissolve {
  387. inputs 2
  388. channels rgb
  389. which {{parent.blur_controls.master_contribution i}}
  390. name Dissolve7
  391. xpos -3081
  392. ypos 1533
  393. }
  394. Dot {
  395. name Dot9
  396. xpos -3047
  397. ypos 1748
  398. }
  399. push $N93c075f0
  400. Dissolve {
  401. inputs 2
  402. channels rgb
  403. which {{parent.blur_controls.master_amount i}}
  404. name Dissolve15
  405. xpos -3473
  406. ypos 1745
  407. }
  408. Merge2 {
  409. inputs 2
  410. mix 0.2
  411. name Merge1
  412. xpos -3473
  413. ypos 2703
  414. }
  415. push $N913b3cb0
  416. Keymix {
  417. inputs 3
  418. channels rgb
  419. name Keymix1
  420. xpos -3481
  421. ypos 4218
  422. }
  423. Copy {
  424. inputs 2
  425. from0 rgba.alpha
  426. name add_mask
  427. xpos -3481
  428. ypos 4826
  429. }
  430. ShuffleCopy {
  431. inputs 2
  432. red alpha
  433. green alpha
  434. blue alpha
  435. name mask2rgb
  436. label "view matte"
  437. xpos -3481
  438. ypos 5297
  439. disable {{"parent.view_matte == 1 ? 0 : 1"}}
  440. }
  441. Copy {
  442. inputs 2
  443. from0 rgba.alpha
  444. to0 rgba.alpha
  445. from1 depth.Z
  446. to1 depth.Z
  447. name Copy1
  448. xpos -3481
  449. ypos 5968
  450. }
  451. CopyBBox {
  452. inputs 2
  453. name CopyBBox1
  454. xpos -3481
  455. ypos 6327
  456. }
  457. Output {
  458. name Output1
  459. xpos -3481
  460. ypos 7275
  461. }
  462. StickyNote {
  463. inputs 0
  464. name StickyNote1
  465. label "Make sure no error occurs."
  466. xpos -1329
  467. ypos 3320
  468. }
  469. end_group