Ei kuvausta
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.

DespillMadness.gizmo 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. #! C:/Program Files/Nuke6.1v1/Nuke6.1.exe -nx
  2. version 6.1 v1
  3. Gizmo {
  4. addUserKnob {20 DespillMadness l "Despill Settings"}
  5. addUserKnob {26 text l "" +STARTLINE T "DespillMadness by Andreas Frickinger"}
  6. addUserKnob {26 ""}
  7. addUserKnob {41 screenType l "screen type" T GizmoControl.screenType}
  8. addUserKnob {41 algorithm l "despill algorithm" T GizmoControl.algorithm}
  9. addUserKnob {41 LimitPercentage l "fine tune" T RedLimitsGreen.LimitPercentage}
  10. addUserKnob {26 ""}
  11. addUserKnob {26 text_2 l "" +STARTLINE T "spill area correction"}
  12. addUserKnob {41 saturation T CC_SpillMap.saturation}
  13. addUserKnob {41 gamma T CC_SpillMap.gamma}
  14. addUserKnob {41 offset T CC_SpillMap.offset}
  15. addUserKnob {26 ""}
  16. addUserKnob {41 spillMatteOut l "output spill matte in alpha" T GizmoControl.spillMatteOut}
  17. }
  18. NoOp {
  19. inputs 0
  20. name GizmoControl
  21. xpos 875
  22. ypos 414
  23. addUserKnob {20 User}
  24. addUserKnob {26 version l v1.0}
  25. addUserKnob {4 screenType l "screen type" M {green blue}}
  26. addUserKnob {4 algorithm l "despill algorithm" M {average "red limit" "green/blue limit" ""}}
  27. addUserKnob {6 spillMatteOut l "output spill matte in alpha" +STARTLINE}
  28. }
  29. Input {
  30. inputs 0
  31. name Input1
  32. xpos 262
  33. ypos -336
  34. }
  35. Dot {
  36. name Dot6
  37. selected true
  38. xpos 296
  39. ypos -186
  40. }
  41. set N7b15fe0 [stack 0]
  42. Dot {
  43. name Dot2
  44. xpos 296
  45. ypos -71
  46. }
  47. set N7b15d70 [stack 0]
  48. Dot {
  49. name Dot3
  50. xpos 426
  51. ypos -71
  52. }
  53. set N7b153b0 [stack 0]
  54. Expression {
  55. expr2 b>g*LimitPercentage?g*LimitPercentage:b
  56. expr3 b-g*LimitPercentage
  57. name GreenLimitsBlue1
  58. xpos 528
  59. ypos 44
  60. addUserKnob {20 User}
  61. addUserKnob {7 LimitPercentage l "fine tune" R 0.5 1.5}
  62. LimitPercentage {{RedLimitsGreen.LimitPercentage i}}
  63. }
  64. push $N7b153b0
  65. Expression {
  66. expr2 b>r*LimitPercentage?r*LimitPercentage:b
  67. expr3 b-r*LimitPercentage
  68. name RedLimitsBlue
  69. xpos 392
  70. ypos 44
  71. addUserKnob {20 User}
  72. addUserKnob {7 LimitPercentage l "fine tune" R 0.5 1.5}
  73. LimitPercentage {{RedLimitsGreen.LimitPercentage i}}
  74. }
  75. push $N7b153b0
  76. Expression {
  77. expr2 b>(g+r)/2*LimitPercentage?(g+r)/2*LimitPercentage:b
  78. expr3 b-(r+g)*LimitPercentage/2
  79. name RedAndGreenLimitBlue
  80. xpos 662
  81. ypos 44
  82. addUserKnob {20 User}
  83. addUserKnob {7 LimitPercentage l "fine tune" R 0.5 1.5}
  84. LimitPercentage {{RedLimitsGreen.LimitPercentage i}}
  85. }
  86. Switch {
  87. inputs 3
  88. which {{GizmoControl.algorithm i}}
  89. name SwitchBlue
  90. xpos 528
  91. ypos 190
  92. }
  93. Dot {
  94. name Dot5
  95. xpos 562
  96. ypos 370
  97. }
  98. push $N7b15d70
  99. Dot {
  100. name Dot1
  101. xpos 164
  102. ypos -71
  103. }
  104. set N7b8dfd0 [stack 0]
  105. Expression {
  106. expr1 g>b*LimitPercentage?b*LimitPercentage:g
  107. expr3 g-b*LimitPercentage
  108. name BlueLimitsGreen
  109. xpos -15
  110. ypos 44
  111. addUserKnob {20 User}
  112. addUserKnob {7 LimitPercentage l "fine tune" R 0.5 1.5}
  113. LimitPercentage {{RedLimitsGreen.LimitPercentage i}}
  114. }
  115. push $N7b8dfd0
  116. Expression {
  117. expr1 g>r*LimitPercentage?r*LimitPercentage:g
  118. expr3 g-r*LimitPercentage
  119. name RedLimitsGreen
  120. xpos -160
  121. ypos 44
  122. addUserKnob {20 User}
  123. addUserKnob {7 LimitPercentage l "fine tune" R 0.5 1.5}
  124. LimitPercentage 0.94
  125. }
  126. push $N7b8dfd0
  127. Expression {
  128. expr1 g>(b+r)/2*LimitPercentage?(b+r)/2*LimitPercentage:g
  129. expr3 g-(r+b)*LimitPercentage/2
  130. name RedAveBlueLimitsGreen
  131. xpos 130
  132. ypos 44
  133. addUserKnob {20 User}
  134. addUserKnob {7 LimitPercentage l "fine tune" R 0.5 1.5}
  135. LimitPercentage {{RedLimitsGreen.LimitPercentage i}}
  136. }
  137. Switch {
  138. inputs 3
  139. which {{GizmoControl.algorithm i}}
  140. name SwitchGreen
  141. xpos -15
  142. ypos 199
  143. }
  144. Dot {
  145. name Dot4
  146. xpos 19
  147. ypos 370
  148. }
  149. Switch {
  150. inputs 2
  151. which {{GizmoControl.screenType i}}
  152. name SwitchMain
  153. xpos 257
  154. ypos 366
  155. }
  156. Clamp {
  157. channels alpha
  158. name Clamp1
  159. xpos 257
  160. ypos 408
  161. }
  162. ColorCorrect {
  163. maskChannelInput rgba.alpha
  164. name CC_SpillMap
  165. note_font Verdana
  166. xpos 257
  167. ypos 468
  168. }
  169. set N7b8ee70 [stack 0]
  170. Dot {
  171. name Dot9
  172. xpos 440
  173. ypos 478
  174. }
  175. Dot {
  176. name Dot10
  177. xpos 440
  178. ypos 649
  179. }
  180. push $N7b15fe0
  181. Dot {
  182. name Dot7
  183. xpos -345
  184. ypos -186
  185. }
  186. Dot {
  187. name Dot8
  188. xpos -345
  189. ypos 551
  190. }
  191. Expression {
  192. channel0 {-rgba.red -rgba.green -rgba.blue}
  193. expr0 0
  194. channel1 {-rgba.red -rgba.green -rgba.blue}
  195. expr1 0
  196. channel2 {-rgba.red -rgba.green -rgba.blue}
  197. expr2 0
  198. channel3 {rgba.alpha none none rgba.alpha}
  199. expr3 a==0?0:a
  200. name AlphaError
  201. label "To avid Gizmo being in state of\nerror without something plugged in input."
  202. xpos -27
  203. ypos 534
  204. }
  205. push $N7b8ee70
  206. Copy {
  207. inputs 2
  208. from0 rgba.alpha
  209. to0 rgba.alpha
  210. from3 rgba.alpha
  211. to3 rgba.alpha
  212. name CopyAlpha
  213. xpos 257
  214. ypos 534
  215. }
  216. Switch {
  217. inputs 2
  218. which {{GizmoControl.spillMatteOut i}}
  219. name SwitchSpillMap
  220. xpos 257
  221. ypos 645
  222. }
  223. Output {
  224. name Output1
  225. xpos 257
  226. ypos 745
  227. }
  228. end_group