Ingen beskrivning
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.

dg_Vignette.gizmo 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Gizmo {
  2. help "Vignette tool by Den Gheiko"
  3. tile_color 0x7c7a51ff
  4. addUserKnob {20 Form}
  5. addUserKnob {41 Core T Input1.Core}
  6. addUserKnob {41 Border T Input1.Border}
  7. addUserKnob {41 Softness T Input1.Softness}
  8. addUserKnob {20 Color}
  9. addUserKnob {20 out l border n 1}
  10. addUserKnob {41 gainout l gain T Input1.gainout}
  11. addUserKnob {41 gammaout l gamma T Input1.gammaout}
  12. addUserKnob {41 liftout l lift T Input1.liftout}
  13. addUserKnob {20 endGroup n -1}
  14. addUserKnob {26 ""}
  15. addUserKnob {20 in l core n 1}
  16. addUserKnob {41 gainin l gain T Input1.gainin}
  17. addUserKnob {41 gammain l gamma T Input1.gammain}
  18. addUserKnob {41 liftin l lift T Input1.liftin}
  19. addUserKnob {26 ""}
  20. addUserKnob {32 NoChange T "knob gainout 1\nknob gammaout 1\nknob liftout 0\n\nknob gainin 1\nknob gammain 1\nknob liftin 0" +STARTLINE}
  21. addUserKnob {32 Defaults -STARTLINE T "knob gainout 0.849\nknob gammaout 0.3\nknob liftout -0.03\n\nknob gainin 1.09\nknob gammain 1.134\nknob liftin 0"}
  22. addUserKnob {20 endGroup_1 l endGroup n -1}
  23. addUserKnob {20 Output}
  24. addUserKnob {41 output l Output T Input1.output}
  25. addUserKnob {26 ""}
  26. addUserKnob {41 to0 l "Mask output" T Copy1.to0}
  27. addUserKnob {41 invert -STARTLINE T Input1.invert}
  28. }
  29. Input {
  30. inputs 0
  31. name Input1
  32. xpos 415
  33. ypos -363
  34. addUserKnob {20 User}
  35. addUserKnob {7 gainin R 1 1.2}
  36. gainin 1.09
  37. addUserKnob {7 gammain R 1 1.2}
  38. gammain 1.134
  39. addUserKnob {7 liftin R -0.1 0.1}
  40. addUserKnob {7 liftout R -0.1 0.1}
  41. liftout -0.03
  42. addUserKnob {7 gainout R 1 0.8}
  43. gainout 0.849
  44. addUserKnob {7 gammaout R 0.3 1}
  45. gammaout 0.3
  46. addUserKnob {7 Softness}
  47. Softness 1
  48. addUserKnob {7 amount}
  49. amount 1
  50. addUserKnob {4 output M {result mask}}
  51. addUserKnob {6 invert +STARTLINE}
  52. invert true
  53. addUserKnob {7 Core}
  54. Core 1
  55. addUserKnob {7 Border}
  56. Border 1
  57. }
  58. Dot {
  59. name Dot5
  60. xpos 443
  61. ypos -285
  62. }
  63. set N715c8cd0 [stack 0]
  64. Radial {
  65. replace true
  66. area {{-width*(1-Input1.Border)} {area.x} {width-area.x} {height-area.y}}
  67. name Radial3
  68. xpos 540
  69. ypos -282
  70. }
  71. Keyer {
  72. input alpha
  73. operation "luminance key"
  74. range {0 {0.2*(1-Input1.Core)} 1 1}
  75. name Keyer1
  76. xpos 540
  77. ypos -234
  78. }
  79. Blur {
  80. size {{max(width,height)/3*Input1.Softness}}
  81. name Blur1
  82. xpos 540
  83. ypos -190
  84. }
  85. set N715c9720 [stack 0]
  86. Shuffle {
  87. red alpha
  88. green alpha
  89. blue alpha
  90. name Shuffle1
  91. xpos 537
  92. ypos -93
  93. }
  94. set N71592920 [stack 0]
  95. Invert {
  96. name Invert1
  97. xpos 539
  98. ypos -29
  99. disable {{1-parent.Input1.invert}}
  100. }
  101. Dot {
  102. name Dot1
  103. xpos 567
  104. ypos 55
  105. }
  106. set N71593000 [stack 0]
  107. push $N71592920
  108. push $N715c9720
  109. push $N715c9720
  110. push $N715c8cd0
  111. Grade {
  112. inputs 1+1
  113. black {{parent.Input1.liftout}}
  114. white {{parent.Input1.gainout}}
  115. gamma {{parent.Input1.gammaout}}
  116. invert_mask true
  117. name GradeOut1
  118. xpos 415
  119. ypos -184
  120. }
  121. Grade {
  122. inputs 1+1
  123. black {{parent.Input1.liftin}}
  124. white {{parent.Input1.gainin}}
  125. gamma {{parent.Input1.gammain}}
  126. name GradeIn1
  127. xpos 415
  128. ypos -145
  129. }
  130. Switch {
  131. inputs 2
  132. which {{Input1.output i}}
  133. name Switch1
  134. xpos 415
  135. ypos -93
  136. }
  137. Copy {
  138. inputs 2
  139. from0 rgba.alpha
  140. to0 mask.a
  141. name Copy1
  142. xpos 418
  143. ypos 52
  144. addUserKnob {20 User}
  145. addUserKnob {32 frwd -STARTLINE T "knob from0 \{rgba.red\}\nknob from1 \{rgba.green\}\nknob to0 \{forward.u\}\nknob to1 \{forward.v\}"}
  146. addUserKnob {32 frwd -STARTLINE T "knob from0 \{rgba.red\}\nknob from1 \{rgba.green\}\nknob to0 \{forward.u\}\nknob to1 \{forward.v\}"}
  147. }
  148. Output {
  149. name Output1
  150. xpos 418
  151. ypos 133
  152. }
  153. push $N71593000
  154. Viewer {
  155. input_process false
  156. name Viewer1
  157. selected true
  158. xpos 540
  159. ypos -258
  160. }
  161. end_group