PhotoComix

#@gmic

Apr 5th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. #@gmic
  2.  
  3. #@gimp <b>PhotoComix Filters</b>
  4.  
  5. ############################################################################################
  6.  
  7. #@gimp Psychedelic Glasswork Tiler : gimp_psyglass, gimp_psyglass_preview
  8. #@gimp : sep = separator()
  9. #@gimp : note = note("Stained Glass controls")
  10. #@gimp : White separators = bool(false)
  11. #@gimp : Edges = float(20,0,100)
  12. #@gimp : Shading = float(0.1,0,0.5)
  13. #@gimp : Thin separators = bool(1)
  14. #@gimp : Equalize = bool(1)
  15. #@gimp : sep = separator()
  16. #@gimp : sep = separator()
  17. #@gimp : note = note("To skip Layer Fx set Opacity to 0")
  18. #@gimp : sep = separator()
  19. #@gimp : Layer Fx = choice("Grain Merge","Hard Light","Soft Light","Overlay","Color Burn ","Multiply",)
  20. #@gimp : Opacity = float(1,0,1)
  21. #@gimp : sep = separator()
  22. #@gimp : sep = separator()
  23. #@gimp : note = note("Quick Corrections and Special Fx")
  24.  
  25. #@gimp : Apply Mask = bool(true)
  26. #@gimp : note = note(" Contrast Mask preset")
  27. #@gimp : sep = separator()
  28. #@gimp : Raise Local Contrast = bool(false)
  29. #@gimp : note = note("Local Normalization preset")
  30. #@gimp : sep = separator()
  31. #@gimp : sep = separator()
  32.  
  33. #@gimp : note = note("Mirrors Controls")
  34. #@gimp : Activate Mirrors = bool(true)
  35. #@gimp : sep = separator()
  36. #@gimp : Iterations = int(1,1,10)
  37. #@gimp : X-offset = float(0,0,100)
  38. #@gimp : Y-offset = float(0,0,100)
  39. #@gimp : Array mode = choice(2,"X-axis","Y-axis","XY-axes","2XY-axes")
  40. #@gimp : Initialization = choice("Original","Mirror X","Mirror Y","Rotate 90 deg.","Rotate 180 deg.","Rotate 270 deg.")
  41. #@gimp : Expand size = _bool(false)
  42. #@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
  43. #@gimp : sep = separator()
  44.  
  45. #@gimp : sep = separator(), note = note("<small>Author : <i>PhotoComix;</i>. Latest update : <i>2011/03/30</i>.</small>")
  46.  
  47. gimp_psyglass :
  48.  
  49. -repeat @# -l[$>] -split_opacity -l[0]
  50. -if {$1==0}
  51. -blur 0.1 -stained_glass $2,$3,$4 -n 0,255
  52. -elif {$1==1}
  53. -negative -blur 0.1 -stained_glass $2,$3,$4 -n 0,255 -negative
  54. -endif
  55. -if $5 -equalize 256 -endif
  56. --blur 0.9
  57. -if {$6==0} -gimp_compose_grainmerge $7
  58. -elif {$6==1} -gimp_compose_hardlight $7
  59. -elif {$6==2} -gimp_compose_softlight $7
  60. -elif {$6==3} -gimp_compose_overlay $7
  61. -elif {$6==4} -gimp_compose_colorburn $7
  62. -elif {$6==5} -gimp_compose_multiply $7
  63. -endif
  64. -if {$8==1} -gimp_contrast_swm 2,0,1,0 -endif
  65. -if {$9==1} -gimp_normalize_local 2,6,5,20,1,3,0 -endif
  66.  
  67. -if $10 # Apply mirror effect.
  68. -if {$15==1} -mirror x
  69. -elif {$15==2} -mirror y
  70. -elif {$15==3} -rotate 90
  71. -elif {$15==4} -rotate 180
  72. -elif {$15==5} -rotate 270
  73. -endif
  74. -array_mirror $11,$14,$16
  75. -shift -$12%,-$13%,0,0,2
  76. -endif
  77.  
  78. -endl -a c -endl -done
  79.  
  80. gimp_psyglass_preview :
  81. -gimp_split_preview " -gimp_psyglass ${1--2}",$-1
  82. ############################################################################################
Advertisement
Add Comment
Please, Sign In to add comment