설명 없음
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.

L_AlphaClean_v03.gizmo 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. Gizmo {
  2. help "L_AlphaClean_v03 AlphaClean removes stray pixels from the alpha channel of your matte. Removes black pixels in the white area of the matte and white pixels in the black area. ”Size” - controls the size of pixels that are removed. ”Original Edge Amount” - controls how untouched the matte edge is. ”Original Edge Width” - defines the width of the original edge of the matte. (For any questions, comments or suggestions please email gizmos@luma-pictures.com)"
  3. addUserKnob {20 AlphaClean}
  4. addUserKnob {7 size R 0 10}
  5. size 5
  6. addUserKnob {7 OrigEdgeAmount}
  7. OrigEdgeAmount 1
  8. addUserKnob {7 OrigEdgeWidth R 0 10}
  9. OrigEdgeWidth 5
  10. addUserKnob {26 ""}
  11. addUserKnob {22 Button l " Luma Pictures " T "import os\nimport sys\n\ntry:\n import subprocess\n def _run(cmd, shell, wait):\n opener = subprocess.Popen(cmd, shell=shell)\n if wait:\n opener.wait()\n return opener.pid\nexcept ImportError:\n import popen2\n def _run(cmd, shell, wait):\n opener = popen2.Popen3(cmd)\n if wait:\n opener.wait()\n return opener.pid\n\ndef _open(url, wait=0):\n if sys.platform == \"darwin\":\n cmd = \[\"open\", url]\n elif hasattr(os, \"startfile\"):\n return os.startfile(url)\n elif os.environ.has_key(\"KDE_FULL_SESSION\") or os.environ.has_key(\"KDE_MULTIHEAD\") or \\\n os.environ.has_key(\"GNOME_DESKTOP_SESSION_ID\") or os.environ.has_key(\"GNOME_KEYRING_SOCKET\"):\n cmd = \[\"xdg-open\", url]\n else:\n raise OSError, \"Desktop not supported.\"\n\n return _run(cmd, 0, wait)\n\n_open('http://www.luma-pictures.com/tools/nuke/')" +STARTLINE}
  12. }
  13. Input {
  14. inputs 0
  15. name Input1
  16. xpos 380
  17. ypos -717
  18. }
  19. set N251b0b70 [stack 0]
  20. Blur {
  21. size {{parent.size i}}
  22. name Blur1
  23. label "\[value size]"
  24. xpos 515
  25. ypos -136
  26. }
  27. push $N251b0b70
  28. Invert {
  29. name Invert1
  30. xpos 218
  31. ypos -452
  32. disable {{"parent.size>=0 ? 1 : 0" i}}
  33. }
  34. set N251b60b0 [stack 0]
  35. Blur {
  36. size {{parent.size i} {parent.size i}}
  37. name Blur7
  38. label "\[value size]"
  39. xpos 28
  40. ypos -332
  41. }
  42. push $N251b60b0
  43. Blur {
  44. size {{parent.size*2 i} {parent.size*2 i}}
  45. name Blur8
  46. label "\[value size]"
  47. xpos 119
  48. ypos -329
  49. }
  50. Merge2 {
  51. inputs 2
  52. name Merge2
  53. xpos 74
  54. ypos -248
  55. }
  56. push $N251b60b0
  57. Blur {
  58. size {{parent.size*4 i} {parent.size*4 i}}
  59. name Blur9
  60. label "\[value size]"
  61. xpos 218
  62. ypos -330
  63. }
  64. Merge2 {
  65. inputs 2
  66. name Merge3
  67. xpos 129
  68. ypos -203
  69. }
  70. push $N251b60b0
  71. Blur {
  72. size {{parent.size*8 i} {parent.size*8 i}}
  73. name Blur10
  74. label "\[value size]"
  75. xpos 318
  76. ypos -328
  77. }
  78. Merge2 {
  79. inputs 2
  80. name Merge4
  81. xpos 192
  82. ypos -154
  83. }
  84. Invert {
  85. name Invert2
  86. xpos 192
  87. ypos -117
  88. disable {{"parent.size>=0 ? 1 : 0"}}
  89. }
  90. NoOp {
  91. name NoOp4
  92. tile_color 0xffd600ff
  93. label "positiv Expoblur"
  94. xpos 192
  95. ypos -55
  96. }
  97. push $N251b0b70
  98. Invert {
  99. name Invert4
  100. xpos -190
  101. ypos -545
  102. disable {{"parent.size<=0 ? 1 : 0" i}}
  103. }
  104. set N251db810 [stack 0]
  105. Blur {
  106. size {{-parent.size i} {-parent.size i}}
  107. name Blur3
  108. label "\[value size]"
  109. xpos -369
  110. ypos -435
  111. }
  112. push $N251db810
  113. Blur {
  114. size {{-parent.size*2 i} {-parent.size*2 i}}
  115. name Blur4
  116. label "\[value size]"
  117. xpos -265
  118. ypos -440
  119. }
  120. Merge2 {
  121. inputs 2
  122. name Merge7
  123. xpos -306
  124. ypos -361
  125. }
  126. push $N251db810
  127. Blur {
  128. size {{-parent.size*4 i} {-parent.size*4 i}}
  129. name Blur5
  130. label "\[value size]"
  131. xpos -173
  132. ypos -439
  133. }
  134. Merge2 {
  135. inputs 2
  136. name Merge8
  137. xpos -243
  138. ypos -323
  139. }
  140. push $N251db810
  141. Blur {
  142. size {{-parent.size*8 i} {-parent.size*8 i}}
  143. name Blur6
  144. label "\[value size]"
  145. xpos -85
  146. ypos -438
  147. }
  148. Merge2 {
  149. inputs 2
  150. name Merge9
  151. xpos -189
  152. ypos -279
  153. }
  154. Invert {
  155. name Invert5
  156. xpos -189
  157. ypos -234
  158. disable {{"parent.size<=0 ? 1 : 0" i}}
  159. }
  160. NoOp {
  161. name NoOp2
  162. tile_color 0xffd600ff
  163. label "negativ Expoblur"
  164. xpos -189
  165. ypos -169
  166. }
  167. Keymix {
  168. inputs 3
  169. name Keymix1
  170. xpos 192
  171. ypos 48
  172. }
  173. set N25704e20 [stack 0]
  174. Blur {
  175. size {{parent.OrigEdgeWidth i}}
  176. name Blur2
  177. label "\[value size]"
  178. xpos 491
  179. ypos 114
  180. }
  181. set N257076e0 [stack 0]
  182. push $N257076e0
  183. Merge2 {
  184. inputs 2
  185. operation xor
  186. name Merge1
  187. xpos 491
  188. ypos 164
  189. }
  190. Grade {
  191. channels all
  192. whitepoint 0.3
  193. name Grade1
  194. xpos 491
  195. ypos 200
  196. }
  197. push $N251b0b70
  198. push $N25704e20
  199. Keymix {
  200. inputs 3
  201. mix {{parent.OrigEdgeAmount i}}
  202. name Keymix2
  203. xpos 380
  204. ypos 284
  205. }
  206. push $N251b0b70
  207. ShuffleCopy {
  208. inputs 2
  209. name ShuffleCopy1
  210. xpos 442
  211. ypos 353
  212. }
  213. push $N251b0b70
  214. Dot {
  215. name Dot2
  216. xpos 695
  217. ypos -714
  218. }
  219. Dot {
  220. name Dot1
  221. xpos 695
  222. ypos 403
  223. }
  224. ShuffleCopy {
  225. inputs 2
  226. red red
  227. green green
  228. blue blue
  229. name ChannelsPassThrough
  230. xpos 442
  231. ypos 400
  232. }
  233. Output {
  234. name Output1
  235. xpos 442
  236. ypos 473
  237. }
  238. end_group