Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gimp Code Test: gcd_custom_code, gcd_custom_code_preview(1)
- #@gimp : note = note("<i>To set status see -status in G'MIC reference.</i>"), sep = separator()
- #@gimp : Status = _text(1,"0")
- #@gimp : Code = text(1,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
- #@gimp : sep = separator(), note = note("<small>Author : <i>Garagecoder</i>. Latest update : <i>2015/06/21</i>.</small>")
- gcd_custom_code : -skip "${1=0}","${2=-skip ,}"
- -m "_gcd_custom_code_start : $2"
- -_gcd_custom_code
- -uncommand _gcd_custom_code_start
- gcd_custom_code_preview : -skip "${1=0}","${2=-skip ,}"
- w={w} h={h}
- -l
- _gcp_arg="$2"
- -gcd_custom_code ,$_gcp_arg
- -if {!narg(${})} status="OK: "$!" image(s), w:"{w}" h:"{h}" d:"{d}" c:"{s}
- -else status=${} -endif
- ({'$status'}) ({'"$2"'})
- -replace_str[-2,-1] "<","<"
- -u "{"{-2,t}"}{"{t}"}" -rm[-2,-1]
- -onfail
- -u "{"${}"}{$2}"
- -endl
- _gcd_custom_code :
- -_gcd_custom_code_start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement