Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gui Illustration Look : fx_illustration_look,fx_illustration_look_preview(0)
- #@gui : Use tone mapping = bool(1)
- #@gui : Desaturate (%) = float(0,0,100)
- #@gui : Vintage tone (%) = float(0,0,100)
- #@gui : Output as multiple layers = bool(0)
- #@gui : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate top","Duplicate left","Duplicate bottom","Duplicate right")
- #@gui : sep = separator(), note = note("<small>Authors: <i>Sébastien Guyader</i> and <i>David Tschumperlé</i>. Latest update: <i>01/05/2017</i>.</small>")
- fx_illustration_look :
- -repeat $! -l[$>] nm=${-gui_layer_name}
- -to_rgb -nm. base_layer
- # Create processed layers.
- --fx_smooth_anisotropic[base_layer] 20,0.16,0.63,0.6,2.35,0.8,30,2,0,1,1,0,1,24 -nm. blur_layer
- --blend[base_layer,blur_layer] grainextract -nm. detail_layer
- -if $2 -rgb2hsv[blur_layer] -sh[blur_layer] 1 --. {$2%} -c. 0,1 -rm. -hsv2rgb[blur_layer] -endif
- -if $3 --fx_mix_rgb[blur_layer] 1,10,0,1,0,0,0.7,-10,0,0,10,0 -j[blur_layer] .,0,0,0,0,{$3%} -rm. -endif
- -if $1 -fx_map_tones_fast[blur_layer] 20,0.2,11,0 -endif
- -simplelocalcontrast_p[blur_layer] 25,1,50,1,1,1,1,1,1,1,1,1
- --fx_graphic_novelfxl[blur_layer] 1,2,6,5,20,0,1.02857,200,0,1,0.0761905,0.0857143,0,0,0,2,1,1,1,1.25714,0.371429,1.04762 -nm. graphicnovel_layer
- # Order and set layer properties.
- -mv[detail_layer] 0 -nm[detail_layer] "name("$nm" [Detail]),mode(grainmerge),opacity(100)"
- -mv[graphicnovel_layer] 1 -nm[graphicnovel_layer] "name("$nm" [Graphic novel]),mode(normal),opacity(50)"
- -mv[blur_layer] 2 -nm[blur_layer] "name("$nm" [Simple local contrast]),mode(normal),opacity(100)"
- -rm[base_layer]
- -if {!$4} -gui_merge_layers -nm "name("$nm"),mode(normal),opacity(100)" -endif
- -endl -done
- fx_illustration_look_preview :
- -gui_split_preview "-fx_illustration_look ${1-3},0",$-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement