Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gmic
- #@gimp <b>PhotoComix Filters</b>
- ########################################################################
- ## BW INK WASH ##
- ########################################################################
- #@gimp B&W Ink Wash : gimp_inkwash, gimp_inkwash(0)
- #@gimp : note = note("Ink wash controls")
- #@gimp : Size = float(0.14,0,4)
- #@gimp : Amplitude = float(23,0,200)
- #@gimp : sep = separator()
- #@gimp : note = note("Check if you wish visual control on this step")
- #@gimp : SKIP all other steps = bool(false)
- #@gimp : note = note ("UNcheck to reactivate the other controls")
- #@gimp : sep = separator()
- #@gimp : Smoother Sharpness = float(0.5,0,2)
- #@gimp : Smoother Edge Protection = float(0.54,0,1)
- #@gimp : Smoother Softness = float(2.25,0,10)
- #@gimp : sep = separator()
- #@gimp : Stretch Contrast = choice("None","Automatic","Automatic & Contrast Mask","Manual Controls")
- #@gimp : note = note ("To activate the sliders below chose 'Manual Controls'")
- #@gimp :sep = separator ()
- #@gimp : LN Amplititude = float(2,0,60)
- #@gimp : LN Size = float(6,0,64)
- #@gimp : LN Neightborhood-Smoothness = float(5,0,40)
- #@gimp : LN Average-Smoothness = float(20,0,40)
- #@gimp : sep = separator(), note = note("<small>Author : <i>PhotoComiX</i>. Latest update : <i>2011/4/5</i>.</small>")
- #@gimp : note = link(0,"Forum thread about the filter discussion","http://gimpchat.com/viewtopic.php?f=10&t=914")
- gimp_inkwash :
- -repeat @# -l[$>] -split_opacity -l[0]
- -gimp_pencilbw[-1] $1,$2,0,0,0
- -if {$3==1} -continue
- -elif {$3==0} -gimp_anisotropic_smoothing[-1] 60,$4,$5,$6,1.1,0.8,30,2,0,1,1,0,1,0
- -endif
- -if {$7==1} -normalize_local[-1] 2,6,5,24,1,0,255
- -elif {$7==2} -normalize_local[-1] 2,6,5,24,1,0,255 -gimp_contrast_swm 2,0,0.512
- -elif {$7==3} -gimp_normalize_local[-1] $8,$9,$10,$11,1,3,0
- -endif
- -endl -a c -endl -done
- ##############################################################################
- ## END OF THE FILTER ##
- ##############################################################################
- ##############################################################################
- ## PSYCHEDELIC GLASSWORK TILER ##
- ##############################################################################
- #@gimp Psychedelic Glasswork Tiler : gimp_psyglass, gimp_psyglass_preview
- #@gimp : sep = separator()
- #@gimp : note = note("Stained Glass controls")
- #@gimp : White separators = bool(false)
- #@gimp : Edges = float(20,0,100)
- #@gimp : Shading = float(0.1,0,0.5)
- #@gimp : Thin separators = bool(1)
- #@gimp : Equalize = bool(1)
- #@gimp : sep = separator()
- #@gimp : sep = separator()
- #@gimp : note = note("To skip Layer Fx set Opacity to 0")
- #@gimp : sep = separator()
- #@gimp : Layer Fx = choice("Grain Merge","Hard Light","Soft Light","Overlay","Color Burn ","Multiply",)
- #@gimp : Opacity = float(1,0,1)
- #@gimp : sep = separator()
- #@gimp : sep = separator()
- #@gimp : note = note("Quick Corrections and Special Fx")
- #@gimp : Apply Mask = bool(true)
- #@gimp : note = note(" Contrast Mask preset")
- #@gimp : sep = separator()
- #@gimp : Raise Local Contrast = bool(false)
- #@gimp : note = note("Local Normalization preset")
- #@gimp : sep = separator()
- #@gimp : sep = separator()
- #@gimp : note = note("Mirrors Controls")
- #@gimp : Activate Mirrors = bool(true)
- #@gimp : sep = separator()
- #@gimp : Iterations = int(1,1,10)
- #@gimp : X-offset = float(0,0,100)
- #@gimp : Y-offset = float(0,0,100)
- #@gimp : Array mode = choice(2,"X-axis","Y-axis","XY-axes","2XY-axes")
- #@gimp : Initialization = choice("Original","Mirror X","Mirror Y","Rotate 90 deg.","Rotate 180 deg.","Rotate 270 deg.")
- #@gimp : Expand size = _bool(false)
- #@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
- #@gimp : sep = separator()
- #@gimp : sep = separator(), note = note("<small>Author : <i>PhotoComix;</i>. Latest update : <i>2011/03/30</i>.</small>")
- gimp_psyglass :
- -repeat @# -l[$>] -split_opacity -l[0]
- -if {$1==0}
- -blur 0.1 -stained_glass $2,$3,$4 -n 0,255
- -elif {$1==1}
- -negative -blur 0.1 -stained_glass $2,$3,$4 -n 0,255 -negative
- -endif
- -if $5 -equalize 256 -endif
- --blur 0.9
- -if {$6==0} -gimp_compose_grainmerge $7
- -elif {$6==1} -gimp_compose_hardlight $7
- -elif {$6==2} -gimp_compose_softlight $7
- -elif {$6==3} -gimp_compose_overlay $7
- -elif {$6==4} -gimp_compose_colorburn $7
- -elif {$6==5} -gimp_compose_multiply $7
- -endif
- -if {$8==1} -gimp_contrast_swm 2,0,1,0 -endif
- -if {$9==1} -gimp_normalize_local 2,6,5,20,1,3,0 -endif
- -if $10 # Apply mirror effect.
- -if {$15==1} -mirror x
- -elif {$15==2} -mirror y
- -elif {$15==3} -rotate 90
- -elif {$15==4} -rotate 180
- -elif {$15==5} -rotate 270
- -endif
- -array_mirror $11,$14,$16
- -shift -$12%,-$13%,0,0,2
- -endif
- -endl -a c -endl -done
- gimp_psyglass_preview :
- -gimp_split_preview " -gimp_psyglass ${1--2}",$-1
- ##############################################################################
- ## END OF THE FILTER ##
- ##############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement