No Description
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.

DayForNight.gimmick 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. set cut_paste_input [stack 0]
  2. version 7.0 v10
  3. push $cut_paste_input
  4. Group {
  5. name DayForNight
  6. selected true
  7. xpos 162
  8. ypos -210
  9. addUserKnob {20 User}
  10. addUserKnob {7 stops l daylight}
  11. stops 1
  12. addUserKnob {7 red l "red exponent"}
  13. red 3
  14. addUserKnob {7 green l "green exponent"}
  15. green 2
  16. addUserKnob {7 blue l "blue exponent"}
  17. blue 1
  18. addUserKnob {7 desaturate}
  19. desaturate 0.25
  20. addUserKnob {6 preserveHighlights l "preserve highlights" +STARTLINE}
  21. preserveHighlights true
  22. addUserKnob {7 lights l highlights R 1 32}
  23. lights 1
  24. addUserKnob {7 exposure R -16 16}
  25. }
  26. Input {
  27. inputs 0
  28. name Input1
  29. xpos 290
  30. ypos -464
  31. }
  32. set N192a4530 [stack 0]
  33. Multiply {
  34. value {{"1/(pow(lights, 2))" i}}
  35. name Multiply5
  36. xpos 61
  37. ypos -357
  38. }
  39. push $N192a4530
  40. Multiply {
  41. value {{1/lights i}}
  42. name Multiply4
  43. xpos 186
  44. ypos -358
  45. }
  46. set N192a4c10 [stack 0]
  47. Keyer {
  48. operation "luminance key"
  49. name Keyer1
  50. xpos 108
  51. ypos -275
  52. }
  53. push 0
  54. Switch {
  55. inputs 2
  56. which {{parent.preserveHighlights i}}
  57. name Switch1
  58. xpos 108
  59. ypos -187
  60. }
  61. push $N192a4530
  62. Multiply {
  63. value {{stops i}}
  64. name Multiply1
  65. xpos 290
  66. ypos -360
  67. }
  68. set N192a52f0 [stack 0]
  69. Expression {
  70. temp_name0 value
  71. temp_expr0 stops
  72. expr0 r*pow(value,(parent.red+parent.green+parent.blue)/3)
  73. expr1 g*pow(value,(parent.red+parent.green+parent.blue)/3)
  74. expr2 b*pow(value,(parent.red+parent.green+parent.blue)/3)
  75. name Expression1
  76. xpos 277
  77. ypos -268
  78. }
  79. push $N192a52f0
  80. Multiply {
  81. value {{(1/stops)/(1/desaturate) i}}
  82. name Multiply3
  83. xpos 487
  84. ypos -156
  85. disable true
  86. }
  87. Expression {
  88. expr3 (g+b)/2
  89. name Expression3
  90. xpos 487
  91. ypos -120
  92. }
  93. Invert {
  94. name Invert1
  95. xpos 487
  96. ypos -96
  97. }
  98. Multiply {
  99. value {{desaturate i}}
  100. name Multiply2
  101. xpos 487
  102. ypos -60
  103. }
  104. push $N192a52f0
  105. Expression {
  106. temp_name0 value
  107. temp_expr0 stops
  108. expr0 r*pow(value,parent.red)
  109. expr1 g*pow(value,parent.green)
  110. expr2 b*pow(value,parent.blue)
  111. name Expression2
  112. xpos 362
  113. ypos -266
  114. }
  115. set N1d48c530 [stack 0]
  116. Expression {
  117. expr0 (r*stops+g+b)/3
  118. expr1 (r*stops+g+b)/3
  119. expr2 (r*stops+g+b)/3
  120. expr3 (r*stops+g+b)/3
  121. name Expression4
  122. xpos 372
  123. ypos -84
  124. }
  125. push $N1d48c530
  126. Keymix {
  127. inputs 3
  128. name Keymix1
  129. xpos 293
  130. ypos 22
  131. }
  132. Keymix {
  133. inputs 3
  134. name Keymix2
  135. xpos 207
  136. ypos 86
  137. }
  138. Multiply {
  139. value {{pow(2,parent.exposure)}}
  140. name Multiply6
  141. xpos 207
  142. ypos 137
  143. }
  144. set N1d48d2f0 [stack 0]
  145. Output {
  146. name Output1
  147. xpos 207
  148. ypos 210
  149. }
  150. push $N192a4c10
  151. push $N1d48d2f0
  152. Viewer {
  153. inputs 2
  154. input_process false
  155. name Viewer1
  156. xpos 487
  157. ypos 170
  158. }
  159. end_group
  160. # Creation Time=Fri Mar 07 12:42:52 2014
  161. # Creator=nils