|
GimpChat Member |
|
Joined: Jan 03, 2011 Posts: 1656
|
Here is one template of a .gmic file that should work in your case (with your filter included) : #@gmic
#------------------- # Released filters #-------------------
#------------------- # Testing filters #-------------------
#@gimp _<b>Testing</b> #@gimp <i>Samj</i> #------------------
#********** Chalk it up ********** #@gimp Chalk it up : samj_chalkitup, samj_chalkitup_preview #@gimp : sep = separator(), note = note("<small>Painting parameters</small>") #@gimp : Abstraction = int(5,0,10) #@gimp : Details scale = float(2.5,0,10) #@gimp : Color = float(1.5,0,5) #@gimp : Smoothness = float(50,0,200) #@gimp : Sharpen shades = bool(1) #@gimp : sep = separator(), note = note("<small>Morpho parameters</small>") #@gimp : Action = int(5,0,32) #@gimp : Size = int(5,0,32) #@gimp : Invert colors = bool(0) #@gimp : Shape = int(0,0,1) #@gimp : sep = separator(), note = note("<small>Spread parameters</small>") #@gimp : X-variations = float(0.8,-5,5) #@gimp : Y-variations = float(1.9,-5,5) #@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical") #@gimp : sep = separator(), note = note("<small>Author : <i>Samj</i>. Latest update : <i>2012/08/19</i>.</small>")
samj_chalkitup :
####### Déclaration des variables
#gimp_painting Abstraction=$1 Details_scale=$2 Color=$3 Smoothness=$4 Sharpen_shades=$5
#gimp_morpho Action=$6 Size=$7 Invert_colors=$8 Shape=$9
#gimp_spread X_variations=$10 Y_variations=$11
####### Ligne de commandes
-repeat @# -l[$>] -gimp_painting $Abstraction,$Details_scale,$Color,$Smoothness,$Sharpen_shades -gimp_morpho $Action,$Size,$Invert_colors,$Shape,0,1 -gimp_spread $X_variations,$Y_variations,0 -endl -done
samj_chalkitup_preview : -gimp_split_preview "-samj_chalkitup ${1--2}",$-1
#@gimp _
As you can see, this is quite easy to understand. Please set correct parameter ranges as I did it quickly. Writing such .gmic file is very interesting because it automatically benefit to a large audience (all plug-in users, via a simple filters update), and is not harder to do than writing a bash script. So I think this is worth doing it :p
|
|