Advertisement
PhotoComix

#@gmic

Apr 5th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.35 KB | None | 0 0
  1. #@gmic
  2.  
  3. #@gimp <b>PhotoComix Filters</b>
  4.  
  5. ########################################################################
  6. ##             BW INK WASH                                            ##
  7. ########################################################################
  8.  
  9. #@gimp B&amp;W Ink Wash : gimp_inkwash, gimp_inkwash(0)
  10. #@gimp : note = note("Ink wash controls")
  11. #@gimp : Size = float(0.14,0,4)
  12. #@gimp : Amplitude = float(23,0,200)
  13. #@gimp : sep = separator()
  14. #@gimp : note = note("Check if you wish visual control on this step")
  15. #@gimp : SKIP all other steps = bool(false)
  16. #@gimp : note = note ("UNcheck to reactivate the other controls")
  17. #@gimp : sep = separator()
  18. #@gimp : Smoother Sharpness = float(0.5,0,2)
  19. #@gimp : Smoother Edge Protection = float(0.54,0,1)
  20. #@gimp : Smoother Softness = float(2.25,0,10)
  21. #@gimp : sep = separator()
  22. #@gimp : Stretch Contrast = choice("None","Automatic","Automatic & Contrast Mask","Manual Controls")
  23. #@gimp : note = note ("To activate the sliders below chose 'Manual Controls'")
  24. #@gimp :sep = separator ()
  25. #@gimp : LN Amplititude = float(2,0,60)
  26. #@gimp : LN Size = float(6,0,64)
  27. #@gimp : LN Neightborhood-Smoothness = float(5,0,40)
  28. #@gimp : LN Average-Smoothness = float(20,0,40)
  29. #@gimp : sep = separator(), note = note("<small>Author : <i>PhotoComiX</i>.      Latest update : <i>2011/4/5</i>.</small>")
  30. #@gimp : note = link(0,"Forum thread about the filter discussion","http://gimpchat.com/viewtopic.php?f=10&t=914")
  31. gimp_inkwash :
  32.   -repeat @# -l[$>] -split_opacity -l[0]
  33.     -gimp_pencilbw[-1] $1,$2,0,0,0
  34.     -if {$3==1} -continue
  35.     -elif {$3==0} -gimp_anisotropic_smoothing[-1] 60,$4,$5,$6,1.1,0.8,30,2,0,1,1,0,1,0
  36.     -endif
  37.     -if {$7==1} -normalize_local[-1] 2,6,5,24,1,0,255
  38.     -elif {$7==2}  -normalize_local[-1] 2,6,5,24,1,0,255 -gimp_contrast_swm 2,0,0.512
  39.     -elif {$7==3} -gimp_normalize_local[-1] $8,$9,$10,$11,1,3,0
  40.     -endif
  41.   -endl -a c -endl -done
  42.  
  43. ##############################################################################
  44. ##                  END OF THE FILTER                                       ##
  45. ##############################################################################
  46.  
  47. ##############################################################################
  48. ##               PSYCHEDELIC GLASSWORK TILER                                ##
  49. ##############################################################################
  50.  
  51. #@gimp Psychedelic Glasswork Tiler : gimp_psyglass, gimp_psyglass_preview
  52. #@gimp : sep = separator()
  53. #@gimp : note = note("Stained Glass controls")
  54. #@gimp : White separators = bool(false)
  55. #@gimp : Edges = float(20,0,100)
  56. #@gimp : Shading = float(0.1,0,0.5)
  57. #@gimp : Thin separators = bool(1)
  58. #@gimp : Equalize = bool(1)
  59. #@gimp : sep = separator()
  60. #@gimp : sep = separator()
  61. #@gimp : note = note("To skip Layer Fx set Opacity to 0")
  62. #@gimp : sep = separator()
  63. #@gimp : Layer Fx = choice("Grain Merge","Hard Light","Soft Light","Overlay","Color Burn ","Multiply",)
  64. #@gimp : Opacity = float(1,0,1)
  65. #@gimp : sep = separator()
  66. #@gimp : sep = separator()
  67. #@gimp : note = note("Quick Corrections and Special Fx")
  68.  
  69. #@gimp : Apply Mask = bool(true)
  70. #@gimp : note = note(" Contrast Mask preset")
  71. #@gimp : sep = separator()
  72. #@gimp : Raise Local Contrast = bool(false)
  73. #@gimp : note = note("Local Normalization preset")
  74. #@gimp : sep = separator()
  75. #@gimp : sep = separator()
  76.  
  77. #@gimp : note = note("Mirrors Controls")
  78. #@gimp : Activate Mirrors = bool(true)
  79. #@gimp : sep = separator()
  80. #@gimp : Iterations = int(1,1,10)
  81. #@gimp : X-offset = float(0,0,100)
  82. #@gimp : Y-offset = float(0,0,100)
  83. #@gimp : Array mode = choice(2,"X-axis","Y-axis","XY-axes","2XY-axes")
  84. #@gimp : Initialization = choice("Original","Mirror X","Mirror Y","Rotate 90 deg.","Rotate 180 deg.","Rotate 270 deg.")
  85. #@gimp : Expand size = _bool(false)
  86. #@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
  87. #@gimp : sep = separator()
  88.  
  89. #@gimp : sep = separator(), note = note("<small>Author : <i>PhotoComix;</i>. Latest update : <i>2011/03/30</i>.</small>")
  90.  
  91. gimp_psyglass :
  92.  
  93.   -repeat @# -l[$>] -split_opacity -l[0]
  94.     -if {$1==0}
  95.       -blur 0.1 -stained_glass $2,$3,$4 -n 0,255
  96.     -elif {$1==1}
  97.       -negative -blur 0.1 -stained_glass $2,$3,$4 -n 0,255 -negative
  98.     -endif
  99.     -if $5 -equalize 256 -endif
  100.     --blur 0.9
  101.     -if {$6==0} -gimp_compose_grainmerge $7
  102.     -elif {$6==1} -gimp_compose_hardlight $7
  103.     -elif {$6==2} -gimp_compose_softlight $7
  104.     -elif {$6==3} -gimp_compose_overlay $7
  105.     -elif {$6==4} -gimp_compose_colorburn $7
  106.     -elif {$6==5} -gimp_compose_multiply $7
  107.     -endif
  108.     -if {$8==1} -gimp_contrast_swm 2,0,1,0 -endif
  109.     -if {$9==1} -gimp_normalize_local 2,6,5,20,1,3,0 -endif
  110.  
  111.     -if $10 # Apply mirror effect.
  112.       -if {$15==1} -mirror x
  113.       -elif {$15==2} -mirror y
  114.       -elif {$15==3} -rotate 90
  115.       -elif {$15==4} -rotate 180
  116.       -elif {$15==5} -rotate 270
  117.       -endif
  118.       -array_mirror $11,$14,$16
  119.       -shift -$12%,-$13%,0,0,2
  120.     -endif
  121.  
  122.   -endl -a c -endl -done
  123.  
  124. gimp_psyglass_preview :
  125.   -gimp_split_preview " -gimp_psyglass ${1--2}",$-1
  126.  
  127. ##############################################################################
  128. ##                  END OF THE FILTER                                       ##
  129. ##############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement