Geen omschrijving
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_lightWrap.gizmo 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. #! C:/Program Files/Nuke8.0v1/nuke-8.0.v1.dll -nx
  2. version 8.0 v1
  3. Gizmo {
  4. name sb_LightWrap
  5. inputs 4
  6. help "Simon Bjork\nwww.bjorkvisuals.com"
  7. tile_color 0xe86611ff
  8. note_font Verdana
  9. mapsize {0.15 0.15}
  10. addUserKnob {20 controls_tab l controls}
  11. addUserKnob {26 lw1_main l "light wrap 1"}
  12. addUserKnob {41 size_2 l blur T lw1_blur.size}
  13. addUserKnob {41 value_1 l color T lw1_color.value}
  14. addUserKnob {41 value_2 l amount T lw1_amount.value}
  15. addUserKnob {6 lw1_key l "luma key" +STARTLINE}
  16. lw1_key true
  17. addUserKnob {26 lw2_main l "light wrap 2"}
  18. addUserKnob {41 lw2_blu l blur T lw2_blur.size}
  19. addUserKnob {41 value l color T lw2_color.value}
  20. addUserKnob {41 value_3 l amount T lw2_amount.value}
  21. addUserKnob {6 lw2_key l "luma key" +STARTLINE}
  22. lw2_key true
  23. addUserKnob {26 divider1 l "" +STARTLINE}
  24. addUserKnob {20 lw1_grp l "light wrap 1 key controls" n 1}
  25. lw1_grp 0
  26. addUserKnob {26 lw1_luma_key l "luma key"}
  27. addUserKnob {7 lw1_black_slider l black}
  28. lw1_black_slider 0.4
  29. addUserKnob {7 lw1_white_slider l white}
  30. lw1_white_slider 0.7
  31. addUserKnob {26 lw1_grade_luma l "grade matte"}
  32. addUserKnob {41 blackpoint T Grade4.blackpoint}
  33. addUserKnob {41 whitepoint T Grade4.whitepoint}
  34. addUserKnob {41 gamma_1 l gamma T Grade4.gamma}
  35. addUserKnob {26 lw1_adj_luma l "adjust matte"}
  36. addUserKnob {41 size_3 l erode T FilterErode2.size}
  37. addUserKnob {41 size_4 l blur T Blur4.size}
  38. addUserKnob {20 endGroup_lw1_grp l endGroup n -1}
  39. addUserKnob {20 lw2_grp l "light wrap 2 key controls" n 1}
  40. lw2_grp 0
  41. addUserKnob {26 key_text l "luma key"}
  42. addUserKnob {7 lw2_black_slider l black}
  43. lw2_black_slider 0.4
  44. addUserKnob {7 lw2_white_slider l white}
  45. lw2_white_slider 0.7
  46. addUserKnob {26 grade_matte l "grade matte"}
  47. addUserKnob {41 blackpoint_1 l blackpoint T Grade2.blackpoint}
  48. addUserKnob {41 whitepoint_1 l whitepoint T Grade2.whitepoint}
  49. addUserKnob {41 gamma T Grade2.gamma}
  50. addUserKnob {26 adjust_matte l "adjust matte"}
  51. addUserKnob {41 size l erode T FilterErode1.size}
  52. addUserKnob {41 size_1 l blur T Blur2.size}
  53. addUserKnob {20 endGroup_lw2_grp l endGroup n -1}
  54. addUserKnob {26 divider2 l "" +STARTLINE}
  55. addUserKnob {41 to0 l "output matte channel" T output_channel.to0}
  56. addUserKnob {26 divider3 l "" +STARTLINE}
  57. addUserKnob {4 output M {rgb "light wrap 1 luma matte" "light wrap 2 luma matte" "" "" ""}}
  58. }
  59. BackdropNode {
  60. inputs 0
  61. name BackdropNode3
  62. tile_color 0x7171c600
  63. label forground
  64. note_font_size 92
  65. xpos -598
  66. ypos -778
  67. bdwidth 512
  68. bdheight 588
  69. }
  70. BackdropNode {
  71. inputs 0
  72. name BackdropNode2
  73. tile_color 0x7171c600
  74. label background
  75. note_font_size 92
  76. xpos -589
  77. ypos -2447
  78. bdwidth 502
  79. bdheight 351
  80. }
  81. BackdropNode {
  82. inputs 0
  83. name BackdropNode4
  84. tile_color 0x7171c600
  85. label "luma key 1"
  86. note_font_size 92
  87. xpos -1375
  88. ypos -1677
  89. bdwidth 669
  90. bdheight 873
  91. }
  92. BackdropNode {
  93. inputs 0
  94. name BackdropNode1
  95. tile_color 0x7171c600
  96. label "luma key 2"
  97. note_font_size 92
  98. xpos 101
  99. ypos -1681
  100. bdwidth 669
  101. bdheight 873
  102. }
  103. BackdropNode {
  104. inputs 0
  105. name BackdropNode5
  106. tile_color 0x7171c600
  107. label "matte output"
  108. note_font_size 92
  109. xpos -609
  110. ypos 1078
  111. bdwidth 629
  112. bdheight 564
  113. }
  114. BackdropNode {
  115. inputs 0
  116. name BackdropNode6
  117. tile_color 0x7171c600
  118. label mask1
  119. note_font_size 92
  120. xpos -1370
  121. ypos 552
  122. bdwidth 295
  123. bdheight 278
  124. }
  125. BackdropNode {
  126. inputs 0
  127. name BackdropNode7
  128. tile_color 0x7171c6ff
  129. label mask2
  130. note_font_size 92
  131. xpos 419
  132. ypos 538
  133. bdwidth 310
  134. bdheight 277
  135. }
  136. Input {
  137. inputs 0
  138. name bg
  139. xpos -389
  140. ypos -2283
  141. number 1
  142. }
  143. set N2c69b440 [stack 0]
  144. Dot {
  145. name Dot2
  146. xpos 210
  147. ypos -1859
  148. }
  149. set N2c69b7b0 [stack 0]
  150. Dot {
  151. name Dot14
  152. xpos 519
  153. ypos -1859
  154. }
  155. Keyer {
  156. operation "luminance key"
  157. range {{lw2_black_slider i} {lw2_white_slider i} 1 1}
  158. name Keyer1
  159. xpos 485
  160. ypos -1497
  161. }
  162. Grade {
  163. channels alpha
  164. black_clamp false
  165. name Grade2
  166. xpos 485
  167. ypos -1418
  168. }
  169. FilterErode {
  170. channels alpha
  171. size 0
  172. name FilterErode1
  173. xpos 485
  174. ypos -1295
  175. }
  176. Blur {
  177. channels alpha
  178. size 10
  179. name Blur2
  180. xpos 485
  181. ypos -1177
  182. }
  183. Shuffle {
  184. red alpha
  185. green alpha
  186. blue alpha
  187. name Shuffle1
  188. xpos 485
  189. ypos -1041
  190. }
  191. set N2c96cef0 [stack 0]
  192. Dot {
  193. name Dot4
  194. xpos 1023
  195. ypos -1037
  196. }
  197. Dot {
  198. name Dot5
  199. xpos 1023
  200. ypos 2121
  201. }
  202. Shuffle {
  203. alpha white
  204. name Shuffle3
  205. xpos 139
  206. ypos 2117
  207. }
  208. push $N2c69b440
  209. Dot {
  210. name Dot8
  211. xpos -910
  212. ypos -1837
  213. }
  214. set N2c96dcb0 [stack 0]
  215. Dot {
  216. name Dot13
  217. xpos -1233
  218. ypos -1837
  219. }
  220. Keyer {
  221. operation "luminance key"
  222. range {{lw1_black_slider i} {lw1_white_slider i} 1 1}
  223. name Keyer2
  224. xpos -1267
  225. ypos -1475
  226. }
  227. Grade {
  228. channels alpha
  229. black_clamp false
  230. name Grade4
  231. xpos -1267
  232. ypos -1386
  233. }
  234. FilterErode {
  235. channels alpha
  236. size 0
  237. name FilterErode2
  238. xpos -1267
  239. ypos -1254
  240. }
  241. Blur {
  242. channels alpha
  243. size 10
  244. name Blur4
  245. xpos -1267
  246. ypos -1140
  247. }
  248. Shuffle {
  249. red alpha
  250. green alpha
  251. blue alpha
  252. name Shuffle2
  253. xpos -1267
  254. ypos -1005
  255. }
  256. set N2c9c3120 [stack 0]
  257. Dot {
  258. name Dot6
  259. xpos -1718
  260. ypos -1001
  261. }
  262. Dot {
  263. name Dot10
  264. xpos -1718
  265. ypos 2121
  266. }
  267. Shuffle {
  268. alpha white
  269. name Shuffle4
  270. xpos -890
  271. ypos 2117
  272. }
  273. Input {
  274. inputs 0
  275. name mask1
  276. xpos -1248
  277. ypos 702
  278. number 2
  279. }
  280. Input {
  281. inputs 0
  282. name fg
  283. xpos -390
  284. ypos -589
  285. }
  286. Dot {
  287. name Dot7
  288. xpos -356
  289. ypos -352
  290. }
  291. set N2ca3aa40 [stack 0]
  292. Dot {
  293. name Dot1
  294. xpos -356
  295. ypos 81
  296. }
  297. set N2ca3adb0 [stack 0]
  298. push $N2ca3aa40
  299. push $N2c9c3120
  300. Dot {
  301. name Dot9
  302. xpos -1233
  303. ypos -902
  304. }
  305. push $N2c96dcb0
  306. Merge2 {
  307. inputs 2
  308. operation mask
  309. bbox B
  310. name Merge7
  311. xpos -944
  312. ypos -905
  313. disable {{"lw1_key == 1?0:1"}}
  314. }
  315. Merge2 {
  316. inputs 2
  317. operation stencil
  318. bbox B
  319. name Merge4
  320. xpos -944
  321. ypos -356
  322. }
  323. Blur {
  324. size 6
  325. name lw1_blur
  326. xpos -944
  327. ypos -216
  328. }
  329. Merge2 {
  330. inputs 2
  331. operation mask
  332. bbox B
  333. name Merge5
  334. xpos -944
  335. ypos 77
  336. }
  337. Multiply {
  338. channels rgb
  339. value {1 1 1 1}
  340. name lw1_color
  341. xpos -944
  342. ypos 261
  343. }
  344. Multiply {
  345. channels rgba
  346. value 0.1
  347. name lw1_amount
  348. xpos -944
  349. ypos 477
  350. }
  351. Merge2 {
  352. inputs 2
  353. operation mask
  354. name Merge8
  355. xpos -944
  356. ypos 702
  357. disable {{"\[exists parent.input2] ? 0 : 1" i}}
  358. }
  359. Input {
  360. inputs 0
  361. name mask2
  362. xpos 502
  363. ypos 680
  364. number 3
  365. }
  366. push $N2ca3adb0
  367. push $N2ca3aa40
  368. push $N2c96cef0
  369. Dot {
  370. name Dot3
  371. xpos 519
  372. ypos -938
  373. }
  374. push $N2c69b7b0
  375. Merge2 {
  376. inputs 2
  377. operation mask
  378. bbox B
  379. name Merge3
  380. xpos 176
  381. ypos -942
  382. disable {{"lw2_key == 0?1:0" i}}
  383. }
  384. Merge2 {
  385. inputs 2
  386. operation stencil
  387. bbox B
  388. name Merge1
  389. xpos 176
  390. ypos -356
  391. }
  392. Blur {
  393. size 50
  394. name lw2_blur
  395. xpos 176
  396. ypos -171
  397. }
  398. Merge2 {
  399. inputs 2
  400. operation mask
  401. bbox B
  402. name Merge2
  403. xpos 176
  404. ypos 77
  405. }
  406. Multiply {
  407. channels rgb
  408. value {1 1 1 1}
  409. name lw2_color
  410. xpos 176
  411. ypos 300
  412. }
  413. Multiply {
  414. channels rgba
  415. value 0.05
  416. name lw2_amount
  417. xpos 176
  418. ypos 479
  419. }
  420. Merge2 {
  421. inputs 2
  422. operation mask
  423. bbox B
  424. name Merge9
  425. xpos 176
  426. ypos 680
  427. disable {{"\[exists parent.input3] == 1?0:1" i}}
  428. }
  429. Merge2 {
  430. inputs 2
  431. operation plus
  432. name Merge6
  433. xpos -373
  434. ypos 871
  435. }
  436. Dot {
  437. name Dot11
  438. xpos -339
  439. ypos 1298
  440. }
  441. set N2cb42dd0 [stack 0]
  442. Dot {
  443. name Dot12
  444. xpos -132
  445. ypos 1298
  446. }
  447. Clamp {
  448. channels alpha
  449. name Clamp1
  450. xpos -166
  451. ypos 1395
  452. }
  453. Dot {
  454. name Dot15
  455. xpos -132
  456. ypos 1532
  457. }
  458. push $N2cb42dd0
  459. Copy {
  460. inputs 2
  461. from0 rgba.alpha
  462. name output_channel
  463. xpos -373
  464. ypos 1522
  465. }
  466. Shuffle {
  467. alpha black
  468. name Shuffle5
  469. label "alpha to black"
  470. xpos -373
  471. ypos 1878
  472. }
  473. Switch {
  474. inputs 3
  475. which {{"output == 0?0 : output == 1?1 : 2" i x548 0}}
  476. name output
  477. xpos -373
  478. ypos 2117
  479. }
  480. Output {
  481. name Output2
  482. xpos -373
  483. ypos 2834
  484. }
  485. end_group