Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ReplaceFramesSimple(t_skinhair_dehalo(1.5,dehalo_alpha_mt(2.5,2.5,0,1,ss=2).yahrmask(10,64),t_3colormask($414055,$3b3d4a,$5a5a73,20),t_3colormask($debaa8,$c9aaa0,$efddcf,20),8,showmask=!true),mappings="[4749 4789] [5502 5537] [5615 5677]") #blue hair
- function t_skinhair_dehalo( clip c, float blur, clip vDehalo, clip halocaster, clip victim, int "thr", bool "showmask" )
- {
- blur=default(blur,5)
- thr=default(thr,40) #max luma change
- showmask=default(showmask,false)
- m=halocaster.mt_expand_multi(sw=7,sh=7).mt_logic(victim.mt_expand_multi(sw=4,sh=4),"min").mt_inpand_multi(sw=3,sh=3).mt_binarize(100).binomialblur(3,u=1,v=1)
- vMega=vDehalo.mt_merge(vDehalo.binomialblur(blur,u=3,v=3),m,true).mt_clamp(c,c,0,thr)
- showmask ? c.overlay(m,0,0,m,0.5) : c.mt_merge(vMega,m,true)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement