Advertisement
Yaroslav_Danilovsky

EdgeEx

Aug 21st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.84 KB | None | 0 0
  1. set cut_paste_input [stack 0]
  2. version 11.1 v5
  3. push $cut_paste_input
  4. Group {
  5. name EdgeExtend1
  6. help "EdgeExtend repeatedly blurs and unpremuliplies the image to extend edges outward while trying to preserve the original source colour"
  7. selected true
  8. xpos 1242
  9. ypos 2233
  10. addUserKnob {20 "" l User}
  11. addUserKnob {4 premult l "input is" M {premultiplied unpremultiplied}}
  12. addUserKnob {3 slices t "How many times the edges are blurred and unpremuliplied.\nThis is the fine control for slightly better quality. The current maximum is 10."}
  13. slices 5
  14. addUserKnob {3 slice_width l "slice width" t "Blur amount that is applied before unpremultiplying the result per slice.\nThis is the brute force control and should be kept at 1 if possible.\nOnly increase this if the maximum amount of slices (10) doesn't cover the area you need."}
  15. slice_width 1
  16. addUserKnob {7 blurResult l "blur slices" R 0 10}
  17. }
  18. Input {
  19. inputs 0
  20. name img
  21. xpos -590
  22. ypos -509
  23. }
  24. set N881e2380 [stack 0]
  25. Dot {
  26. name Dot1
  27. xpos -556
  28. ypos 978
  29. }
  30. Input {
  31. inputs 0
  32. name matte
  33. xpos -358
  34. ypos -653
  35. number 1
  36. }
  37. push $N881e2380
  38. Unpremult {
  39. name Unpremult11
  40. xpos -468
  41. ypos -509
  42. disable {{parent.premult}}
  43. }
  44. Copy {
  45. inputs 2
  46. from0 -rgba.alpha
  47. to0 -rgba.alpha
  48. channels alpha
  49. name Copy2
  50. xpos -358
  51. ypos -516
  52. }
  53. Premult {
  54. name Premult1
  55. xpos -358
  56. ypos -450
  57. }
  58. Shuffle {
  59. black alpha
  60. out2 depth
  61. name Shuffle1
  62. label alpha>depth
  63. xpos -223
  64. ypos -413
  65. }
  66. Unpremult {
  67. channels {rgba.red rgba.green rgba.blue depth.Z}
  68. name Unpremult1
  69. xpos -223
  70. ypos -373
  71. }
  72. set Nbf4d0000 [stack 0]
  73. Dot {
  74. name Dot2
  75. xpos -189
  76. ypos -214
  77. }
  78. set N6cc0fc00 [stack 0]
  79. push $Nbf4d0000
  80. Blur {
  81. channels {rgba.red rgba.green rgba.blue depth.Z}
  82. size {{parent.slice_width}}
  83. name Blur1
  84. xpos -25
  85. ypos -373
  86. }
  87. Shuffle {
  88. in2 depth
  89. alpha red2
  90. out2 depth
  91. name Shuffle3
  92. label depth>alpha
  93. xpos -25
  94. ypos -333
  95. }
  96. Unpremult {
  97. channels rgba
  98. alpha depth.Z
  99. name Unpremult3
  100. xpos -25
  101. ypos -293
  102. }
  103. Blur {
  104. channels rgba
  105. size {{parent.blurResult}}
  106. name Blur10
  107. xpos -25
  108. ypos -241
  109. }
  110. set C725da380 [stack 0]
  111. Merge2 {
  112. inputs 2
  113. Achannels {rgba.red rgba.green rgba.blue depth.Z}
  114. name Merge1
  115. xpos -25
  116. ypos -218
  117. }
  118. set Neab9e000 [stack 0]
  119. Dot {
  120. name Dot3
  121. xpos 9
  122. ypos -73
  123. }
  124. set Nbeee6700 [stack 0]
  125. push $Neab9e000
  126. Blur {
  127. channels rgba
  128. size {{parent.slice_width}}
  129. name Blur2
  130. xpos 159
  131. ypos -218
  132. }
  133. Shuffle {
  134. in2 depth
  135. black alpha
  136. out2 depth
  137. name Shuffle5
  138. label alpha>depth
  139. xpos 159
  140. ypos -180
  141. }
  142. Unpremult {
  143. channels {rgba.red rgba.green rgba.blue depth.Z}
  144. name Unpremult2
  145. xpos 159
  146. ypos -140
  147. }
  148. Blur {
  149. channels {rgba.red rgba.green rgba.blue depth.Z}
  150. size {{parent.blurResult}}
  151. name Blur3
  152. xpos 159
  153. ypos -101
  154. }
  155. set C688b6e00 [stack 0]
  156. Merge2 {
  157. inputs 2
  158. name Merge2
  159. xpos 159
  160. ypos -73
  161. }
  162. set Naf897500 [stack 0]
  163. Dot {
  164. name Dot4
  165. xpos 193
  166. ypos 103
  167. }
  168. set N68b17500 [stack 0]
  169. push $Naf897500
  170. Shuffle {
  171. in2 depth
  172. alpha red2
  173. out2 depth
  174. name Shuffle2
  175. label depth>alpha
  176. xpos 342
  177. ypos -24
  178. }
  179. Unpremult {
  180. channels rgba
  181. alpha depth.Z
  182. name Unpremult4
  183. xpos 342
  184. ypos 16
  185. }
  186. set N455cce00 [stack 0]
  187. clone $C725da380 {
  188. xpos 342
  189. ypos 68
  190. selected false
  191. }
  192. Merge2 {
  193. inputs 2
  194. Achannels {rgba.red rgba.green rgba.blue depth.Z}
  195. name Merge3
  196. xpos 342
  197. ypos 103
  198. }
  199. Dot {
  200. name Dot5
  201. xpos 373
  202. ypos 226
  203. }
  204. set N68b17880 [stack 0]
  205. push $N455cce00
  206. Blur {
  207. channels rgba
  208. size {{parent.slice_width}}
  209. name Blur4
  210. xpos 503
  211. ypos 23
  212. }
  213. Shuffle {
  214. in2 depth
  215. black alpha
  216. out2 depth
  217. name Shuffle4
  218. label alpha>depth
  219. xpos 503
  220. ypos 65
  221. }
  222. Unpremult {
  223. channels {rgba.red rgba.green rgba.blue depth.Z}
  224. name Unpremult5
  225. xpos 503
  226. ypos 105
  227. }
  228. set N5e29fc00 [stack 0]
  229. clone $C688b6e00 {
  230. xpos 503
  231. ypos 174
  232. selected false
  233. }
  234. Merge2 {
  235. inputs 2
  236. name Merge4
  237. xpos 503
  238. ypos 226
  239. }
  240. Dot {
  241. name Dot6
  242. xpos 537
  243. ypos 321
  244. }
  245. set N5e29f180 [stack 0]
  246. push $N5e29fc00
  247. Blur {
  248. channels {rgba.red rgba.green rgba.blue depth.Z}
  249. size {{parent.slice_width}}
  250. name Blur5
  251. xpos 689
  252. ypos 105
  253. }
  254. Shuffle {
  255. in2 depth
  256. alpha red2
  257. out2 depth
  258. name Shuffle6
  259. label depth>alpha
  260. xpos 689
  261. ypos 145
  262. }
  263. Unpremult {
  264. channels rgba
  265. alpha depth.Z
  266. name Unpremult6
  267. xpos 689
  268. ypos 185
  269. }
  270. set N5e29e700 [stack 0]
  271. clone $C725da380 {
  272. xpos 684
  273. ypos 272
  274. selected false
  275. }
  276. Merge2 {
  277. inputs 2
  278. Achannels {rgba.red rgba.green rgba.blue depth.Z}
  279. name Merge5
  280. xpos 689
  281. ypos 321
  282. }
  283. Dot {
  284. name Dot7
  285. xpos 723
  286. ypos 448
  287. }
  288. set N8494fc00 [stack 0]
  289. push $N5e29e700
  290. Blur {
  291. channels rgba
  292. size {{parent.slice_width}}
  293. name Blur6
  294. xpos 856
  295. ypos 200
  296. }
  297. Shuffle {
  298. in2 depth
  299. black alpha
  300. out2 depth
  301. name Shuffle7
  302. label alpha>depth
  303. xpos 856
  304. ypos 280
  305. }
  306. Unpremult {
  307. channels {rgba.red rgba.green rgba.blue depth.Z}
  308. name Unpremult7
  309. xpos 856
  310. ypos 320
  311. }
  312. set N8494f180 [stack 0]
  313. clone $C688b6e00 {
  314. xpos 852
  315. ypos 405
  316. selected false
  317. }
  318. Merge2 {
  319. inputs 2
  320. name Merge6
  321. xpos 856
  322. ypos 448
  323. }
  324. Dot {
  325. name Dot8
  326. xpos 890
  327. ypos 514
  328. }
  329. set N8494e700 [stack 0]
  330. push $N8494f180
  331. Blur {
  332. channels {rgba.red rgba.green rgba.blue depth.Z}
  333. size {{parent.slice_width}}
  334. name Blur7
  335. xpos 1042
  336. ypos 320
  337. }
  338. Shuffle {
  339. in2 depth
  340. alpha red2
  341. out2 depth
  342. name Shuffle8
  343. label depth>alpha
  344. xpos 1042
  345. ypos 393
  346. }
  347. Unpremult {
  348. channels rgba
  349. alpha depth.Z
  350. name Unpremult8
  351. xpos 1042
  352. ypos 433
  353. }
  354. set N6878fc00 [stack 0]
  355. clone $C725da380 {
  356. xpos 1046
  357. ypos 484
  358. selected false
  359. }
  360. Merge2 {
  361. inputs 2
  362. Achannels {rgba.red rgba.green rgba.blue depth.Z}
  363. name Merge7
  364. xpos 1042
  365. ypos 514
  366. }
  367. Dot {
  368. name Dot9
  369. xpos 1076
  370. ypos 579
  371. }
  372. set N6878f180 [stack 0]
  373. push $N6878fc00
  374. Blur {
  375. channels rgba
  376. size {{parent.slice_width}}
  377. name Blur8
  378. xpos 1205
  379. ypos 440
  380. }
  381. Shuffle {
  382. in2 depth
  383. black alpha
  384. out2 depth
  385. name Shuffle9
  386. label alpha>depth
  387. xpos 1205
  388. ypos 466
  389. }
  390. Unpremult {
  391. channels {rgba.red rgba.green rgba.blue depth.Z}
  392. name Unpremult9
  393. xpos 1205
  394. ypos 506
  395. }
  396. set N6878e700 [stack 0]
  397. clone $C688b6e00 {
  398. xpos 1206
  399. ypos 551
  400. selected false
  401. }
  402. Merge2 {
  403. inputs 2
  404. name Merge8
  405. xpos 1205
  406. ypos 579
  407. }
  408. Dot {
  409. name Dot10
  410. xpos 1239
  411. ypos 664
  412. }
  413. set N2efbfc00 [stack 0]
  414. push $N6878e700
  415. Blur {
  416. channels {rgba.red rgba.green rgba.blue depth.Z}
  417. size {{parent.slice_width}}
  418. name Blur9
  419. xpos 1421
  420. ypos 506
  421. }
  422. Shuffle {
  423. in2 depth
  424. alpha red2
  425. out2 depth
  426. name Shuffle11
  427. label depth>alpha
  428. xpos 1421
  429. ypos 546
  430. }
  431. Unpremult {
  432. channels rgba
  433. alpha depth.Z
  434. name Unpremult10
  435. xpos 1421
  436. ypos 586
  437. }
  438. clone $C725da380 {
  439. xpos 1421
  440. ypos 638
  441. selected true
  442. }
  443. Merge2 {
  444. inputs 2
  445. Achannels {rgba.red rgba.green rgba.blue depth.Z}
  446. name Merge9
  447. xpos 1421
  448. ypos 664
  449. }
  450. push $N2efbfc00
  451. push $N6878f180
  452. push $N8494e700
  453. push $N8494fc00
  454. push $N5e29f180
  455. push $N68b17880
  456. push $N68b17500
  457. push $Nbeee6700
  458. push $N6cc0fc00
  459. push $N881e2380
  460. Switch {
  461. inputs 11
  462. which {{parent.slices}}
  463. name Switch1
  464. xpos 689
  465. ypos 827
  466. }
  467. Shuffle {
  468. in2 depth
  469. alpha red2
  470. out2 depth
  471. name Shuffle10
  472. label depth>alpha
  473. xpos 689
  474. ypos 865
  475. }
  476. Remove {
  477. channels depth
  478. name Remove1
  479. xpos 689
  480. ypos 905
  481. }
  482. Copy {
  483. inputs 2
  484. from0 -rgba.alpha
  485. to0 -rgba.alpha
  486. channels depth
  487. name Copy1
  488. xpos 689
  489. ypos 960
  490. }
  491. Output {
  492. name Output1
  493. xpos 689
  494. ypos 1290
  495. }
  496. Blur {
  497. inputs 0
  498. channels {rgba.red rgba.green rgba.blue depth.Z}
  499. size 8.5
  500. name Blur11
  501. xpos 299
  502. ypos -61
  503. }
  504. end_group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement