Advertisement
Guest User

Highlight Bloom and Photoillustration Look

a guest
Jan 5th, 2017
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.93 KB | None | 0 0
  1. #@gui Illustration Look : fx_illustration_look,fx_illustration_look_preview(0)
  2. #@gui : Use tone mapping = bool(1)
  3. #@gui : Desaturate (%) = float(0,0,100)
  4. #@gui : Vintage tone (%) = float(0,0,100)
  5. #@gui : Output as multiple layers = bool(0)
  6. #@gui : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate top","Duplicate left","Duplicate bottom","Duplicate right")
  7. #@gui : sep = separator(), note = note("<small>Authors: <i>S&#233;bastien Guyader</i> and <i>David Tschumperl&#233;</i>.      Latest update: <i>01/05/2017</i>.</small>")
  8. fx_illustration_look :
  9.   -repeat $! -l[$>] nm=${-gui_layer_name}
  10.     -to_rgb -nm. base_layer
  11.  
  12.     # Create processed layers.
  13.     --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
  14.     --blend[base_layer,blur_layer] grainextract -nm. detail_layer
  15.     -if $2 -rgb2hsv[blur_layer] -sh[blur_layer] 1 --. {$2%} -c. 0,1 -rm. -hsv2rgb[blur_layer] -endif
  16.     -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
  17.     -if $1 -fx_map_tones_fast[blur_layer] 20,0.2,11,0 -endif
  18.     -simplelocalcontrast_p[blur_layer] 25,1,50,1,1,1,1,1,1,1,1,1
  19.     --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
  20.  
  21.     # Order and set layer properties.
  22.     -mv[detail_layer] 0 -nm[detail_layer] "name("$nm" [Detail]),mode(grainmerge),opacity(100)"
  23.     -mv[graphicnovel_layer] 1 -nm[graphicnovel_layer] "name("$nm" [Graphic novel]),mode(normal),opacity(50)"
  24.     -mv[blur_layer] 2 -nm[blur_layer] "name("$nm" [Simple local contrast]),mode(normal),opacity(100)"
  25.     -rm[base_layer]
  26.  
  27.     -if {!$4} -gui_merge_layers -nm "name("$nm"),mode(normal),opacity(100)" -endif
  28.   -endl -done
  29.  
  30. fx_illustration_look_preview :
  31.   -gui_split_preview "-fx_illustration_look ${1-3},0",$-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement