Nessuna descrizione
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.

ArriLensDistortion.gizmo 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. # ArriLensDistortion by Constantin Rukavitsin
  2. # v1.1 2012-11-30
  3. # rukavitsin@gmail.com
  4. #! /mnt/bigbro/apps/Nuke7/Nuke7.0
  5. version 7.0 v1
  6. Gizmo {
  7. help "ARRI's 35 mm format lenses have become the standard against which others are measured. Precisely designed and engineered, yet highly durable, these lenses offer exceptional performance across a wide range of applications."
  8. tile_color 0xa479aaff
  9. addUserKnob {20 ARRI}
  10. addUserKnob {26 "" l "<b><u>Ultra Primes</u></b>"}
  11. addUserKnob {4 lensModel l "Focal Lenght" M {12mm 16mm 20mm 24mm 32mm 40mm 50mm 85mm 100mm 135mm 180mm ""}}
  12. addUserKnob {26 "" +STARTLINE}
  13. addUserKnob {6 undistort l Undistort +STARTLINE}
  14. addUserKnob {68 overscanSelect l Overscan M {None Automatic User-Defined ""}}
  15. overscanSelect Automatic
  16. addUserKnob {3 overscanX l X}
  17. addUserKnob {3 overscanY l Y}
  18. addUserKnob {26 ""}
  19. addUserKnob {26 copyright l "" +STARTLINE T "ArriLenses v1.1 by Constantin Rukavitsin"}
  20. addUserKnob {26 expectation l "" +STARTLINE T "Expects overscanned input."}
  21. }
  22. Input {
  23. inputs 0
  24. name Source
  25. xpos -403
  26. ypos -804
  27. }
  28. Crop {
  29. box {0 0 {width} {height}}
  30. name Crop1
  31. xpos -403
  32. ypos -717
  33. }
  34. Dot {
  35. name Dot12
  36. xpos -369
  37. ypos -631
  38. }
  39. set N509abcb0 [stack 0]
  40. Dot {
  41. name Dot14
  42. xpos -293
  43. ypos -631
  44. }
  45. set N509ac010 [stack 0]
  46. Dot {
  47. name Dot13
  48. xpos -195
  49. ypos -631
  50. }
  51. Reformat {
  52. type "to box"
  53. box_width {{width+(2*parent.overscanX)}}
  54. box_height {{height+(2*parent.overscanY)}}
  55. box_fixed true
  56. resize none
  57. pbb true
  58. name Reformat2
  59. label "Overscan2\nUser-Defined"
  60. xpos -229
  61. ypos -532
  62. disable {{!parent.overscan}}
  63. }
  64. push $N509ac010
  65. Reformat {
  66. type "to box"
  67. box_width {{width*1.0606}}
  68. box_height {{height*1.0606}}
  69. box_fixed true
  70. resize none
  71. pbb true
  72. name Reformat1
  73. label "Overscan1\nAutomatic"
  74. xpos -327
  75. ypos -532
  76. disable {{!parent.overscan}}
  77. }
  78. push $N509abcb0
  79. Switch {
  80. inputs 3
  81. which {{parent.overscanSelect}}
  82. name Switch2
  83. xpos -403
  84. ypos -399
  85. disable {{!parent.undistort}}
  86. }
  87. Dot {
  88. name Dot1
  89. xpos -369
  90. ypos -309
  91. }
  92. set N505e4f00 [stack 0]
  93. Dot {
  94. name Dot10
  95. xpos -283
  96. ypos -309
  97. }
  98. set N505e5fe0 [stack 0]
  99. Dot {
  100. name Dot9
  101. xpos -197
  102. ypos -309
  103. }
  104. set N505e5260 [stack 0]
  105. Dot {
  106. name Dot8
  107. xpos -111
  108. ypos -309
  109. }
  110. set N505e5920 [stack 0]
  111. Dot {
  112. name Dot7
  113. xpos -25
  114. ypos -309
  115. }
  116. set N505e6a00 [stack 0]
  117. Dot {
  118. name Dot6
  119. xpos 61
  120. ypos -309
  121. }
  122. set N505e5c80 [stack 0]
  123. Dot {
  124. name Dot5
  125. xpos 147
  126. ypos -309
  127. }
  128. set N505e66a0 [stack 0]
  129. Dot {
  130. name Dot4
  131. xpos 233
  132. ypos -309
  133. }
  134. set N50806a50 [stack 0]
  135. Dot {
  136. name Dot3
  137. xpos 319
  138. ypos -309
  139. }
  140. set N50809cf0 [stack 0]
  141. Dot {
  142. name Dot2
  143. xpos 405
  144. ypos -309
  145. }
  146. set N50806db0 [stack 0]
  147. Dot {
  148. name Dot11
  149. xpos 491
  150. ypos -309
  151. }
  152. LensDistortion {
  153. serializeKnob ""
  154. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  155. distortion1 -0.00251428
  156. distortion2 -0.00119706
  157. invertDistortion {{!parent.undistort}}
  158. cardScale {1.003725171 1.003725171 1}
  159. a -0.002819081768
  160. b -0.0008154451498
  161. c 6.188752195e-006
  162. alignmentCorrection {1.003050804 0.0001755959092 2.926668969e-007 -0.0001938510686 1.002609372 5.412244377e-007 -1.778698921 -0.8748891354 1}
  163. name Arri_UP_180
  164. xpos 457
  165. ypos -168
  166. }
  167. push $N50806db0
  168. LensDistortion {
  169. serializeKnob ""
  170. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  171. distortion1 -0.00702408
  172. distortion2 0.00059331
  173. invertDistortion {{!parent.undistort}}
  174. cardScale {1.006472349 1.006472349 1}
  175. a 0.0002294504375
  176. b -0.004969264846
  177. c -0.002121845726
  178. alignmentCorrection {1 0 0 0 1 0 0 0 1}
  179. name Arri_UP_135
  180. xpos 371
  181. ypos -168
  182. }
  183. push $N50809cf0
  184. LensDistortion {
  185. serializeKnob ""
  186. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  187. distortion1 -0.0048225
  188. distortion2 0.0005712484126
  189. invertDistortion {{!parent.undistort}}
  190. "Card Parameters" 1
  191. cardScale {1.004269242 1.004269242 1}
  192. a 0.0002932957432
  193. b -0.003240938997
  194. c -0.001712754834
  195. alignmentCorrection {-3466.026123 -0.7582190037 -0.003171856981 -0.242942512 2.143562779e-005 1.881177158e-011 1092816.375 239.0601501 1}
  196. name Arri_UP_100
  197. xpos 285
  198. ypos -168
  199. }
  200. push $N50806a50
  201. LensDistortion {
  202. serializeKnob ""
  203. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  204. distortion1 0.00281112
  205. distortion2 -0.0002835910127
  206. invertDistortion {{!parent.undistort}}
  207. cardScale {0.9974789023 0.9974789023 1}
  208. a -3.166417446e-005
  209. b 0.001695228741
  210. c 0.001100380556
  211. alignmentCorrection {1 0 0 0 1 0 0 0 1}
  212. name Arri_UP_85
  213. xpos 199
  214. ypos -168
  215. }
  216. push $N505e66a0
  217. LensDistortion {
  218. serializeKnob ""
  219. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  220. distortion1 0.01122802
  221. distortion2 0.00095375
  222. invertDistortion {{!parent.undistort}}
  223. cardScale {0.9879648685 0.9879648685 1}
  224. a 0.004541669041
  225. b 0.004737302195
  226. c 0.00242894236
  227. alignmentCorrection {0.9994665384 -0.000428260857 -8.16650811e-007 -8.757611067e-005 1.000195861 2.117951254e-007 0.0615593195 0.01775036566 1}
  228. name Arri_UP_50
  229. xpos 113
  230. ypos -168
  231. }
  232. push $N505e5c80
  233. LensDistortion {
  234. serializeKnob ""
  235. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  236. distortion1 0.00410296
  237. distortion2 0.0008633330581
  238. invertDistortion {{!parent.undistort}}
  239. cardScale {0.9950585365 0.9950585365 1}
  240. a 0.002829845296
  241. b 0.001378101646
  242. c 0.0003656337503
  243. alignmentCorrection {1 0 0 0 1 0 0 0 1}
  244. name Arri_UP_40
  245. xpos 27
  246. ypos -168
  247. }
  248. push $N505e6a00
  249. LensDistortion {
  250. serializeKnob ""
  251. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  252. distortion1 0.00876533
  253. distortion2 -0.0002950285852
  254. invertDistortion {{!parent.undistort}}
  255. cardScale {0.9916007519 0.9916007519 1}
  256. a 0.0009098150185
  257. b 0.005376677494
  258. c 0.002532978309
  259. alignmentCorrection {0.9992177486 0.0003987204982 -4.991379683e-007 -0.0004754100519 0.9982125163 -7.202143593e-007 0.08562261611 -0.5607672334 1}
  260. name Arri_UP_32
  261. xpos -59
  262. ypos -168
  263. }
  264. push $N505e5920
  265. LensDistortion {
  266. serializeKnob ""
  267. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  268. distortion1 0.02676017
  269. distortion2 -0.007557946257
  270. invertDistortion {{!parent.undistort}}
  271. cardScale {0.9811594486 0.9811594486 1}
  272. a -0.0121318493
  273. b 0.02249652147
  274. c 0.0126739163
  275. alignmentCorrection {1.002369404 0.0003539303725 2.333083131e-007 -0.0008470157627 0.9980030656 -8.66483731e-007 -0.6613090038 0.01397165749 1}
  276. name Arri_UP_24
  277. xpos -145
  278. ypos -167
  279. }
  280. push $N505e5260
  281. LensDistortion {
  282. serializeKnob ""
  283. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  284. distortion1 0.02987668
  285. distortion2 -0.00947697
  286. invertDistortion {{!parent.undistort}}
  287. cardScale {0.9800080061 0.9800080061 1}
  288. a -0.01205980778
  289. b 0.01811115257
  290. c 0.01837520115
  291. alignmentCorrection {1.001197457 0.0002682334743 -4.404707568e-007 0.0005500753759 1.00081265 3.036672922e-007 -1.52293992 -0.3853323758 1}
  292. name Arri_UP_20
  293. xpos -231
  294. ypos -167
  295. }
  296. push $N505e5fe0
  297. LensDistortion {
  298. serializeKnob ""
  299. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  300. distortion1 0.03605628
  301. distortion2 -0.0179321
  302. invertDistortion {{!parent.undistort}}
  303. cardScale {0.9821985364 0.9821985364 1}
  304. a -0.02899587899
  305. b 0.02838465385
  306. c 0.02681010216
  307. alignmentCorrection {1 0 0 0 1 0 0 0 1}
  308. name Arri_UP_16
  309. xpos -317
  310. ypos -167
  311. }
  312. push $N505e4f00
  313. LensDistortion {
  314. serializeKnob ""
  315. serialiseKnob "22 serialization::archive 9 0 0 0 0 0 0 0 0 0 0 0 0"
  316. distortion1 0.08263374
  317. distortion2 -0.03051648
  318. invertDistortion {{!parent.undistort}}
  319. "Card Parameters" 1
  320. cardScale {0.9504643083 0.9504643083 1}
  321. a -0.03984513134
  322. b 0.0390272215
  323. c 0.07468524575
  324. alignmentCorrection {1 0 0 0 1 0 0 0 1}
  325. name Arri_UP_12
  326. xpos -403
  327. ypos -167
  328. }
  329. Switch {
  330. inputs 11
  331. which {{parent.lensModel}}
  332. name Switch1
  333. xpos -403
  334. ypos -24
  335. }
  336. Crop {
  337. box {0 0 {width} {height}}
  338. reformat true
  339. crop false
  340. name Crop2
  341. xpos -403
  342. ypos 90
  343. }
  344. set N509ad0f0 [stack 0]
  345. Output {
  346. name Output1
  347. xpos -403
  348. ypos 235
  349. }
  350. push $N509ad0f0
  351. Viewer {
  352. fps 25
  353. input_process false
  354. name Viewer1
  355. xpos -225
  356. ypos 173
  357. }
  358. end_group