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.

Wipe.gizmo 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. #! /Applications/Nuke7.0v2/NukeX7.0v2.app/../Nuke7.0v2.app/Contents/MacOS/Nuke7.0v2 -nx
  2. version 7.0 v2
  3. Gizmo {
  4. inputs 0
  5. knobChanged "\nn = nuke.thisNode()\nk = nuke.thisKnob()\nif k.name() == 'output':\n subKnobs = \{\n 'Linear':\['angle'],\n 'Concentric':\['aspect'],\n 'Clock':\['fields', 'start'],\n 'Angle':\['fields2'],\n 'Spiral':\['slices', 'rotation'],\n 'Blinds':\['align', 'fields3'],\n 'Curtains':\[],\n 'Streaks': \['align2', 'fields_streaks'],\n 'Bulls Eye': \['fields_bull'],\n 'Random': \['fields_rnd', 'seed']\n \}\n\n for skList in subKnobs.itervalues():\n for sk in skList:\n n\[sk].setVisible( sk in subKnobs\[k.value()] )\n \n\n"
  6. postage_stamp true
  7. addUserKnob {20 User}
  8. addUserKnob {41 format T Constant1.format}
  9. addUserKnob {26 ""}
  10. addUserKnob {7 wipe R 0 2}
  11. wipe 0.5
  12. addUserKnob {6 flip -STARTLINE}
  13. addUserKnob {6 flop -STARTLINE}
  14. addUserKnob {7 feather}
  15. addUserKnob {7 falloff R 0 2}
  16. falloff 1
  17. addUserKnob {26 ""}
  18. addUserKnob {4 output -STARTLINE M {Linear Concentric Clock Angle Spiral Curtains Blinds Streaks "Bulls Eye" Random ""}}
  19. addUserKnob {7 angle R 0 360}
  20. angle 45
  21. addUserKnob {7 aspect +HIDDEN R 0.5 2}
  22. aspect 1
  23. addUserKnob {3 fields +HIDDEN}
  24. fields 2
  25. addUserKnob {7 start +HIDDEN}
  26. addUserKnob {3 fields2 l fields +HIDDEN}
  27. fields2 4
  28. addUserKnob {7 slices l pitch +HIDDEN R 0 10}
  29. slices 5
  30. addUserKnob {7 rotation +HIDDEN}
  31. addUserKnob {4 align l "" -STARTLINE +HIDDEN M {vertical horizontal}}
  32. align horizontal
  33. addUserKnob {3 fields3 l fileds +HIDDEN}
  34. fields3 4
  35. addUserKnob {4 align2 l align +HIDDEN M {vertical horizontal}}
  36. align2 horizontal
  37. addUserKnob {3 fields_streaks l fields +HIDDEN}
  38. fields_streaks 7
  39. addUserKnob {3 fields_bull l fields +HIDDEN}
  40. fields_bull 7
  41. addUserKnob {3 fields_rnd l fields +HIDDEN}
  42. fields_rnd 10
  43. addUserKnob {3 seed +HIDDEN}
  44. seed 999999
  45. }
  46. Constant {
  47. inputs 0
  48. channels rgb
  49. name Constant1
  50. xpos 93
  51. ypos -505
  52. }
  53. set N1935bb80 [stack 0]
  54. Expression {
  55. temp_name0 xStripes
  56. temp_expr0 " random(floor(x/width*parent.fields_rnd)/(parent.fields_rnd-1)*77,parent.seed)"
  57. temp_name1 yStripes
  58. temp_expr1 " random(floor(y/width*parent.fields_rnd)/(parent.fields_rnd-1)*77,parent.seed)"
  59. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  60. expr0 (xStripes*yStripes)
  61. expr1 (xStripes*yStripes)
  62. expr2 (xStripes*yStripes)
  63. expr3 (xStripes*yStripes)
  64. name Random
  65. xpos 859
  66. ypos -309
  67. }
  68. set N193618d0 [stack 0]
  69. push $N193618d0
  70. push $N193618d0
  71. Dilate {
  72. size {{width}}
  73. name Dilate1
  74. xpos 992
  75. ypos -316
  76. }
  77. CopyBBox {
  78. inputs 2
  79. name CopyBBox1
  80. xpos 992
  81. ypos -238
  82. }
  83. Merge2 {
  84. inputs 2
  85. operation divide
  86. name Merge1
  87. xpos 859
  88. ypos -238
  89. }
  90. Grade {
  91. channels rgba
  92. blackpoint {{parent.wipe}}
  93. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  94. gamma {{parent.falloff}}
  95. white_clamp true
  96. name Grade10
  97. xpos 859
  98. ypos -200
  99. }
  100. push $N1935bb80
  101. Expression {
  102. temp_name1 D
  103. temp_expr1 sqrt(pow(2*(x-width/2)/width,2)+pow(2*(y-height/2)/width,2))
  104. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  105. expr0 "D%(1/(parent.fields_bull-1)) * (parent.fields_bull-1)"
  106. expr1 "D%(1/(parent.fields_bull-1)) * (parent.fields_bull-1)"
  107. expr2 "D%(1/(parent.fields_bull-1)) * (parent.fields_bull-1)"
  108. expr3 "D%(1/(parent.fields_bull-1)) * (parent.fields_bull-1)"
  109. name BullsEye
  110. xpos 732
  111. ypos -272
  112. }
  113. Grade {
  114. channels rgba
  115. blackpoint {{parent.wipe}}
  116. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  117. gamma {{parent.falloff}}
  118. white_clamp true
  119. name Grade9
  120. xpos 732
  121. ypos -234
  122. }
  123. push $N1935bb80
  124. Expression {
  125. temp_name0 fieldH
  126. temp_expr0 rint((cos(pi/2+x*pi*parent.fields_streaks/width)+1)/2)
  127. temp_name1 fieldW
  128. temp_expr1 rint((cos(pi/2+y*pi*parent.fields_streaks/height)+1)/2)
  129. temp_name2 field
  130. temp_expr2 parent.align2?fieldW:fieldH
  131. temp_name3 grad
  132. temp_expr3 parent.align2?x/width:y/height
  133. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  134. expr0 abs(grad-field)
  135. expr1 abs(grad-field)
  136. expr2 abs(grad-field)
  137. expr3 abs(grad-field)
  138. name Streaks
  139. xpos 599
  140. ypos -277
  141. }
  142. Grade {
  143. channels rgba
  144. blackpoint {{parent.wipe}}
  145. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  146. gamma {{parent.falloff}}
  147. white_clamp true
  148. name Grade8
  149. xpos 599
  150. ypos -239
  151. }
  152. push $N1935bb80
  153. Expression {
  154. temp_name0 fieldW
  155. temp_expr0 width/parent.fields3
  156. temp_name1 fieldH
  157. temp_expr1 height/parent.fields3
  158. temp_name2 fieldsX
  159. temp_expr2 (x%fieldW)/(fieldW-1)
  160. temp_name3 fieldsY
  161. temp_expr3 (y%fieldH)/(fieldH-1)
  162. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  163. expr0 parent.align?fieldsY:fieldsX
  164. expr1 parent.align?fieldsY:fieldsX
  165. expr2 parent.align?fieldsY:fieldsX
  166. expr3 parent.align?fieldsY:fieldsX
  167. name Blinds
  168. xpos 405
  169. ypos -284
  170. }
  171. Grade {
  172. channels rgba
  173. blackpoint {{parent.wipe}}
  174. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  175. gamma {{parent.falloff}}
  176. white_clamp true
  177. name Grade7
  178. xpos 405
  179. ypos -246
  180. }
  181. push $N1935bb80
  182. Expression {
  183. temp_name1 Dx
  184. temp_expr1 "(x-width/2) / (height/2) "
  185. temp_name2 Dy
  186. temp_expr2 "(y-height/2) / (height/2) * aspect"
  187. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  188. expr0 parent.wipe==1?1:(abs(Dx)*abs(Dy))
  189. expr1 parent.wipe==1?1:(abs(Dx)*abs(Dy))
  190. expr2 parent.wipe==1?1:(abs(Dx)*abs(Dy))
  191. expr3 parent.wipe==1?1:(abs(Dx)*abs(Dy))
  192. name Curtains
  193. label "\n"
  194. xpos 256
  195. ypos -288
  196. }
  197. Grade {
  198. channels rgba
  199. blackpoint {{parent.wipe*1.8}}
  200. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  201. gamma {{parent.falloff}}
  202. white_clamp true
  203. name Grade6
  204. xpos 256
  205. ypos -250
  206. }
  207. push $N1935bb80
  208. Expression {
  209. temp_name0 dist
  210. temp_expr0 sqrt(pow(x-width/2,2)+pow(y-height/2,2))
  211. temp_name2 pos
  212. temp_expr2 "(((((degrees(atan2((x-width/2),(y-height/2)))+180)/360) + ( dist / width * parent.slices ) )%1) + parent.rotation+1) % 1"
  213. temp_name3 neg
  214. temp_expr3 "((1-(((degrees(-atan2((x-width/2),(y-height/2)))+180)/360) + ( dist / width * -parent.slices ) )%1) + parent.rotation + 1) %1"
  215. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  216. expr0 parent.slices<0?neg:pos
  217. expr1 parent.slices<0?neg:pos
  218. expr2 parent.slices<0?neg:pos
  219. expr3 parent.slices<0?neg:pos
  220. name Spiral
  221. xpos 136
  222. ypos -281
  223. }
  224. Grade {
  225. channels rgba
  226. blackpoint {{parent.wipe}}
  227. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  228. gamma {{parent.falloff}}
  229. white_clamp true
  230. name Grade5
  231. xpos 136
  232. ypos -243
  233. }
  234. push $N1935bb80
  235. Expression {
  236. temp_name0 angle
  237. temp_expr0 (abs((atan2(x-width/2,y-height/2))))
  238. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  239. expr0 parent.fields2==1?angle/pi:abs(sin(angle*(parent.fields2-1)))
  240. expr1 parent.fields2==1?angle/pi:abs(sin(angle*(parent.fields2-1)))
  241. expr2 parent.fields2==1?angle/pi:abs(sin(angle*(parent.fields2-1)))
  242. expr3 parent.fields2==1?angle/pi:abs(sin(angle*(parent.fields2-1)))
  243. name Angle
  244. xpos -5
  245. ypos -291
  246. }
  247. Grade {
  248. channels rgba
  249. blackpoint {{parent.wipe}}
  250. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  251. gamma {{parent.falloff}}
  252. white_clamp true
  253. name Grade4
  254. xpos -5
  255. ypos -242
  256. }
  257. push $N1935bb80
  258. Expression {
  259. temp_name0 fields
  260. temp_expr0 360/parent.fields
  261. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  262. expr0 "(((degrees(atan2(x-width/2,y-height/2))+180)%fields + parent.start*fields)%fields)"
  263. expr1 "(((degrees(atan2(x-width/2,y-height/2))+180)%fields + parent.start*fields)%fields)"
  264. expr2 "(((degrees(atan2(x-width/2,y-height/2))+180)%fields + parent.start*fields)%fields)"
  265. expr3 "(((degrees(atan2(x-width/2,y-height/2))+180)%fields + parent.start*fields)%fields)"
  266. name Clock
  267. xpos -153
  268. ypos -292
  269. }
  270. set N1f20dc00 [stack 0]
  271. Clamp {
  272. minimum {{parent.wipe*360/parent.fields}}
  273. maximum {{this.minimum.r-.00001-parent.feather*70}}
  274. MinClampTo 1
  275. MinClampTo_enable true
  276. MaxClampTo 0
  277. MaxClampTo_enable true
  278. name Clamp1
  279. xpos -153
  280. ypos -225
  281. }
  282. push $N1935bb80
  283. Expression {
  284. temp_name1 Dx
  285. temp_expr1 "(x-width/2) / (height/2)"
  286. temp_name2 Dy
  287. temp_expr2 "(y-height/2) / (height/2) * aspect"
  288. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  289. expr0 1-sqrt(pow2(Dx)+pow2(Dy))
  290. expr1 1-sqrt(pow2(Dx)+pow2(Dy))
  291. expr2 1-sqrt(pow2(Dx)+pow2(Dy))
  292. expr3 1-sqrt(pow2(Dx)+pow2(Dy))
  293. name Concentric
  294. label "\n"
  295. xpos -295
  296. ypos -294
  297. }
  298. Grade {
  299. channels rgba
  300. blackpoint {{1-parent.wipe*2.2*aspect}}
  301. whitepoint {{this.blackpoint.r+parent.feather}}
  302. gamma {{parent.falloff}}
  303. white_clamp true
  304. name Grade2
  305. xpos -295
  306. ypos -235
  307. }
  308. push $N1935bb80
  309. Expression {
  310. channel0 {rgba.red -rgba.green -rgba.blue -rgba.alpha}
  311. expr0 "(((x-(width/2))/width) * cos(radians(parent.angle)) + ((y-height/2)/width) * -sin(radians(parent.angle))) / ((abs(cos(radians(parent.angle)) * width) + abs(sin(radians(parent.angle)) * height))/width)"
  312. expr1 "(((x-(width/2))/width) * cos(radians(parent.angle)) + ((y-height/2)/width) * -sin(radians(parent.angle))) / ((abs(cos(radians(parent.angle)) * width) + abs(sin(radians(parent.angle)) * height))/width)"
  313. expr2 "(((x-(width/2))/width) * cos(radians(parent.angle)) + ((y-height/2)/width) * -sin(radians(parent.angle))) / ((abs(cos(radians(parent.angle)) * width) + abs(sin(radians(parent.angle)) * height))/width)"
  314. expr3 "(((x-(width/2))/width) * cos(radians(parent.angle)) + ((y-height/2)/width) * -sin(radians(parent.angle))) / ((abs(cos(radians(parent.angle)) * width) + abs(sin(radians(parent.angle)) * height))/width)"
  315. name Linear
  316. xpos -461
  317. ypos -297
  318. }
  319. Grade {
  320. channels rgba
  321. blackpoint {{parent.wipe-.5}}
  322. whitepoint {{this.blackpoint.r-.00001-parent.feather}}
  323. gamma {{parent.falloff}}
  324. white_clamp true
  325. name Grade1
  326. xpos -461
  327. ypos -242
  328. }
  329. Switch {
  330. inputs 10
  331. which {{parent.output}}
  332. name Switch1
  333. xpos 91
  334. ypos -3
  335. }
  336. Mirror {
  337. Horizontal {{parent.flop}}
  338. Vertical {{parent.flip}}
  339. name Mirror1
  340. xpos 91
  341. ypos 54
  342. }
  343. Output {
  344. name Output1
  345. xpos 91
  346. ypos 92
  347. }
  348. push $N1f20dc00
  349. Grade {
  350. channels rgba
  351. blackpoint {{parent.wipe*360/parent.fields}}
  352. whitepoint {{this.blackpoint.r-.00001-parent.feather*70}}
  353. gamma {{parent.falloff}}
  354. white_clamp true
  355. name Grade3
  356. label flickers
  357. xpos -94
  358. ypos -262
  359. }
  360. end_group