Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

bm_OpticalGlow.gizmo 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. #! /data/studio/upipe/apps/nuke/11.1v1/bin/linux/centos7/libnuke-11.1.1.so -nx
  2. version 11.1 v1
  3. Group {
  4. name bm_OpticalGlow
  5. knobChanged "n1 = nuke.thisNode()\nk1 = nuke.thisKnob()\nif k1.name() == \"effectOnly\":\n if k1.value() == 1:\n n1\[\"mergeType\"].setEnabled(False)\n else:\n n1\[\"mergeType\"].setEnabled(True) \n\n\nn2 = nuke.thisNode()\nk2 = nuke.thisKnob()\nif k2.name() == \"useThresholdCheckbox\":\n if k2.value() == 1:\n n2\[\"viewRange\"].setEnabled(True)\n else:\n n2\[\"viewRange\"].setEnabled(False)"
  6. tile_color 0x222222ff
  7. addUserKnob {20 Options}
  8. addUserKnob {4 mergeType l "Merge Operation" M {Max Over Screen Plus "" "" ""}}
  9. addUserKnob {26 spacer_01 l "" -STARTLINE T " "}
  10. addUserKnob {6 effectOnly l " Effect Only" -STARTLINE}
  11. addUserKnob {4 glowType l "Glow Math" M {Double Fibonacci ""}}
  12. glowType Fibonacci
  13. addUserKnob {26 spacer_02 l "" -STARTLINE T " "}
  14. addUserKnob {6 useThresholdCheckbox l "Use Threshold" -STARTLINE}
  15. addUserKnob {6 cropBboxCheck l "Crop BBox " +STARTLINE}
  16. cropBboxCheck true
  17. addUserKnob {6 viewRange l "View Threshold" -STARTLINE +DISABLED}
  18. addUserKnob {26 ""}
  19. addUserKnob {20 tGrp l "Threshold Selector" n 1}
  20. tGrp 0
  21. addUserKnob {26 spacer_03 l "" +STARTLINE T " "}
  22. addUserKnob {41 range l "" +STARTLINE T Keyer1.range}
  23. addUserKnob {26 spacer_04 l "" +STARTLINE T " "}
  24. addUserKnob {20 endGroup n -1}
  25. addUserKnob {26 ""}
  26. addUserKnob {7 glowSize l Size R 0 500}
  27. glowSize 100
  28. addUserKnob {7 glowAspect l Aspect R 0.5 2}
  29. glowAspect 1
  30. addUserKnob {7 glowBrightness l Brightness R 0 3}
  31. glowBrightness 1
  32. addUserKnob {18 glowGamma l Gamma R 0 2}
  33. glowGamma 1
  34. addUserKnob {6 glowGamma_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  35. addUserKnob {6 glowGamma_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  36. addUserKnob {6 glowGamma_panelDropped_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  37. addUserKnob {6 glowGamma_panelDropped_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  38. addUserKnob {6 glowGamma_panelDropped_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  39. addUserKnob {6 glowGamma_panelDropped_1_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  40. addUserKnob {6 glowGamma_panelDropped_1_1_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  41. addUserKnob {6 glowGamma_panelDropped_1_1_1_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  42. addUserKnob {18 glowSaturation l Saturation R 0 3}
  43. glowSaturation 1
  44. addUserKnob {6 glowSaturation_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  45. addUserKnob {6 glowSaturation_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  46. addUserKnob {6 glowSaturation_panelDropped_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  47. addUserKnob {6 glowSaturation_panelDropped_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  48. addUserKnob {6 glowSaturation_panelDropped_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  49. addUserKnob {6 glowSaturation_panelDropped_1_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  50. addUserKnob {6 glowSaturation_panelDropped_1_1_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  51. addUserKnob {6 glowSaturation_panelDropped_1_1_1_1_1_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  52. addUserKnob {26 ""}
  53. addUserKnob {4 alphaChoice l "Use Alpha From" M {Plate "Glow Only" "Glow Range" "Plate & Glow" ""}}
  54. alphaChoice "Plate & Glow"
  55. addUserKnob {7 glowMix l Mix}
  56. glowMix 1
  57. addUserKnob {26 ""}
  58. addUserKnob {20 versionInfo l Info}
  59. addUserKnob {26 ""}
  60. addUserKnob {26 versionInfo_1 l "" +STARTLINE T "\nCreated by Ben McEwan\nwww.benmcewan.com\n\nVersion 3.1\nLast Updated: February 9th, 2018\n"}
  61. addUserKnob {26 ""}
  62. }
  63. Input {
  64. inputs 0
  65. name Input
  66. xpos -1113
  67. ypos -1060
  68. }
  69. Expression {
  70. expr3 a==0?0:a
  71. name Expression1
  72. label "Alpha Error Fix"
  73. xpos -1113
  74. ypos -1006
  75. }
  76. Dot {
  77. name Dot1
  78. label " "
  79. note_font "Arial Black"
  80. note_font_size 16
  81. xpos -1079
  82. ypos -918
  83. }
  84. set N98be530 [stack 0]
  85. Dot {
  86. name Dot21
  87. label " "
  88. note_font "Arial Black"
  89. note_font_size 16
  90. xpos -1079
  91. ypos 85
  92. }
  93. set N9a91590 [stack 0]
  94. Dot {
  95. name Dot25
  96. label " "
  97. note_font "Arial Black"
  98. note_font_size 16
  99. xpos -1304
  100. ypos 85
  101. }
  102. Dot {
  103. name Dot26
  104. label " "
  105. note_font "Arial Black"
  106. note_font_size 16
  107. xpos -1304
  108. ypos 582
  109. }
  110. set Nac89d20 [stack 0]
  111. Crop {
  112. box {0 0 {input.width} {input.height}}
  113. name Crop1
  114. xpos -1338
  115. ypos 1030
  116. }
  117. push $N98be530
  118. Keyer {
  119. operation "luminance key"
  120. name Keyer1
  121. xpos -732
  122. ypos -927
  123. }
  124. set N9688300 [stack 0]
  125. Dot {
  126. name Dot27
  127. label " "
  128. note_font "Arial Black"
  129. note_font_size 16
  130. xpos 554
  131. ypos -918
  132. }
  133. Dot {
  134. name Dot28
  135. label " "
  136. note_font "Arial Black"
  137. note_font_size 16
  138. xpos 554
  139. ypos 585
  140. }
  141. set N980f080 [stack 0]
  142. Shuffle {
  143. in alpha
  144. red alpha
  145. name Shuffle2
  146. tile_color 0xffffff01
  147. label "\[value alpha] > \[value out]"
  148. xpos 520
  149. ypos 883
  150. }
  151. push $N9688300
  152. Premult {
  153. name Premult1
  154. xpos -732
  155. ypos -891
  156. }
  157. push $N98be530
  158. Switch {
  159. inputs 2
  160. which {{useThresholdCheckbox}}
  161. name Switch3
  162. xpos -732
  163. ypos -810
  164. }
  165. Dot {
  166. name Dot2
  167. label " "
  168. note_font "Arial Black"
  169. note_font_size 16
  170. xpos -698
  171. ypos -754
  172. }
  173. set N970e6f0 [stack 0]
  174. Dot {
  175. name Dot11
  176. label " "
  177. note_font "Arial Black"
  178. note_font_size 16
  179. xpos -578
  180. ypos -754
  181. }
  182. set N999c9a0 [stack 0]
  183. Dot {
  184. name Dot10
  185. label " "
  186. note_font "Arial Black"
  187. note_font_size 16
  188. xpos -444
  189. ypos -754
  190. }
  191. set N971c080 [stack 0]
  192. Dot {
  193. name Dot9
  194. label " "
  195. note_font "Arial Black"
  196. note_font_size 16
  197. xpos -314
  198. ypos -754
  199. }
  200. set N98022d0 [stack 0]
  201. Dot {
  202. name Dot8
  203. label " "
  204. note_font "Arial Black"
  205. note_font_size 16
  206. xpos -185
  207. ypos -754
  208. }
  209. set N8a6f360 [stack 0]
  210. Dot {
  211. name Dot7
  212. label " "
  213. note_font "Arial Black"
  214. note_font_size 16
  215. xpos -75
  216. ypos -754
  217. }
  218. set N9754320 [stack 0]
  219. Dot {
  220. name Dot6
  221. label " "
  222. note_font "Arial Black"
  223. note_font_size 16
  224. xpos 47
  225. ypos -754
  226. }
  227. set Na3ffd900 [stack 0]
  228. Dot {
  229. name Dot5
  230. label " "
  231. note_font "Arial Black"
  232. note_font_size 16
  233. xpos 179
  234. ypos -754
  235. }
  236. set N5aef6300 [stack 0]
  237. Dot {
  238. name Dot4
  239. label " "
  240. note_font "Arial Black"
  241. note_font_size 16
  242. xpos 301
  243. ypos -754
  244. }
  245. set N5aefa550 [stack 0]
  246. Dot {
  247. name Dot3
  248. label " "
  249. note_font "Arial Black"
  250. note_font_size 16
  251. xpos 421
  252. ypos -754
  253. }
  254. Blur {
  255. size {{(glowType==0?(glowSize*25.6):(glowSize*5.5))*glowAspect} {glowType==0?(glowSize*25.6):(glowSize*5.5)}}
  256. name Blur10
  257. xpos 387
  258. ypos -714
  259. }
  260. Multiply {
  261. channels rgb
  262. value {{glowType==0?(glowBrightness/512):(glowBrightness/50)}}
  263. name Multiply10
  264. xpos 387
  265. ypos -678
  266. }
  267. Dot {
  268. name Dot13
  269. label " "
  270. note_font "Arial Black"
  271. note_font_size 16
  272. xpos 421
  273. ypos -92
  274. }
  275. push $N5aefa550
  276. Blur {
  277. size {{(glowType==0?(glowSize*12.8):(glowSize*3.4))*glowAspect} {glowType==0?(glowSize*12.8):(glowSize*3.4)}}
  278. name Blur9
  279. xpos 267
  280. ypos -712
  281. }
  282. Multiply {
  283. channels rgb
  284. value {{glowType==0?(glowBrightness/256):(glowBrightness/33)}}
  285. name Multiply9
  286. xpos 267
  287. ypos -676
  288. }
  289. Dot {
  290. name Dot14
  291. label " "
  292. note_font "Arial Black"
  293. note_font_size 16
  294. xpos 301
  295. ypos -156
  296. }
  297. push $N5aef6300
  298. Blur {
  299. size {{(glowType==0?(glowSize*6.4):(glowSize*2.1))*glowAspect} {glowType==0?(glowSize*6.4):(glowSize*2.1)}}
  300. name Blur8
  301. xpos 145
  302. ypos -716
  303. }
  304. Multiply {
  305. channels rgb
  306. value {{glowType==0?(glowBrightness/128):(glowBrightness/20)}}
  307. name Multiply8
  308. xpos 145
  309. ypos -680
  310. }
  311. Dot {
  312. name Dot15
  313. label " "
  314. note_font "Arial Black"
  315. note_font_size 16
  316. xpos 179
  317. ypos -221
  318. }
  319. push $Na3ffd900
  320. Blur {
  321. size {{(glowType==0?(glowSize*3.2):(glowSize*1.3))*glowAspect} {glowType==0?(glowSize*3.2):(glowSize*1.3)}}
  322. name Blur7
  323. xpos 13
  324. ypos -717
  325. }
  326. Multiply {
  327. channels rgb
  328. value {{glowType==0?(glowBrightness/64):(glowBrightness/12.5)}}
  329. name Multiply7
  330. xpos 13
  331. ypos -681
  332. }
  333. Dot {
  334. name Dot16
  335. label " "
  336. note_font "Arial Black"
  337. note_font_size 16
  338. xpos 47
  339. ypos -285
  340. }
  341. push $N9754320
  342. Blur {
  343. size {{(glowType==0?(glowSize*1.6):(glowSize/1.25))*glowAspect} {glowType==0?(glowSize*1.6):(glowSize/1.25)}}
  344. name Blur6
  345. xpos -109
  346. ypos -716
  347. }
  348. Multiply {
  349. channels rgb
  350. value {{glowType==0?(glowBrightness/32):(glowBrightness/7.68)}}
  351. name Multiply6
  352. xpos -109
  353. ypos -680
  354. }
  355. Dot {
  356. name Dot17
  357. label " "
  358. note_font "Arial Black"
  359. note_font_size 16
  360. xpos -75
  361. ypos -354
  362. }
  363. push $N8a6f360
  364. Blur {
  365. size {{(glowType==0?(glowSize/12.5):(glowSize/2))*glowAspect} {glowType==0?(glowSize/12.5):(glowSize/2)}}
  366. name Blur5
  367. xpos -219
  368. ypos -719
  369. }
  370. Multiply {
  371. channels rgb
  372. value {{glowType==0?(glowBrightness/16):(glowBrightness/4.75)}}
  373. name Multiply5
  374. xpos -219
  375. ypos -683
  376. }
  377. Dot {
  378. name Dot18
  379. label " "
  380. note_font "Arial Black"
  381. note_font_size 16
  382. xpos -185
  383. ypos -421
  384. }
  385. push $N98022d0
  386. Blur {
  387. size {{(glowType==0?(glowSize/2.5):(glowSize/3.3333))*glowAspect} {glowType==0?(glowSize/2.5):(glowSize/3.3333)}}
  388. name Blur4
  389. xpos -348
  390. ypos -721
  391. }
  392. Multiply {
  393. channels rgb
  394. value {{glowType==0?(glowBrightness/8):(glowBrightness/2.94)}}
  395. name Multiply4
  396. xpos -348
  397. ypos -685
  398. }
  399. Dot {
  400. name Dot19
  401. label " "
  402. note_font "Arial Black"
  403. note_font_size 16
  404. xpos -314
  405. ypos -479
  406. }
  407. push $N971c080
  408. Blur {
  409. size {{(glowSize/5)*glowAspect} {glowSize/5}}
  410. name Blur3
  411. selected true
  412. xpos -478
  413. ypos -723
  414. }
  415. Multiply {
  416. channels rgb
  417. value {{glowType==0?(glowBrightness/4):(glowBrightness/1.815)}}
  418. name Multiply3
  419. xpos -478
  420. ypos -687
  421. }
  422. Dot {
  423. name Dot20
  424. label " "
  425. note_font "Arial Black"
  426. note_font_size 16
  427. xpos -444
  428. ypos -535
  429. }
  430. push $N999c9a0
  431. Blur {
  432. size {{(glowSize/10)*glowAspect} {glowSize/10}}
  433. name Blur2
  434. xpos -612
  435. ypos -723
  436. }
  437. Multiply {
  438. channels rgb
  439. value {{glowType==0?(glowBrightness/2):(glowBrightness/1.124)}}
  440. name Multiply2
  441. xpos -612
  442. ypos -687
  443. }
  444. Dot {
  445. name Dot12
  446. label " "
  447. note_font "Arial Black"
  448. note_font_size 16
  449. xpos -578
  450. ypos -592
  451. }
  452. push $N970e6f0
  453. Blur {
  454. size {{glowSize/50}}
  455. name Blur1
  456. xpos -732
  457. ypos -722
  458. }
  459. Multiply {
  460. channels rgb
  461. value {{glowBrightness}}
  462. name Multiply1
  463. xpos -732
  464. ypos -686
  465. }
  466. Merge2 {
  467. inputs 2
  468. operation plus
  469. name Merge1
  470. xpos -732
  471. ypos -595
  472. }
  473. Merge2 {
  474. inputs 2
  475. operation plus
  476. name Merge2
  477. xpos -732
  478. ypos -538
  479. }
  480. Merge2 {
  481. inputs 2
  482. operation plus
  483. name Merge3
  484. xpos -732
  485. ypos -482
  486. }
  487. Merge2 {
  488. inputs 2
  489. operation plus
  490. name Merge4
  491. xpos -732
  492. ypos -424
  493. }
  494. Merge2 {
  495. inputs 2
  496. operation plus
  497. name Merge5
  498. xpos -732
  499. ypos -357
  500. }
  501. Merge2 {
  502. inputs 2
  503. operation plus
  504. name Merge6
  505. xpos -732
  506. ypos -288
  507. }
  508. Merge2 {
  509. inputs 2
  510. operation plus
  511. name Merge7
  512. xpos -732
  513. ypos -224
  514. }
  515. Merge2 {
  516. inputs 2
  517. operation plus
  518. name Merge8
  519. xpos -732
  520. ypos -159
  521. }
  522. Merge2 {
  523. inputs 2
  524. operation plus
  525. name Merge9
  526. xpos -732
  527. ypos -95
  528. }
  529. Multiply {
  530. channels alpha
  531. value 0.1
  532. name Multiply22
  533. xpos -732
  534. ypos -57
  535. }
  536. ColorCorrect {
  537. saturation {{glowSaturation} {glowSaturation} {glowSaturation} 1}
  538. gamma {{glowGamma} {glowGamma} {glowGamma} 1}
  539. name ColorCorrect1
  540. xpos -732
  541. ypos -21
  542. }
  543. Multiply {
  544. value {{glowType==0?(glowMix):(glowMix/2.5)}}
  545. name Multiply11
  546. xpos -732
  547. ypos 3
  548. }
  549. Dot {
  550. name Dot24
  551. label " "
  552. note_font "Arial Black"
  553. note_font_size 16
  554. xpos -698
  555. ypos 149
  556. }
  557. set Nd01a2670 [stack 0]
  558. Dot {
  559. name Dot22
  560. label " "
  561. note_font "Arial Black"
  562. note_font_size 16
  563. xpos -472
  564. ypos 227
  565. }
  566. Dot {
  567. name Dot23
  568. label " "
  569. note_font "Arial Black"
  570. note_font_size 16
  571. xpos -472
  572. ypos 420
  573. }
  574. set Nd01abc40 [stack 0]
  575. push $Nd01a2670
  576. push $N9a91590
  577. Merge2 {
  578. inputs 2
  579. operation plus
  580. name Merge13
  581. xpos -650
  582. ypos 258
  583. }
  584. push $Nd01a2670
  585. push $N9a91590
  586. Merge2 {
  587. inputs 2
  588. operation screen
  589. name Merge12
  590. xpos -752
  591. ypos 257
  592. }
  593. push $Nd01a2670
  594. push $N9a91590
  595. Merge2 {
  596. inputs 2
  597. name Merge11
  598. xpos -860
  599. ypos 259
  600. }
  601. push $Nd01a2670
  602. push $N9a91590
  603. Merge2 {
  604. inputs 2
  605. operation max
  606. name Merge10
  607. xpos -1113
  608. ypos 259
  609. }
  610. Switch {
  611. inputs 4
  612. which {{mergeType}}
  613. name Switch1
  614. xpos -819
  615. ypos 340
  616. }
  617. Switch {
  618. inputs 2
  619. which {{effectOnly}}
  620. name Switch2
  621. xpos -819
  622. ypos 416
  623. }
  624. set Nac4765e0 [stack 0]
  625. Dot {
  626. name Dot29
  627. label " "
  628. note_font "Arial Black"
  629. note_font_size 16
  630. xpos -918
  631. ypos 491
  632. }
  633. Dot {
  634. name Dot30
  635. label " "
  636. note_font "Arial Black"
  637. note_font_size 16
  638. xpos -918
  639. ypos 718
  640. }
  641. push $N980f080
  642. push $Nac4765e0
  643. Copy {
  644. inputs 2
  645. from0 rgba.alpha
  646. to0 rgba.alpha
  647. name Copy3
  648. xpos -564
  649. ypos 576
  650. }
  651. push $Nd01abc40
  652. push $Nac4765e0
  653. Copy {
  654. inputs 2
  655. from0 rgba.alpha
  656. to0 rgba.alpha
  657. name Copy2
  658. xpos -702
  659. ypos 574
  660. }
  661. push $Nac89d20
  662. push $Nac4765e0
  663. Copy {
  664. inputs 2
  665. from0 rgba.alpha
  666. to0 rgba.alpha
  667. name Copy1
  668. xpos -819
  669. ypos 573
  670. }
  671. Switch {
  672. inputs 4
  673. which {{alphaChoice}}
  674. name Switch4
  675. xpos -819
  676. ypos 715
  677. }
  678. Switch {
  679. inputs 2
  680. which {{viewRange x1 0}}
  681. name Switch5
  682. xpos -819
  683. ypos 889
  684. }
  685. CopyBBox {
  686. inputs 2
  687. name CopyBBox1
  688. xpos -817
  689. ypos 1030
  690. disable {{!cropBboxCheck}}
  691. }
  692. Output {
  693. name Output1
  694. xpos -817
  695. ypos 1191
  696. }
  697. end_group