Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.73 KB | None | 0 0
  1. set cut_paste_input [stack 0]
  2. version 11.3 v4
  3. push 0
  4. push $cut_paste_input
  5. Group {
  6. inputs 2
  7. name DropShadow2
  8. help "<b>DropShadow Gizmo</b>\n\nThis gizmo will create a drop shadow for any input image that has an alpha channel <br> with values greater than 0.\n\ninput - the input image to cast the shadow from\n\nbg - the background image the 'input' image and drop shadow will be merged over\n\nOptions include:\n\nenable drop shadow - enable, or disable the drop shadow effect\ninherit input color - shadow color will be the same color as the input image\ncolor - color of the shadow (ignored if 'inherit input color' is active)\nopacity - opacity of the shadow (relative to the 'input' alpha value)\nangle - direction of the shadow (0/360 = left direction)\ndistance - distance of shadow from the 'input' content position \nsoftness - amount the shadow is blurred by \nshrink/expand - erode(-)/dilate(+) the shadow\ninput \[merge operation] bg - operation to combine the 'input' and 'bg' inputs:\n\n 'input' => the A input\n 'bg' => the B input"
  9. note_font Verdana
  10. selected true
  11. xpos 1435
  12. ypos -7327
  13. addUserKnob {20 User}
  14. addUserKnob {6 enable_dropshadow_effect l "enable drop shadow" t "enable/disable drop shadow effect" +STARTLINE}
  15. enable_dropshadow_effect true
  16. addUserKnob {6 removeInput l "remove input rgba (only output shadow without merging)" +STARTLINE}
  17. removeInput true
  18. addUserKnob {6 inherit_input_color l "inherit input color" t "use the input images colour for drop shadow" +STARTLINE}
  19. addUserKnob {18 color t "sets the color of the drop shadow (ignored if 'inherit input color' is active)"}
  20. color {0 0 0}
  21. addUserKnob {6 color_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  22. addUserKnob {6 color_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  23. addUserKnob {7 opacity t "sets the opacity of the drop shadow"}
  24. opacity 0.585
  25. addUserKnob {7 dropshadow_angle l angle t "the angle at which the shadow falls\n\n0/360 = left\n90 = top\n180 = right\n270 = bottom " R 0 360}
  26. dropshadow_angle 226
  27. addUserKnob {7 dropshadow_distance l distance t "distance of shadow from the 'input' content position" R 0 50}
  28. dropshadow_distance 30
  29. addUserKnob {7 softness t "the softness of the shadow (i.e. Blur)" R 0 20}
  30. softness 5.6
  31. addUserKnob {7 size l shrink/expand t "erode (-) or dilate (+) the shadow" R -5 5}
  32. size 1.5
  33. addUserKnob {26 divider l "" +STARTLINE}
  34. addUserKnob {41 operation l input t "merge operation used to combine 'input' and 'bg' " T Merge1.operation}
  35. addUserKnob {26 bg_input_text l "" -STARTLINE T " bg"}
  36. }
  37. Grade {
  38. inputs 0
  39. channels alpha
  40. multiply {0 0 0 {parent.opacity}}
  41. name Grade2
  42. note_font Verdana
  43. xpos 334
  44. ypos -281
  45. hide_input true
  46. }
  47. Input {
  48. inputs 0
  49. name input
  50. note_font Verdana
  51. xpos 39
  52. ypos -509
  53. number 1
  54. }
  55. Dot {
  56. name Dot6
  57. note_font Verdana
  58. xpos 73
  59. ypos -457
  60. }
  61. set N5a158f30 [stack 0]
  62. Dot {
  63. name Dot7
  64. note_font Verdana
  65. xpos 188
  66. ypos -457
  67. }
  68. set N5a15b3f0 [stack 0]
  69. Dot {
  70. name Dot8
  71. note_font Monaco
  72. xpos 298
  73. ypos -457
  74. }
  75. set N5a15d8b0 [stack 0]
  76. Grade {
  77. channels alpha
  78. multiply {1 1 1 {parent.Grade2.multiply.a}}
  79. name Grade1
  80. note_font Monaco
  81. xpos 264
  82. ypos -223
  83. }
  84. push $N5a15d8b0
  85. Dot {
  86. name Dot10
  87. xpos 439
  88. ypos -457
  89. }
  90. set N5a4f8d70 [stack 0]
  91. Shuffle {
  92. red alpha
  93. green alpha
  94. blue alpha
  95. name Shuffle1
  96. note_font Verdana
  97. xpos 408
  98. ypos -372
  99. }
  100. Clamp {
  101. name Clamp1
  102. xpos 408
  103. ypos -329
  104. }
  105. Grade {
  106. channels rgba
  107. multiply {{parent.color} {parent.color} {parent.color} {parent.Grade2.multiply.a}}
  108. name Grade3
  109. note_font Verdana
  110. xpos 408
  111. ypos -221
  112. }
  113. Switch {
  114. inputs 2
  115. which {{parent.inherit_input_color}}
  116. name Switch2
  117. note_font Monaco
  118. xpos 337
  119. ypos -150
  120. }
  121. Dilate {
  122. channels rgba
  123. size {{parent.size}}
  124. name Dilate3
  125. note_font Verdana
  126. xpos 337
  127. ypos -100
  128. }
  129. Blur {
  130. channels rgba
  131. size {{parent.softness}}
  132. filter quadratic
  133. name Blur3
  134. note_font Verdana
  135. xpos 337
  136. ypos -74
  137. }
  138. Transform {
  139. translate {{"-1*cos(\[value angle]*3.14159265/180)*\[value distance]"} {"sin(\[value angle]*3.14159265/180)*\[value distance]"}}
  140. center {1024 778}
  141. name Transform4
  142. note_font Verdana
  143. xpos 337
  144. ypos -48
  145. addUserKnob {20 User}
  146. addUserKnob {7 angle R 0 360}
  147. angle {{parent.dropshadow_angle}}
  148. addUserKnob {7 distance R 0 50}
  149. distance {{parent.dropshadow_distance}}
  150. }
  151. Dot {
  152. name Dot2
  153. note_font Verdana
  154. xpos 371
  155. ypos -12
  156. }
  157. set N5a191f70 [stack 0]
  158. Dot {
  159. name Dot4
  160. note_font Verdana
  161. xpos 481
  162. ypos -12
  163. }
  164. Dot {
  165. name Dot5
  166. note_font Verdana
  167. xpos 481
  168. ypos 138
  169. }
  170. set N5a1967b0 [stack 0]
  171. Dot {
  172. name Dot3
  173. note_font Verdana
  174. xpos 481
  175. ypos 216
  176. }
  177. push $N5a1967b0
  178. push $N5a191f70
  179. Premult {
  180. name Premult1
  181. note_font Verdana
  182. xpos 337
  183. ypos 15
  184. }
  185. EdgeDetectWrapper {
  186. channels alpha
  187. erodesize -0.1
  188. name EdgeDetect1
  189. xpos 337
  190. ypos 41
  191. }
  192. Dilate {
  193. channels rgba
  194. size 1.4
  195. maskChannelInput rgba.alpha
  196. name Dilate1
  197. note_font Verdana
  198. xpos 337
  199. ypos 73
  200. }
  201. Copy {
  202. inputs 2
  203. from0 rgba.alpha
  204. to0 rgba.alpha
  205. name Copy1
  206. note_font Verdana
  207. xpos 337
  208. ypos 128
  209. }
  210. Premult {
  211. name Premult2
  212. note_font Verdana
  213. xpos 337
  214. ypos 166
  215. }
  216. Copy {
  217. inputs 2
  218. from0 rgba.alpha
  219. to0 rgba.alpha
  220. name Copy2
  221. note_font Verdana
  222. xpos 337
  223. ypos 206
  224. }
  225. set N5a1b5350 [stack 0]
  226. push $N5a4f8d70
  227. Dot {
  228. name Dot9
  229. xpos 630
  230. ypos -457
  231. }
  232. Shuffle {
  233. name Shuffle2
  234. label "\[value this.in] > \[value this.out]"
  235. xpos 599
  236. ypos -355
  237. }
  238. Merge2 {
  239. inputs 2
  240. operation copy
  241. bbox A
  242. name Merge2
  243. xpos 585
  244. ypos 323
  245. }
  246. push $N5a15b3f0
  247. push $N5a1b5350
  248. Merge2 {
  249. inputs 2
  250. name Merge8
  251. note_font Verdana
  252. xpos 154
  253. ypos 212
  254. }
  255. Switch {
  256. inputs 2
  257. which {{parent.removeInput}}
  258. name Switch3
  259. xpos 154
  260. ypos 323
  261. }
  262. set N5a09ee20 [stack 0]
  263. Dot {
  264. name Dot11
  265. xpos 289
  266. ypos 379
  267. }
  268. set N54d8baa0 [stack 0]
  269. push $N5a09ee20
  270. push $N5a158f30
  271. Dot {
  272. name Dot1
  273. note_font Verdana
  274. xpos 73
  275. ypos 412
  276. }
  277. Switch {
  278. inputs 2
  279. which {{parent.enable_dropshadow_effect}}
  280. name Switch1
  281. note_font Verdana
  282. xpos 154
  283. ypos 411
  284. }
  285. Input {
  286. inputs 0
  287. name bg
  288. note_font Verdana
  289. xpos -188
  290. ypos 509
  291. }
  292. Merge2 {
  293. inputs 2
  294. operation multiply
  295. name Merge1
  296. note_font Verdana
  297. xpos 88
  298. ypos 509
  299. }
  300. Switch {
  301. inputs 2
  302. which {{parent.removeInput}}
  303. name Switch4
  304. xpos 249
  305. ypos 585
  306. }
  307. Output {
  308. name Output1
  309. note_font Verdana
  310. xpos 249
  311. ypos 641
  312. }
  313. push $N54d8baa0
  314. push 0
  315. Viewer {
  316. inputs 2
  317. frame_range 1-304
  318. input_number 1
  319. name Viewer1
  320. xpos 695
  321. ypos 673
  322. }
  323. end_group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement